/* ===== Variables ===== */
:root {
  --blue:        #2a5794;
  --blue-dark:   #1e3d6e;
  --navy:        #1a2a4a;
  --gold:        #f0c040;
  --gold-dark:   #d4a820;
  --text:        #111827;
  --muted:       #6b7280;
  --light:       #9ca3af;
  --border:      #e5e7eb;
  --border-lt:   #f3f4f6;
  --bg:          #f8fafc;
  --white:       #ffffff;
  --green:       #16a34a;
  --red:         #dc2626;
  --shadow-xs:   0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm:   0 2px 10px rgba(0,0,0,0.09);
  --shadow:      0 6px 24px rgba(0,0,0,0.11);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.16);
  --r:           10px;
  --r-lg:        18px;
  --transition:  0.18s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 24px; border-radius: var(--r); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent; transition: all var(--transition);
  letter-spacing: 0.01em; white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(42,87,148,0.25);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(42,87,148,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(240,192,64,0.4); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #b91c1c; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-sm { padding: 5px 13px; font-size: 0.82rem; }
.btn-full { display: flex; width: 100%; }
button.btn { font-family: inherit; }

/* ===== Navbar ===== */
.navbar { background: var(--navy); padding: 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { color: #fff; font-weight: 700; font-size: 1.1rem; }
.nav-logo-img { height: 44px; width: auto; border-radius: 4px; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-phone { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.nav-phone:hover { color: #fff; }
.nav-track { color: rgba(255,255,255,0.55); font-size: 0.85rem; transition: color var(--transition); }
.nav-track:hover { color: rgba(255,255,255,0.9); }

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(to right,
      rgba(15,25,50,0.97) 0%,
      rgba(20,32,64,0.92) 40%,
      rgba(26,42,74,0.72) 65%,
      rgba(26,42,74,0.45) 100%
    ),
    url('/img/hero.jpg') 30% center / cover no-repeat;
  color: #fff;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.015) 60px,
      rgba(255,255,255,0.015) 61px
    );
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 48px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: 16px;
}
.hero-tagline::before { content: ''; display: block; width: 28px; height: 2px; background: var(--gold); }
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.12; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--gold); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 500px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; color: rgba(255,255,255,0.45); font-size: 0.82rem; display: flex; gap: 16px; }
.hero-note span::before { content: '•  '; }

/* Route 66 sign in hero */
.hero-sign-wrap {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.6));
}
.hero-sign-img {
  width: 160px; height: 160px; object-fit: cover;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.15), 0 16px 48px rgba(0,0,0,0.5);
  animation: float 4s ease-in-out infinite;
}
.hero-sign-label {
  text-align: center; font-size: 0.82rem; font-weight: 700;
  color: rgba(255,255,255,0.7); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}
.hero-sign-label span { font-size: 0.72rem; color: var(--gold); font-weight: 600; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.trust-items { display: flex; gap: 32px; align-items: center; justify-content: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.trust-item svg { color: var(--blue); flex-shrink: 0; }

/* ===== Section titles ===== */
.section-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.section-sub { color: var(--muted); margin-top: 8px; font-size: 1rem; }
.section-sign { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 16px; display: block; opacity: 0.85; }
.section-sign--lg { width: 96px; height: 96px; opacity: 1; }

/* ===== Plans ===== */
.plans { padding: 80px 0 40px; }
.plans-head { text-align: center; margin-bottom: 48px; }
.nav-phone { color: rgba(255,255,255,0.6); font-size: 0.85rem; white-space: nowrap; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.nav-phone:hover { color: #fff; }
.nav-phone-text { display: none; }
.nav-phone-icon { display: flex; align-items: center; color: rgba(255,255,255,0.7); }
.nav-email { color: rgba(255,255,255,0.6); font-size: 0.85rem; white-space: nowrap; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.nav-email:hover { color: #fff; }
.nav-email-text { display: none; }
.nav-email-icon { display: flex; align-items: center; color: rgba(255,255,255,0.7); }
.plans-photo-wrap { margin-top: 48px; }
.plans-photo { width: 100%; height: 380px; object-fit: cover; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.plan-card--featured {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.plan-card--featured::before {
  content: 'Most Popular';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 99px;
}
.plan-badge {
  display: inline-block; background: var(--border-lt); border-radius: 99px;
  padding: 4px 14px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 16px; color: var(--muted);
}
.plan-card--featured .plan-badge { background: #dbeafe; color: var(--blue); }
.plan-price { font-size: 2.8rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.03em; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan-avail { font-size: 0.78rem; color: var(--muted); margin-bottom: 20px; }
.plan-avail strong { color: var(--green); }
.plan-avail--urgent { color: #c0392b; font-weight: 600; }
.plan-avail--urgent strong { color: #c0392b; }
.plan-card ul { list-style: none; margin-bottom: 28px; text-align: left; }
.plan-card ul li {
  padding: 7px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border-lt);
  display: flex; align-items: center; gap: 8px; color: var(--muted);
}
.plan-card ul li:last-child { border-bottom: none; }
.plan-card ul li::before {
  content: '';
  display: block; flex-shrink: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: #dbeafe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%232a5794' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ===== How It Works ===== */
.how-it-works { padding: 80px 0; background: var(--white); }
.how-it-works-head { text-align: center; margin-bottom: 56px; }
.steps-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps-flow::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(12.5% + 28px); right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 100%);
  background: repeating-linear-gradient(90deg, var(--blue) 0, var(--blue) 6px, transparent 6px, transparent 12px);
}
.step-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 8px var(--blue);
  transition: transform var(--transition);
}
.step-item:hover .step-num { transform: scale(1.1); }
.step-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; color: var(--text); }
.step-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }

/* ===== Registered Agent ===== */
.registered-agent {
  background: linear-gradient(135deg, var(--navy) 0%, #243a6a 100%);
  color: #fff; padding: 80px 0;
  position: relative; overflow: hidden;
}
.registered-agent::before {
  content: 'REGISTERED AGENT';
  position: absolute; right: -20px; top: 50%; transform: translateY(-50%) rotate(90deg);
  font-size: 5rem; font-weight: 900; opacity: 0.04; letter-spacing: 0.1em;
  white-space: nowrap; pointer-events: none; color: #fff;
}
.ra-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ra-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.ra-content p { color: rgba(255,255,255,0.7); margin-bottom: 20px; font-size: 1rem; }
.ra-list { list-style: none; margin-bottom: 32px; }
.ra-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.ra-list li:last-child { border-bottom: none; }
.ra-list li::before { content: '→'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.ra-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 36px;
  backdrop-filter: blur(8px);
}
.ra-card-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.ra-card-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ra-card-item:last-child { border-bottom: none; }
.ra-card-icon { width: 36px; height: 36px; background: rgba(240,192,64,0.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.ra-card-label { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.ra-card-val { font-size: 0.92rem; font-weight: 600; color: #fff; }

/* ===== Location ===== */
.location { padding: 72px 0; background: var(--bg); }
.location-head { text-align: center; margin-bottom: 48px; }
.location-map { grid-column: 1 / -1; margin-top: 8px; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-xs);
}
.location-card h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.location-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 8px; }
.location-card strong { color: var(--text); }
.location-card a { color: var(--blue); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--transition); }
.location-card a:hover { text-decoration-color: var(--blue); }
.hours-table { border-collapse: collapse; width: 100%; margin-top: 4px; }
.hours-table td { padding: 8px 0; font-size: 0.92rem; border-bottom: 1px solid var(--border-lt); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { color: var(--muted); width: 150px; }
.hours-table td:last-child { font-weight: 600; }
.closed-label { color: var(--red) !important; }
.location-cta { margin-top: 16px; }

/* ===== Footer ===== */
.site-footer {
  background: #0d1621;
  color: #6b7280;
  text-align: center;
  padding: 28px 24px;
  font-size: 0.82rem;
  border-top: 3px solid rgba(240,192,64,0.2);
}
.site-footer p { margin: 5px 0; }
.site-footer a { color: #9ca3af; }
.site-footer a:hover { color: #fff; }

/* ===== Signup flow ===== */
.signup-wrap { max-width: 700px; margin: 0 auto; padding: 40px 24px; }
.signup-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 44px; box-shadow: var(--shadow-sm); }
.signup-box h2 { font-size: 1.65rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
.sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

/* ===== Progress bar ===== */
.progress-bar { background: var(--white); border-bottom: 1px solid var(--border); margin-bottom: 0; }
.progress-bar .container { display: flex; }
.progress-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 16px 8px 14px;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition);
}
.progress-step.active { border-bottom-color: var(--blue); }
.progress-step.done { border-bottom-color: var(--blue); opacity: 0.55; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--border); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; margin-bottom: 5px;
  transition: background var(--transition), color var(--transition);
}
.progress-step.active .step-num { background: var(--blue); color: #fff; }
.progress-step.done .step-num { background: var(--blue); color: #fff; }
.step-label { font-size: 0.72rem; color: var(--muted); font-weight: 500; }

/* ===== Form fields ===== */
.form-section-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--blue); margin: 24px 0 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border-lt);
}
.form-section-note { font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 0.72rem; }
.field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-size: 0.83rem; font-weight: 600; color: #374151; }
.field-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--r);
  font-family: inherit; font-size: 0.95rem; background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--text); min-width: 0;
}
.field-group { min-width: 0; }
.field-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,87,148,0.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 80px 1fr; gap: 16px; }
.field-group--sm { flex: 0 0 100px; }
.field-error { color: var(--red); font-size: 0.82rem; }
.radio-row { display: flex; gap: 24px; }
.radio-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.95rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.92rem; line-height: 1.4; }
.checkbox-label input { margin-top: 2px; accent-color: var(--blue); }

/* ===== Plan select (step 1) ===== */
.plan-select-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-option { cursor: pointer; }
.plan-option input { display: none; }
.plan-option-inner {
  border: 2px solid var(--border); border-radius: var(--r-lg); padding: 20px 14px;
  text-align: center; transition: all var(--transition);
}
.plan-option input:checked + .plan-option-inner {
  border-color: var(--blue); background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(42,87,148,0.12);
}
.plan-option-inner:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.plan-option--unavailable .plan-option-inner { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.plan-option-name { font-weight: 700; margin-bottom: 4px; font-size: 0.95rem; }
.plan-option-price { font-size: 1.4rem; font-weight: 800; color: var(--blue); }
.plan-option-avail { font-size: 0.73rem; color: var(--muted); margin-top: 6px; }

/* ===== Use type select ===== */
.use-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.use-type-option input { display: none; }
.use-type-inner {
  border: 2px solid var(--border); border-radius: var(--r); padding: 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: all var(--transition);
}
.use-type-option input:checked + .use-type-inner { border-color: var(--blue); background: #eff6ff; }
.use-type-icon { font-size: 1.5rem; }
.use-type-label { font-weight: 600; font-size: 0.95rem; }
.use-type-desc { font-size: 0.78rem; color: var(--muted); }

/* ===== File upload ===== */
.file-upload-area {
  position: relative; border: 2px dashed var(--border); border-radius: var(--r);
  overflow: hidden; transition: border-color var(--transition), background var(--transition);
}
.file-upload-area:hover { border-color: var(--blue); background: #f0f6ff; }
.file-upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-upload-label { display: flex; flex-direction: column; align-items: center; padding: 32px 16px; cursor: pointer; gap: 8px; }
.file-upload-icon { font-size: 2.2rem; }
.file-upload-text { font-size: 0.88rem; color: var(--muted); }
.file-upload-hint { font-size: 0.75rem; color: var(--light); }
.file-name { text-align: center; padding: 6px; font-size: 0.85rem; color: var(--blue); font-weight: 600; }

/* ===== Review summary ===== */
.review-summary { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 24px; }
.review-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-lt); font-size: 0.92rem; }
.review-row:last-child { border-bottom: none; }
.review-row-key { color: var(--muted); }
.review-row-val { font-weight: 600; }
.legal-note { font-size: 0.77rem; color: var(--muted); text-align: center; }

/* ===== Confirmation ===== */
.confirm-icon {
  width: 72px; height: 72px; background: #dcfce7; color: var(--green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 24px;
  box-shadow: 0 0 0 8px rgba(22,163,74,0.1);
}
.text-center { text-align: center; }
.next-steps { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 24px 28px; text-align: left; margin-top: 24px; }
.next-steps h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.next-steps ol { padding-left: 18px; }
.next-steps ol li { margin-bottom: 10px; font-size: 0.92rem; color: var(--muted); }
.next-steps ol li strong { color: var(--text); }

/* ===== Info / Alert boxes ===== */
.info-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--r); padding: 14px 18px; font-size: 0.88rem; color: #1e40af; }
.alert { padding: 12px 18px; border-radius: var(--r); margin-bottom: 16px; font-size: 0.88rem; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* 2-column form grid for admin edit forms */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid-2 .col-span-2 { grid-column: span 2; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } .form-grid-2 .col-span-2 { grid-column: span 1; } }

/* ===== Admin ===== */
.admin-wrap { min-height: 100vh; }
.admin-nav {
  background: var(--navy); color: #fff;
  padding: 14px 32px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 3px solid var(--gold);
}
.admin-nav a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.admin-nav a:hover { color: #fff; }
.admin-nav strong { color: var(--gold); }
.admin-login-wrap { max-width: 400px; margin: 80px auto; padding: 0 24px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px 28px; box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.stat-zero { color: var(--red); }

.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.admin-table th { background: var(--bg); padding: 11px 16px; text-align: left; font-size: 0.78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-table td { padding: 12px 16px; border-top: 1px solid var(--border-lt); font-size: 0.88rem; vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg); }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: 0.74rem; font-weight: 700; background: var(--border); }
.badge--pending { background: #fef3c7; color: #92400e; }
.badge--approved, .badge--active, .badge--paid { background: #dcfce7; color: #14532d; }
.badge--rejected, .badge--cancelled, .badge--failed { background: #fee2e2; color: #991b1b; }
.badge--closing { background: #ffedd5; color: #9a3412; }

/* ===== Inventory grid ===== */
.inventory-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.inv-box {
  width: 110px; min-height: 80px; border-radius: 8px; padding: 8px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; font-weight: 700; transition: transform 0.12s, box-shadow 0.12s;
  gap: 2px; cursor: pointer; color: inherit;
}
.inv-box:hover { transform: scale(1.04); box-shadow: 0 3px 12px rgba(0,0,0,0.18); }
.inv-box--available { background: #dcfce7; color: #14532d; }
.inv-box--pending   { background: #fef3c7; color: #92400e; }
.inv-box--active    { background: #fee2e2; color: #991b1b; }
.inv-box--closing   { background: #ffedd5; color: #9a3412; border: 2px dashed #f97316; }
.inv-num  { font-size: 0.85rem; font-weight: 800; }
.inv-size { font-size: 0.65rem; font-weight: 500; opacity: 0.7; text-transform: capitalize; }
.inv-owner {
  font-size: 0.68rem; font-weight: 600; line-height: 1.25; margin-top: 2px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  word-break: break-word; max-width: 100%; color: inherit; text-decoration: none;
}
a.inv-owner:hover { text-decoration: underline; }
.inv-status-label { font-size: 0.65rem; font-weight: 400; opacity: 0.8; }
.inv-release { background: none; border: 1px solid currentColor; border-radius: 4px; font-size: 0.62rem; cursor: pointer; color: inherit; padding: 2px 5px; }
.inv-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 0.8rem; align-items: center; }
.inv-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.inv-dot--available { background: #dcfce7; border: 1px solid #14532d44; }
.inv-dot--pending   { background: #fef3c7; border: 1px solid #92400e44; }
.inv-dot--active    { background: #fee2e2; border: 1px solid #991b1b44; }
.inv-dot--closing   { background: #ffedd5; border: 1px dashed #f97316; }

/* ===== App detail ===== */
.app-header { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 32px; flex-wrap: wrap; gap: 16px; }
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 28px; box-shadow: var(--shadow-xs); }
.app-section h3 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-lt); }
dl dt { font-size: 0.77rem; color: var(--muted); margin-top: 12px; }
dl dd { font-size: 0.92rem; font-weight: 500; }
.doc-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-lt); font-size: 0.88rem; }

/* ===== Status card ===== */
.status-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 28px; margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.status-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 1.05rem; font-weight: 700; }
.status-card dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 0.9rem; }
.status-card dt { color: var(--muted); }
.status-card dd { font-weight: 500; }

/* ===== Utilities ===== */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 40px; }

/* ===== Mobile responsive ===== */
@media (max-width: 768px) {
  .hero { background-position-x: 30%; padding: 48px 0 64px; }
  .nav-actions { gap: 10px; }
  .nav-status-link { display: none; }
  /* nav icon-only already set as default above */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-sign-wrap { display: none; }
  .hero h1 { font-size: 2.4rem; }
  .ra-inner { grid-template-columns: 1fr; gap: 32px; }
  .plan-grid { grid-template-columns: 1fr; }
  .steps-flow { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-flow::before { display: none; }
  .location-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero-note { flex-direction: column; gap: 4px; }
  .plan-select-grid { grid-template-columns: 1fr; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .field-group--sm { flex: 1; }
  .steps-flow { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .signup-box { padding: 24px 20px; }
  .admin-table { font-size: 0.78rem; }
  .admin-table th:nth-child(4), .admin-table td:nth-child(4),
  .admin-table th:nth-child(6), .admin-table td:nth-child(6) { display: none; }
  .app-header { flex-direction: column; }
  .app-actions { width: 100%; }
  .nav-logo-img { height: 46px; }
  .inventory-grid { gap: 6px; }
  .inv-box { width: 90px; min-height: 72px; padding: 6px 4px; }
  .inv-box { width: 44px; height: 44px; font-size: 0.68rem; }
  .use-type-grid { grid-template-columns: 1fr; }
}

/* Mailbox Photos */
.mailbox-photos { padding: 40px 0 80px; background: #f8f9fb; }
.mailbox-photos-head { text-align: center; margin-bottom: 40px; }
.mailbox-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mailbox-photo { width: 100%; height: 340px; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
@media (max-width: 640px) {
  .mailbox-photo-grid { grid-template-columns: 1fr; }
  .mailbox-photo { height: 260px; }
}

/* ===== FAQ ===== */
.faq-section { padding: 80px 0; background: #fff; }
.faq-head { text-align: center; margin-bottom: 48px; }
.faq-grid { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.faq-item[open] { border-color: var(--blue); }
.faq-q { padding: 18px 20px; font-weight: 600; font-size: 0.97rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--blue); flex-shrink: 0; margin-left: 12px; }
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a { padding: 0 20px 18px; font-size: 0.93rem; color: var(--muted); line-height: 1.65; border-top: 1px solid var(--border); }

/* ===== Google Reviews Carousel ===== */
.reviews-section { padding: 80px 0; background: #f8f9fb; }
.reviews-head { text-align: center; margin-bottom: 40px; }
.reviews-rating-stars { color: #f5a623; font-size: 1.1rem; margin-right: 4px; }
.reviews-carousel { display: flex; align-items: center; gap: 12px; max-width: 700px; margin: 0 auto; }
.carousel-track-wrap { flex: 1; overflow: hidden; border-radius: var(--r); }
.carousel-track { display: flex; transition: transform 0.45s ease; }
.review-card { min-width: 100%; background: #fff; border-radius: var(--r); padding: 28px 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; }
.review-stars { color: #f5a623; font-size: 1.1rem; }
.review-text { font-size: 0.94rem; color: var(--text); line-height: 1.7; flex: 1; }
.review-author { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.carousel-btn { background: #fff; border: 1px solid var(--border); border-radius: 50%; width: 40px; height: 40px; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--navy); flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,0.08); transition: all var(--transition); }
.carousel-btn:hover { border-color: var(--blue); color: var(--blue); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; padding: 0; transition: background var(--transition); }
.carousel-dot--active { background: var(--blue); }
@media (max-width: 640px) {
  .reviews-carousel { gap: 6px; }
  .carousel-btn { width: 32px; height: 32px; font-size: 1.2rem; }
  .review-card { padding: 16px 14px; }
  .review-text { font-size: 0.8rem; line-height: 1.5; }
  .review-stars { font-size: 0.9rem; }
  .review-author { font-size: 0.75rem; }
}

/* ===== Billing Term ===== */
.billing-term-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.billing-option input { display: none; }
.billing-option-inner {
  border: 2px solid var(--border); border-radius: var(--r); padding: 14px 16px;
  cursor: pointer; transition: all var(--transition);
}
.billing-option input:checked + .billing-option-inner { border-color: var(--blue); background: #eff6ff; }
.billing-term-label { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.billing-term-price { font-size: 1.05rem; font-weight: 600; color: var(--blue); margin: 2px 0; }
.billing-term-note { font-size: 0.75rem; color: var(--muted); }

/* ===== Lead Capture Popup ===== */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.popup-overlay.popup-visible { opacity: 1; pointer-events: all; }
.popup-box {
  background: #fff; border-radius: 16px; padding: 40px 36px; max-width: 420px; width: 90%;
  position: relative; box-shadow: 0 8px 48px rgba(0,0,0,0.25);
  transform: translateY(16px); transition: transform 0.3s ease;
  text-align: center;
}
.popup-overlay.popup-visible .popup-box { transform: translateY(0); }
.popup-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 1.6rem; cursor: pointer; color: #999; line-height: 1;
}
.popup-close:hover { color: #333; }
.popup-icon { font-size: 2.4rem; margin-bottom: 8px; }
.popup-title { font-size: 1.5rem; font-weight: 800; color: #2a5794; margin: 0 0 8px; }
.popup-sub { color: #555; font-size: 0.95rem; margin: 0 0 20px; }
.popup-form { display: flex; flex-direction: column; gap: 10px; }
.popup-input {
  width: 100%; padding: 12px 14px; border: 2px solid #ddd; border-radius: 8px;
  font-size: 1rem; box-sizing: border-box; transition: border-color 0.2s;
}
.popup-input:focus { outline: none; border-color: #2a5794; }
.popup-btn { width: 100%; padding: 13px; font-size: 1rem; }
.popup-msg { margin: 12px 0 0; font-size: 0.9rem; }
.popup-msg--success { color: #166534; }
.popup-msg--error { color: #b91c1c; }
.popup-fine { font-size: 0.75rem; color: #aaa; margin: 12px 0 0; }

/* ===== Admin Sidebar Layout ===== */
.admin-wrap { display: flex; flex-direction: row; min-height: 100vh; }

.admin-sidebar {
  width: 220px; min-width: 220px; background: var(--navy);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  flex-shrink: 0;
}
.admin-sidebar-header {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar-logo-img { width: 100%; max-width: 160px; border-radius: 6px; }

.admin-sidebar-nav {
  flex: 1; padding: 12px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.admin-sidebar-bottom {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 2px;
}

.admin-sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; color: rgba(255,255,255,0.65);
  font-size: 0.88rem; font-weight: 500;
  border-radius: 0; transition: background var(--transition), color var(--transition);
  position: relative;
}
.admin-sidebar-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-sidebar-item.active {
  background: rgba(240,192,64,0.15); color: var(--gold);
  border-left: 3px solid var(--gold);
}
.admin-sidebar-item.active svg { color: var(--gold); }
.admin-sidebar-item svg { flex-shrink: 0; }

.sidebar-badge {
  background: #dc2626; color: #fff;
  border-radius: 10px; padding: 1px 6px; font-size: 0.72rem; font-weight: 700;
  margin-left: auto;
}

.admin-content { flex: 1; overflow-x: hidden; min-width: 0; }

/* Override old admin-nav since we replaced it */
.admin-nav { display: none; }

@media (max-width: 768px) {
  .admin-sidebar { width: 60px; min-width: 60px; }
  .admin-sidebar-item span,
  .admin-sidebar-item { font-size: 0; gap: 0; padding: 12px; justify-content: center; }
  .admin-sidebar-item svg { font-size: initial; }
  .admin-sidebar-logo-img { width: 36px; }
  .sidebar-badge { display: none; }
}
