/* Product member app shell — Apply, sign-in, home, waiting list, call plans.
   Palette matches Connections landing (teal / gold / navy). */

:root {
  --ink: #10244a;
  --ink-soft: #4a6178;
  --teal: #0d8998;
  --teal-deep: #076f7c;
  --teal-soft: #e8f7f9;
  --gold: #f7b817;
  --gold-deep: #e09a00;
  --cream: #fffaf1;
  --sky: #eefaff;
  --paper: #ffffff;
  --stone: #f4f9fb;
  --line: #d5e6ee;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --success: #0f7a4a;
  --success-soft: #ecfdf5;
  --shadow: 0 14px 36px rgba(16, 36, 74, 0.08);
  --shadow-gold: 0 10px 24px rgba(247, 184, 23, 0.28);
}

* { box-sizing: border-box; }

/* Author display rules (e.g. .btn { display: inline-flex }) override the UA
   [hidden] stylesheet; keep stepped nav Continue/Submit toggling correct. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body.app-shell {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 92% -4%, rgba(13, 137, 152, 0.14), transparent 32%),
    radial-gradient(circle at 8% 18%, rgba(247, 184, 23, 0.12), transparent 34%),
    linear-gradient(180deg, var(--sky) 0%, var(--cream) 42%, #fff 100%);
  background-attachment: fixed;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--teal); }

.shell {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.35rem 1.1rem 3.25rem;
  animation: app-rise 0.45s ease both;
}

@keyframes app-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.app-topbar--logo {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem 0.65rem;
  background: #fff;
  border: 1px solid rgba(213, 230, 238, 0.95);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.app-topbar__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.app-topbar__mark span {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc62c, #f7aa00);
  color: #1b2a43;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(247, 184, 23, 0.35);
}

.app-topbar__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  max-width: 13.5rem;
}

.app-topbar__logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 7.75rem;
  object-fit: contain;
  object-position: center;
}

.app-topbar__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.app-topbar__logo-mark {
  display: block;
  width: auto;
  height: auto;
  max-height: 3.25rem;
  object-fit: contain;
}

.app-topbar__brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  text-align: center;
}

.app-topbar__wordmark {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.app-topbar__ten { color: var(--ink); }
.app-topbar__thirty { color: #e8891a; }

.app-topbar__name {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.app-topbar__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 10rem;
  margin: 0.15rem 0 0.1rem;
}

.app-topbar__rule::before,
.app-topbar__rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e67a12;
  opacity: 0.85;
}

.app-topbar__heart {
  font-size: 0.55rem;
  line-height: 1;
  color: #e67a12;
}

.app-topbar__tagline {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #5a6b82;
}

@media (max-width: 520px) {
  .app-topbar__logo-link { max-width: 11.5rem; }
  .app-topbar__logo { max-height: 6.5rem; }
  .app-topbar__logo-mark { max-height: 2.85rem; }
  .app-topbar__wordmark { font-size: 1.25rem; }
  .app-topbar__name { font-size: 0.6rem; letter-spacing: 0.1em; }
  .app-topbar__tagline { font-size: 0.55rem; }
}

.brand {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.brand-accent {
  color: var(--teal);
}

.muted { color: var(--ink-soft); }

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(213, 230, 238, 0.95);
  border-radius: 1rem;
  padding: 1.35rem 1.25rem;
  margin-top: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card--hero {
  text-align: center;
  padding: 2rem 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 250, 255, 0.9));
  border-color: rgba(13, 137, 152, 0.18);
}

.card--hero .countdown {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--teal-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.85rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc62c, #f7aa00);
  color: #1b2a43;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(247, 184, 23, 0.35);
  color: #1b2a43;
  filter: saturate(1.05);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
  font-weight: 700;
}
.btn-ghost:hover {
  background: var(--teal-soft);
  border-color: rgba(13, 137, 152, 0.35);
  color: var(--teal-deep);
  box-shadow: none;
  filter: none;
}

.btn-small {
  min-height: 2.25rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.875rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.field { display: grid; gap: 0.35rem; margin-bottom: 0.95rem; }
.field label { font-size: 0.9rem; font-weight: 700; color: var(--ink); }

.preferred-age-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
  align-items: start;
}
.preferred-age-row > .field {
  margin-bottom: 0;
}
.preferred-age-input {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 9.5rem;
}
.preferred-age-input__field {
  width: 5.5rem !important;
  min-width: 0;
  flex: 0 0 5.5rem;
  text-align: center;
}
.preferred-age-input__unit {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .preferred-age-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .preferred-age-row > .field {
    margin-bottom: 0.95rem;
  }
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  font: inherit;
  background: #fff;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.phone-intl__search:focus,
.phone-intl__national:focus {
  outline: none;
  border-color: rgba(13, 137, 152, 0.55);
  box-shadow: 0 0 0 3px rgba(13, 137, 152, 0.15);
}
.field textarea { min-height: 6rem; }
.field-check { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.req { color: var(--teal); }
.field-slug { margin: 0.1rem 0 0.45rem; font-size: 0.8rem; color: var(--ink-soft); }
.field-note { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }

.video-field-placeholder,
.document-field-placeholder,
.payment-field-placeholder,
.live-payment__card {
  margin-top: 0.35rem;
  padding: 1rem;
  border: 1px dashed rgba(13, 137, 152, 0.35);
  border-radius: 0.75rem;
  background: var(--teal-soft);
  text-align: center;
  font-weight: 700;
  color: var(--teal-deep);
}

.otp-field-placeholder,
.live-otp {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.live-otp__row,
.otp-field-placeholder__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.live-otp__ok,
.live-payment__ok {
  color: var(--success);
  font-weight: 700;
  margin: 0.35rem 0 0;
}

.live-video { margin-top: 0.35rem; }
.live-video__stage {
  position: relative;
  width: 100%;
  background: #0f1f30;
  border-radius: 0.85rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 22rem;
  max-height: min(72vh, 40rem);
  box-shadow: var(--shadow);
}
.live-video__player,
.live-video__playback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0f1f30;
}
.live-video__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.live-document__input { width: 100%; margin-top: 0.35rem; }

.phone-intl__row {
  display: grid;
  grid-template-columns: 6.75rem 1fr;
  gap: 0.5rem;
  align-items: start;
}
.phone-intl__country-wrap { position: relative; }
.phone-intl__search,
.phone-intl__national {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  font: inherit;
  background: #fff;
}
.phone-intl__search {
  font-size: 0.9rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}
.phone-intl__list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: auto;
  top: calc(100% + 0.25rem);
  min-width: 16rem;
  max-width: min(20rem, 80vw);
  max-height: 14rem;
  overflow: auto;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
}
.phone-intl__option {
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-size: 0.88rem;
}
.phone-intl__option:hover,
.phone-intl__option:focus {
  background: var(--teal-soft);
}
.phone-intl--disabled {
  display: grid;
  grid-template-columns: 6.75rem 1fr;
  gap: 0.5rem;
  opacity: 0.7;
}

.location-picker__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  align-items: start;
}
.location-picker__stack {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}
.location-picker__field { position: relative; }
.location-picker__step-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink, #10244a);
}
.location-picker__country-search,
.location-picker__city-search,
.location-picker__other-city {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  font: inherit;
  background: #fff;
}
.location-picker__country-search:focus,
.location-picker__city-search:focus,
.location-picker__other-city:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 137, 152, 0.18);
}
.location-picker__list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  max-height: 14rem;
  overflow: auto;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
}
.location-picker__option {
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-size: 0.88rem;
}
.location-picker__option:hover,
.location-picker__option:focus {
  background: var(--teal-soft);
}
.location-picker__other { margin-top: 0.15rem; }
.location-picker--disabled {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  opacity: 0.7;
}
@media (max-width: 520px) {
  .location-picker__row,
  .location-picker--disabled {
    grid-template-columns: 1fr;
  }
}

.banner {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(13, 137, 152, 0.22);
  background: linear-gradient(135deg, rgba(232, 247, 249, 0.95), rgba(255, 250, 241, 0.95));
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.banner--success {
  border-color: rgba(15, 122, 74, 0.25);
  background: var(--success-soft);
  color: var(--success);
}

.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.step-progress {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(16, 36, 74, 0.08);
  overflow: hidden;
  margin-bottom: 1rem;
}
.step-progress__bar {
  height: 100%;
  width: var(--progress, 25%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #2bb3c4 55%, var(--gold));
  transition: width 0.35s ease;
}

.live-preview__form.card h2 {
  margin-top: 0;
  font-size: 1.2rem;
  font-family: Georgia, "Iowan Old Style", serif;
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(13, 137, 152, 0.2);
  margin-bottom: 0.75rem;
}

.status-pill--warn {
  background: #fff6e5;
  color: #9a6700;
  border-color: rgba(247, 184, 23, 0.45);
}

.price-tag {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
}
.price-tag span {
  color: var(--teal);
}

.match-call-page {
  width: 100%;
  max-width: 100%;
}
.match-call-page__title {
  margin: 0 0 0.15rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}
.match-call-page__sub {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}
.match-call {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0.9rem;
}
.match-call__meta {
  display: grid;
  gap: 0.2rem;
}
.match-call__timer {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.match-call__status {
  margin: 0;
  font-size: 0.88rem;
  word-break: break-word;
}
.match-call__stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  /* Fit remaining viewport: topbar + titles + meta + toolbar + padding */
  height: clamp(220px, calc(100dvh - 17.5rem), 560px);
  max-height: calc(100dvh - 15rem);
  border-radius: 18px;
  overflow: hidden;
  background: #0b1a33;
  flex: 0 0 auto;
}
.match-call__remote,
.match-call__local {
  position: absolute;
  overflow: hidden;
  background: #10244a;
}
.match-call__remote {
  inset: 0;
}
.match-call__local {
  right: 0.7rem;
  bottom: 0.7rem;
  width: min(30vw, 150px);
  max-width: 36%;
  aspect-ratio: 3 / 4;
  max-height: 42%;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  z-index: 3;
}
.match-call__label {
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  left: 0.65rem;
  margin: 0;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.match-call__local .match-call__label {
  top: 0.35rem;
  left: 0.4rem;
  font-size: 0.65rem;
}
.match-call__remote video,
.match-call__local video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #10244a;
  display: block;
}
.match-call__toolbar {
  margin-top: 0;
  flex-wrap: wrap;
  width: 100%;
}
.match-call__toolbar .btn,
.match-call__toolbar form {
  flex: 1 1 auto;
  min-width: 0;
}
.match-call__toolbar form {
  display: flex;
}
.match-call__toolbar form .btn {
  width: 100%;
}

@media (max-width: 520px) {
  .shell:has(.match-call-page) {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 1.25rem;
  }
  .match-call {
    padding: 0.75rem;
    border-radius: 1rem;
  }
  .match-call__stage {
    height: clamp(240px, calc(100dvh - 19rem), 480px);
    max-height: calc(100svh - 16.5rem);
    border-radius: 14px;
  }
  .match-call__local {
    width: min(32vw, 112px);
    right: 0.55rem;
    bottom: 0.55rem;
  }
  .match-call__toolbar {
    gap: 0.5rem;
  }
  .match-call__toolbar .btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-height: 2.6rem;
    font-size: 0.88rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .shell { padding-top: 1rem; }
  .toolbar { justify-content: stretch; }
  .toolbar .btn { flex: 1 1 auto; }
}
