/* Team Elevation - TRT funnel shared component + theme styles.
   Linked by index.html (/quiz), results.html (/results), booking.html (/book).
   (thanks.html is self-contained.) */

:root {
  --bg: #08080A;
  --card: #0E0E12;
  --card-2: #111114;
  --border: #1E1E24;
  --border-hi: #2A2A30;
  --text: #FFFFFF;
  --text-2: #A0A3AB;
  --text-3: #6B7078;
  --teal-1: #21ABAD;
  --teal-2: #26C6C8;
  /* legacy aliases kept so utility classes referencing --amber-* still resolve */
  --amber-1: #21ABAD;
  --amber-2: #26C6C8;
}
html, body { background: var(--bg); color: var(--text); font-family: 'Hanken Grotesk', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .wordmark, .score-pct, .cat-pill, .qbadge, button { font-family: 'Archivo', system-ui, sans-serif; }
body {
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(33,171,173,0.08), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(38,198,200,0.05), transparent 60%),
    #08080A;
  min-height: 100vh;
}
a { color: var(--teal-1); text-decoration: none; }
a:hover { color: var(--teal-2); }
.grad-text {
  background: linear-gradient(90deg, #21ABAD 0%, #26C6C8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-bg { background: linear-gradient(135deg, #21ABAD 0%, #26C6C8 100%); }
.grad-bg-soft { background: linear-gradient(90deg, rgba(33,171,173,0.18) 0%, rgba(38,198,200,0.18) 100%); }
.glow-cta { box-shadow: 0 10px 40px -8px rgba(38,198,200,0.5), 0 4px 14px -4px rgba(33,171,173,0.38); }
.glow-cta:hover { box-shadow: 0 14px 50px -6px rgba(38,198,200,0.65), 0 6px 18px -4px rgba(33,171,173,0.5); transform: translateY(-1px); }
.card { background: var(--card); border: 1px solid var(--border); }
.card-hi { background: var(--card); border: 1px solid var(--border); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.card-hi:hover { border-color: rgba(33,171,173,0.45); background: #0D0D10; }
.opt-selected { border-color: rgba(33,171,173,0.85) !important; background: linear-gradient(90deg, rgba(33,171,173,0.10), rgba(38,198,200,0.06)) !important; box-shadow: 0 0 0 1px rgba(33,171,173,0.4), 0 8px 30px -10px rgba(33,171,173,0.35); }
.radio { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--border-hi); flex: none; display: grid; place-items: center; transition: border-color .15s ease; }
.opt-selected .radio { border-color: #21ABAD; background: radial-gradient(circle, #21ABAD 0 40%, transparent 45%); }
.progress-track { background: #1A1A1F; height: 4px; border-radius: 999px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, #21ABAD, #26C6C8); height: 100%; border-radius: 999px; transition: width .45s cubic-bezier(.2,.7,.2,1); }
.view { animation: fadeUp .25s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fade-out { animation: fadeOut .18s ease forwards; }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-4px); } }
.btn-amber { background: linear-gradient(135deg, rgba(33,171,173,0.98), rgba(38,198,200,0.98)); color: #08080A; }
.btn-amber:disabled { background: #12302F; color: #6B7078; cursor: not-allowed; }
.btn-amber:not(:disabled):hover { filter: brightness(1.05); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(33,171,173,0.07); border: 1px solid rgba(33,171,173,0.22); color: #A7E6E7; font-size: 14px; font-weight: 500; }
.qbadge { display:inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(33,171,173,0.12); border: 1px solid rgba(33,171,173,0.30); color: #A7E6E7; font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
input.tc-input { background: #07070A; border: 1px solid var(--border); color: #fff; }
input.tc-input:focus { outline: none; border-color: rgba(33,171,173,0.55); box-shadow: 0 0 0 3px rgba(33,171,173,0.15); }
input.tc-input--error { border-color: #EF4444 !important; }
input.tc-input--error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.18) !important; }
.te-field-error { color: #F87171; font-size: 12.5px; margin: 7px 0 0; }

/* ── intl-tel-input, themed to match the form (dark surfaces, teal focus) ── */
.iti { width: 100%; display: block; }
.iti__flag { background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@23.0.4/build/img/flags.png"); }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag { background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@23.0.4/build/img/flags@2x.png"); }
}
/* the field itself keeps .tc-input styling; just make room for the dial-code chip */
.iti--separate-dial-code input.tc-input,
.iti--allow-dropdown input.tc-input { padding-left: 96px !important; }
.iti__selected-flag,
.iti__selected-country {
  background: transparent !important;
  border-radius: 10px 0 0 10px;
  padding: 0 8px 0 12px;
}
.iti__selected-dial-code, .iti__selected-country-primary + .iti__selected-dial-code {
  color: #fff; font-size: 14px; font-family: 'Hanken Grotesk', system-ui, sans-serif;
}
.iti__arrow { border-top-color: var(--text-3); }
.iti__arrow--up { border-bottom-color: var(--text-3); }
.iti__country-list, .iti__dropdown-content {
  background: #0E0E12; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
  color: #fff; font-family: 'Hanken Grotesk', system-ui, sans-serif;
}
.iti__country, .iti__country-name, .iti__dial-code { color: #fff; }
.iti__dial-code { color: var(--text-2); }
.iti__country { padding: 12px 12px; font-size: 15px; }        /* thumb-friendly rows */
.iti__country.iti__highlight, .iti__country:hover,
.iti__country[aria-selected="true"] { background: rgba(33,171,173,0.14) !important; }
.iti__divider { border-bottom-color: var(--border); }
.iti__search-input {
  background: #07070A; color: #fff; border: 0;
  border-bottom: 1px solid var(--border); padding: 12px 14px; font-size: 15px;
}
.te-dial:focus { outline: none; border-color: rgba(33,171,173,0.55); }
@media (max-width: 480px) {
  .iti__country-list, .iti__dropdown-content { max-height: 46vh; }
  .iti__country { padding: 14px 12px; }                        /* larger hit area */
}
.focus-ring:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(33,171,173,0.45); border-radius: 12px; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 3px solid rgba(33,171,173,0.18); border-top-color: #26C6C8; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dashed-card { border: 1.5px dashed #2A2A30; }

/* ── Results screen ── */
.results-card { box-shadow: 0 30px 80px -40px rgba(33,171,173,0.18), 0 1px 0 rgba(255,255,255,0.02) inset; }
.score-orb {
  width: 56px; height: 56px; border-radius: 999px;
  background:
    radial-gradient(circle at 32% 30%, #D9F7F7 0%, #6FE0E1 22%, #21ABAD 55%, #0E5F60 100%);
  box-shadow: 0 0 32px -6px rgba(33,171,173,0.55), inset -6px -8px 14px rgba(0,0,0,0.35);
}
.thanks-orb {
  width: 88px; height: 88px; border-radius: 999px;
  background:
    radial-gradient(circle at 32% 30%, #D9F7F7 0%, #6FE0E1 22%, #21ABAD 55%, #0E5F60 100%);
  box-shadow: 0 0 60px -10px rgba(33,171,173,0.65), inset -8px -10px 18px rgba(0,0,0,0.35);
}
.score-pct { font-size: clamp(72px, 14vw, 120px); letter-spacing: -0.03em; }
.cat-pill {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(33,171,173,0.18), rgba(38,198,200,0.18));
  border: 1px solid rgba(33,171,173,0.55);
  color: #7FE0E1; font-weight: 800; font-size: 18px; letter-spacing: -0.005em;
}
.check-icon { flex: none; margin-top: 1px; }
.feat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: #07070A; border: 1px solid var(--border);
  color: #E5E7EB; font-size: 14px; font-weight: 500;
}
.feat-emoji { font-size: 16px; line-height: 1; }
.book-cta-btn:hover { transform: translateY(-1px); }
.breakdown-track {
  position: relative; height: 10px; border-radius: 999px;
  background: #1A1A1F; overflow: hidden;
}
.breakdown-fill {
  height: 100%;
  background: linear-gradient(90deg, #DC2626 0%, #21ABAD 50%, #22C55E 100%);
  background-size: 240% 100%;
  background-position: left center;
  border-radius: 999px;
  transition: width .6s cubic-bezier(.2,.7,.2,1);
}
/* Nav variant (link-style CTA) */
.navcta-link {
  background: none !important; color: var(--text-2); font-weight: 500;
  padding: 8px 4px; border-radius: 6px; box-shadow: none !important;
  white-space: nowrap;
}
.navcta-link:hover { color: #fff; filter: none; }
.opacity-50 { opacity: 0.5; }

/* ── Booking ── */
.booking-placeholder {
  border: 1.5px dashed #2A2A30; background: #0B0B0F;
  border-radius: 20px; padding: 48px 32px; text-align: center;
}
.booking-slot {
  padding: 10px 16px; border-radius: 10px;
  background: #111114; border: 1px solid var(--border);
  color: var(--text-2); font-size: 13px;
}
.booking-embed { background:#07070A; border:1px solid var(--border); border-radius:18px; overflow:hidden; }
.booking-embed iframe { width:100%; border:0; display:block; min-height:720px; margin-top:-26px; margin-bottom:-58px; }

/* ── Responsive card padding (no inline padding, so it scales on mobile) ── */
.rcard { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: clamp(22px, 4.5vw, 36px); }
.rcard--score { text-align: center; padding: clamp(30px, 6vw, 48px) clamp(22px, 4.5vw, 36px); }

/* ── Transformation grid (4 branded portrait posters) ── */
.transform-grid { display: grid; gap: 14px; }
.transform-grid--4 { grid-template-columns: repeat(4, 1fr); }
.transform-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
  background: #07070A;
}
@media (max-width: 900px) {
  .transform-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .transform-grid--4 { grid-template-columns: 1fr; gap: 12px; }
  .cat-pill { font-size: 16px; padding: 12px 22px; }
  .rcard { border-radius: 16px; }
  .booking-embed iframe { min-height: 640px; }
}
::selection { background: rgba(33,171,173,0.35); color: #fff; }
