/* ═══════════════════════════════════════════════════════════
   TVYMAS · Enterprise Corporate Theme
   Palette: White / Deep Navy / Steel Blue / Warm Gray
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --navy:         #0D1F3C;
  --navy-mid:     #1A3560;
  --navy-light:   #2B4C87;
  --steel:        #3E6DB5;
  --steel-light:  #5A8ED4;
  --white:        #FFFFFF;
  --off-white:    #F7F8FA;
  --gray-100:     #F0F2F5;
  --gray-200:     #E2E6EC;
  --gray-300:     #C8D0DC;
  --gray-400:     #9AAABE;
  --gray-600:     #5A6A82;
  --gray-800:     #2E3A4E;
  --bg:           var(--off-white);
  --surface:      var(--white);
  --border:       var(--gray-200);
  --text:         var(--navy);
  --text-mid:     var(--gray-800);
  --text-dim:     var(--gray-600);
  --accent:       var(--steel);
  --green:        #1A7F4B;
  --green-bg:     #EBF7F1;
  --green-border: #A8DBBF;
  --yellow:       #92650A;
  --yellow-bg:    #FEF7E6;
  --yellow-border:#F5CC6E;
  --red:          #B91C3A;
  --red-bg:       #FEF0F3;
  --red-border:   #F0A0B0;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --radius:       6px;
  --radius-sm:    4px;
  --shadow-sm:    0 1px 3px rgba(13,31,60,0.08);
  --shadow-md:    0 4px 12px rgba(13,31,60,0.10), 0 2px 4px rgba(13,31,60,0.06);
  --shadow-lg:    0 12px 32px rgba(13,31,60,0.12), 0 4px 8px rgba(13,31,60,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--steel);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 38px; height: 38px;
  background: var(--steel);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--white);
  letter-spacing: 0.02em; line-height: 1.2;
}
.brand-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em; font-weight: 300;
}
.header-badge {
  font-size: 0.7rem; font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px;
}
.pulse-dot {
  display: inline-block; width: 6px; height: 6px;
  background: #4ADE80; border-radius: 50%;
  animation: pulse 2.5s ease infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.35; } }

/* ── Hero ── */
.hero {
  background: var(--navy);
  padding: 64px 0 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-eyebrow { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tag-pill {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}
.tag-live {
  background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.2);
  color: #4ADE80; display: inline-flex; align-items: center; gap: 6px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--white); line-height: 1.1;
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.accent { color: var(--steel-light); }
.hero-subtitle {
  font-size: 1rem; color: rgba(255,255,255,0.55);
  max-width: 480px; line-height: 1.7; font-weight: 300; margin-bottom: 36px;
}

/* ── Status row ── */
.status-row { display: flex; gap: 10px; flex-wrap: wrap; }
.status-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 3px;
  font-size: 0.78rem; font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-metric {
  font-size: 0.68rem; opacity: 0.5; font-weight: 400;
  border-left: 1px solid rgba(255,255,255,0.15); padding-left: 8px;
}
.status-green .status-dot  { background: #4ADE80; }
.status-yellow .status-dot { background: #FCD34D; }
.status-red .status-dot    { background: #F87171; }

/* ── Form section ── */
.form-section { padding: 48px 0 80px; }
.form-container {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 28px; align-items: start;
}
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-card { padding: 36px; position: relative; }
.form-header {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 28px; padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.form-header-icon {
  width: 40px; height: 40px; background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); flex-shrink: 0;
}
.form-title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; }
.form-desc  { font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }

/* ── Fields ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
label {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-mid); letter-spacing: 0.05em; text-transform: uppercase;
}
.label-hint {
  font-size: 0.7rem; color: var(--text-dim);
  text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px;
}
.label-bold {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-mid); letter-spacing: 0.05em; text-transform: uppercase;
}
.req { color: var(--steel); }

input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="number"] {
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem;
  padding: 10px 12px; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none; -webkit-appearance: none;
}
input:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(62,109,181,0.12);
}
input::placeholder { color: var(--gray-400); }

/* ── Toggle ── */
.toggle-group { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300); background: var(--white);
  color: var(--text-mid); font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s; user-select: none;
}
.toggle-btn input { display: none; }
.toggle-btn:hover { border-color: var(--steel); color: var(--navy); }
.toggle-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.asn-toggle-field { margin-top: 2px; }
#asnField { margin-top: 6px; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }

.asn-input-wrap { display: flex; align-items: stretch; }
.asn-prefix {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--gray-100); border: 1px solid var(--gray-300);
  border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.8rem; font-weight: 600; color: var(--gray-600); letter-spacing: 0.05em;
}
.asn-input-wrap input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: none; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: var(--white); border: 2px solid var(--navy);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 600; padding: 11px 20px;
  cursor: pointer; text-decoration: none; transition: all 0.15s;
  letter-spacing: 0.01em; white-space: nowrap;
}
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
.btn-full  { width: 100%; margin-top: 20px; padding: 13px; font-size: 0.92rem; }
.btn-large { padding: 13px 28px; font-size: 0.92rem; }
.btn-sm    { padding: 7px 14px; font-size: 0.78rem; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--navy); border: 2px solid var(--navy);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 600; padding: 11px 20px;
  cursor: pointer; text-decoration: none; transition: all 0.15s; white-space: nowrap;
}
.btn-secondary:hover { background: var(--gray-100); }

.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 500;
  padding: 6px 14px; text-decoration: none; transition: all 0.15s;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.45); }

/* ── Alert ── */
.alert {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 0.84rem; margin-bottom: 20px; line-height: 1.5;
}
.alert-error { background: var(--red-bg); border: 1px solid var(--red-border); color: var(--red); }
.alert-warn  { background: var(--yellow-bg); border: 1px solid var(--yellow-border); color: var(--yellow); }
.alert svg   { flex-shrink: 0; margin-top: 2px; }

/* ── Loader ── */
.loader-overlay {
  position: absolute; inset: 0; border-radius: var(--radius);
  background: rgba(255,255,255,0.96);
  display: flex; align-items: center; justify-content: center; z-index: 10;
}
.loader-content { text-align: center; padding: 40px 24px; }
.loader-spinner {
  width: 36px; height: 36px; margin: 0 auto 20px;
  border: 3px solid var(--gray-200); border-top-color: var(--navy);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.loader-sub   { font-size: 0.76rem; color: var(--text-dim); margin-bottom: 22px; }
.loader-steps { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.loader-step  {
  font-size: 0.76rem; color: var(--text-dim); padding: 5px 10px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  display: flex; align-items: center; gap: 7px; transition: all 0.2s;
}
.loader-step::before { content: '○'; color: var(--gray-300); }
.loader-step.active { color: var(--navy); background: var(--gray-100); border-color: var(--border); font-weight: 500; }
.loader-step.active::before { content: '●'; color: var(--navy); }
.loader-step.done { color: var(--green); }
.loader-step.done::before { content: '✓'; color: var(--green); }

/* ── Info panel ── */
.info-panel { display: flex; flex-direction: column; gap: 16px; }
.info-card { padding: 22px; }
.info-card-title {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.info-item { display: flex; gap: 11px; margin-bottom: 13px; align-items: flex-start; }
.info-item:last-child { margin-bottom: 0; }
.info-icon {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon.cyan   { background: #EEF5FF; color: var(--steel); }
.info-icon.blue   { background: #EEEEFF; color: #4355C8; }
.info-icon.purple { background: #F3EEFF; color: #7044C8; }
.info-item strong { font-size: 0.82rem; display: block; margin-bottom: 1px; }
.info-item p { font-size: 0.75rem; color: var(--text-dim); line-height: 1.5; }
.ranking-preview .ranking-note { font-size: 0.77rem; color: var(--text-dim); margin-bottom: 10px; }
.ranking-link { font-size: 0.75rem; color: var(--steel); text-decoration: none; font-weight: 600; }
.ranking-link:hover { text-decoration: underline; }

/* ── Result ── */
.result-section   { padding: 48px 0 80px; }
.result-container { max-width: 740px; }
.result-card      { padding: 40px; margin-bottom: 20px; }
.result-card.result-green  { border-left: 4px solid var(--green); }
.result-card.result-yellow { border-left: 4px solid #D4900A; }
.result-card.result-red    { border-left: 4px solid var(--red); }

.result-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.result-badge {
  font-size: 0.63rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim);
}
.result-asn { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); }

/* Semaphore — compact, inline, never stretches */
.semaphore {
  display: inline-flex; gap: 5px; align-items: center;
  background: var(--gray-100); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 10px;
  width: auto; /* NEVER stretch */
}
.sem-light { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; transition: all 0.35s; }
.sem-light.sem-red    { background: var(--gray-200); }
.sem-light.sem-yellow { background: var(--gray-200); }
.sem-light.sem-green  { background: var(--gray-200); }
.sem-light.sem-red.on    { background: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.18); }
.sem-light.sem-yellow.on { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.sem-light.sem-green.on  { background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }

.result-status-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 600; margin-bottom: 22px;
  padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid;
}
.text-green  { color: var(--green);  background: var(--green-bg)  !important; border-color: var(--green-border)  !important; }
.text-yellow { color: var(--yellow); background: var(--yellow-bg) !important; border-color: var(--yellow-border) !important; }
.text-red    { color: var(--red);    background: var(--red-bg)    !important; border-color: var(--red-border)    !important; }
.text-dim    { color: var(--text-dim) !important; }
.text-cyan   { color: var(--steel)   !important; }

/* Metrics — highlight card never has text color bleed */
.metrics-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(155px,1fr));
  gap: 10px; margin-bottom: 22px;
}
.metric-card {
  background: var(--gray-100); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.metric-card.metric-wide  { grid-column: 1 / -1; }
.metric-card.highlight-metric {
  background: var(--navy); border-color: var(--navy);
  grid-column: span 2;
}
.highlight-metric .metric-label { color: rgba(255,255,255,0.5) !important; }
.highlight-metric .metric-value { color: var(--white) !important; }
/* Reset any status color classes inside highlight card */
.highlight-metric .metric-value.text-green,
.highlight-metric .metric-value.text-yellow,
.highlight-metric .metric-value.text-red {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.metric-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-dim);
}
.metric-value { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.metric-big   {
  font-size: 2.4rem; font-weight: 300; font-family: var(--font-display);
  line-height: 1; letter-spacing: -0.02em;
  /* No background, no border — plain number */
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.result-interpretation {
  font-size: 0.87rem; color: var(--text-mid); line-height: 1.7;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--gray-100); border: 1px solid var(--border); margin-bottom: 22px;
}

.result-cta-box {
  padding: 22px; border-radius: var(--radius-sm); background: var(--navy);
}
.cta-headline { font-size: 0.86rem; line-height: 1.65; margin-bottom: 16px; color: rgba(255,255,255,0.7); }
.cta-buttons  { display: flex; gap: 10px; flex-wrap: wrap; }
.result-cta-box .btn-primary {
  background: var(--white); color: var(--navy); border-color: var(--white);
}
.result-cta-box .btn-primary:hover { background: var(--gray-100); border-color: var(--gray-100); }
.result-cta-box .btn-secondary {
  color: var(--white); border-color: rgba(255,255,255,0.35);
}
.result-cta-box .btn-secondary:hover { background: rgba(255,255,255,0.08); }

/* No ASN */
.result-no-asn { text-align: left; }
.no-asn-eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px;
}
.no-asn-title {
  font-family: var(--font-display); font-size: 1.65rem;
  line-height: 1.2; margin-bottom: 10px;
}
.no-asn-subtitle { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 24px; }

.benefits-list { list-style: none; display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.benefits-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.benefits-list li:last-child { border-bottom: none; }
.benefit-icon {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--navy); color: var(--white); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
}
.benefits-list strong { font-size: 0.86rem; display: block; margin-bottom: 2px; }
.benefits-list p { font-size: 0.76rem; color: var(--text-dim); line-height: 1.5; }

/* Commercial CTA */
.commercial-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; gap: 20px; flex-wrap: wrap; margin-bottom: 20px;
  border-left: 4px solid var(--steel);
}
.cta-left h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 3px; }
.cta-left p  { font-size: 0.8rem; color: var(--text-dim); }
.tvymas-services { display: flex; gap: 6px; flex-wrap: wrap; }
.service-tag {
  font-size: 0.7rem; font-weight: 500; padding: 4px 9px; border-radius: 3px;
  background: var(--gray-100); border: 1px solid var(--border); color: var(--text-mid);
}

.back-link {
  font-size: 0.8rem; color: var(--text-dim); text-decoration: none;
  font-weight: 500; transition: color 0.15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.back-link:hover { color: var(--navy); }

/* Login */
.login-page {
  min-height: 100vh; background: var(--navy);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-card {
  padding: 40px; width: 100%; max-width: 370px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.login-brand .logo-mark { background: var(--navy); }
.login-card h1 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 22px; }

/* Admin */
.admin-main { padding: 40px 24px 80px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr));
  gap: 16px; margin-bottom: 44px;
}
.stat-card { padding: 24px; border-top: 3px solid var(--navy); }
.stat-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
  display: block; margin-bottom: 8px;
}
.stat-value { font-family: var(--font-display); font-size: 2.8rem; display: block; color: var(--navy); }

.admin-section { margin-bottom: 50px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--navy);
}
.section-header h2 { font-family: var(--font-display); font-size: 1.1rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-dim);
  padding: 11px 14px; text-align: left;
  background: var(--gray-100); border-bottom: 2px solid var(--border); white-space: nowrap;
}
.data-table td {
  padding: 11px 14px; font-size: 0.82rem;
  border-bottom: 1px solid var(--gray-100); white-space: nowrap; color: var(--text-mid);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--gray-100); }
.empty-row { text-align: center; color: var(--text-dim) !important; padding: 40px !important; }

.badge {
  font-size: 0.68rem; font-weight: 600; padding: 3px 8px; border-radius: 3px;
}
.badge-green  { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.badge-red    { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }

/* Footer */
.site-footer { background: var(--navy); padding: 18px 0; text-align: center; }
.site-footer p { font-size: 0.7rem; color: rgba(255,255,255,0.3); letter-spacing: 0.03em; }
.mono { font-family: 'Courier New', monospace; }

/* Responsive */
@media (max-width: 880px) {
  .form-container { grid-template-columns: 1fr; }
  .info-panel { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 40px 0 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .result-card { padding: 22px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .commercial-cta { flex-direction: column; align-items: flex-start; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary { width: 100%; justify-content: center; }
  .hide-mobile { display: none; }
  .brand-tagline { display: none; }
  .header-badge  { display: none; }
}

/* ── Phone input with country selector ──────────────────── */
.phone-wrap {
  display: flex; align-items: stretch;
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  overflow: visible; /* dropdown needs to overflow */
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.phone-wrap:focus-within {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(62,109,181,0.12);
}
.phone-wrap input[type="tel"] {
  border: none; box-shadow: none; border-radius: 0;
  flex: 1; min-width: 0;
  border-left: 1px solid var(--gray-200);
}
.phone-wrap input[type="tel"]:focus {
  border-color: transparent; box-shadow: none;
}

.phone-country { position: relative; flex-shrink: 0; }

.phone-flag-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px 0 12px; height: 100%;
  background: var(--gray-100); border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.88rem;
  color: var(--text-mid); white-space: nowrap;
  transition: background 0.15s;
  min-width: 88px;
}
.phone-flag-btn:hover { background: var(--gray-200); }
.flag-emoji { font-size: 1.1rem; line-height: 1; }
.dial-code  { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.chevron    { color: var(--text-dim); flex-shrink: 0; transition: transform 0.2s; }
.phone-flag-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.country-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 280px; z-index: 200; overflow: hidden;
}
.country-search-wrap { padding: 10px 10px 6px; border-bottom: 1px solid var(--border); }
.country-search {
  width: 100%; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  padding: 7px 10px; font-size: 0.83rem; font-family: var(--font-body);
  outline: none; color: var(--text); background: var(--white);
}
.country-search:focus { border-color: var(--steel); }

.country-list {
  list-style: none; max-height: 220px; overflow-y: auto;
  padding: 4px 0; margin: 0;
}
.country-list::-webkit-scrollbar { width: 4px; }
.country-list::-webkit-scrollbar-track { background: var(--gray-100); }
.country-list::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.country-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; cursor: pointer; font-size: 0.83rem;
  transition: background 0.1s; color: var(--text-mid);
}
.country-list li:hover   { background: var(--gray-100); }
.country-list li.active  { background: var(--navy); color: var(--white); }
.country-list li .c-flag { font-size: 1rem; flex-shrink: 0; }
.country-list li .c-name { flex: 1; }
.country-list li .c-dial { font-size: 0.75rem; font-weight: 600; color: var(--text-dim); }
.country-list li.active .c-dial { color: rgba(255,255,255,0.6); }