.page-apd .apd-hero {
  min-height: 100vh;
  padding:
    clamp(7rem, 12vh, 8.5rem)
    clamp(1.1rem, 3.5vw, 2.75rem)
    4rem;
  background:
    radial-gradient(780px 420px at 88% 0%, rgba(18, 181, 184, 0.16), transparent 55%),
    var(--bg);
}

.apd-shell {
  width: min(840px, 100%);
  margin: 0 auto;
}

.apd-kicker {
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.apd-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.apd-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  max-width: 42rem;
}

.apd-banner {
  margin: 0 0 1.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(18, 181, 184, 0.35);
  background: var(--mint-soft);
  color: #d8f7f8;
  font-size: 0.95rem;
}

.apd-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.1rem, 3vw, 1.75rem);
}

.apd-steps {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  padding: 0 0 1.1rem;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
  counter-reset: none;
  pointer-events: none;
  user-select: none;
}

.apd-steps li {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 0;
}

.apd-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 0;
}

.apd-steps li.is-done:not(:last-child)::after,
.apd-steps li.is-active:not(:last-child)::after {
  background: rgba(18, 181, 184, 0.55);
}

.apd-step-index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: var(--bg-3);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.apd-step-label {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.apd-steps li.is-active {
  color: var(--ink);
}

.apd-steps li.is-active .apd-step-index {
  border-color: var(--mint);
  background: var(--mint);
  color: #042c2e;
  box-shadow: 0 0 0 4px rgba(18, 181, 184, 0.18);
}

.apd-steps li.is-done {
  color: rgba(244, 250, 250, 0.82);
}

.apd-steps li.is-done .apd-step-index {
  border-color: rgba(18, 181, 184, 0.65);
  background: rgba(18, 181, 184, 0.18);
  color: transparent;
  font-size: 0;
}

.apd-steps li.is-done .apd-step-index::before {
  content: "✓";
  font-size: 0.78rem;
  color: var(--mint);
}

.apd-panel h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.apd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.apd-span-2 { grid-column: 1 / -1; }

.apd-grid label,
.apd-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.apd-field.is-required > span::after {
  content: " *";
  color: #f87171;
  font-weight: 700;
}

.apd-grid input,
.apd-grid select,
.apd-combo-input {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  font: inherit;
}

.apd-grid input:focus,
.apd-grid select:focus,
.apd-combo-input:focus {
  outline: 2px solid rgba(18, 181, 184, 0.45);
  border-color: transparent;
}

.apd-combo {
  position: relative;
}

.apd-combo-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.apd-combo-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #152024;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.apd-combo-list button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.apd-combo-list button:hover,
.apd-combo-list button:focus {
  background: rgba(18, 181, 184, 0.16);
  outline: none;
}

.apd-combo-empty {
  padding: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.apd-combo-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.apd-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.65rem !important;
  color: var(--ink) !important;
  margin-top: 0.35rem;
}

.apd-check input { width: auto; min-height: auto; }

.apd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.35rem;
}

.apd-price {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(18, 181, 184, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.apd-price strong {
  font-size: 1.35rem;
  color: var(--mint);
}

.apd-summary {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.apd-summary > div,
.apd-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.apd-summary dt { color: var(--muted); margin: 0; }
.apd-summary dd { margin: 0; font-weight: 600; }

.apd-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.apd-error {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.apd-result.is-ok { border-color: rgba(18, 181, 184, 0.45); }
.apd-result.is-ko { border-color: rgba(239, 68, 68, 0.35); }

@media (max-width: 720px) {
  .apd-grid { grid-template-columns: 1fr; }
  .apd-span-2 { grid-column: auto; }

  .apd-steps li:not(:last-child)::after {
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
  }

  .apd-step-label {
    font-size: 0.72rem;
  }
}
