/* ============================================
   Michigan FOIA Portal — Funnel Styles
   Brand: Navy (#1a2332), Gold (#d4a853), White
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a2332;
  --navy-light: #243044;
  --navy-lighter: #2d3d55;
  --gold: #d4a853;
  --gold-dark: #b8923f;
  --gold-light: #e6c47a;
  --white: #ffffff;
  --off-white: #f0f0f0;
  --gray: #a0aec0;
  --gray-dark: #718096;
  --red: #e53e3e;
  --green: #38a169;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-gold: 0 4px 24px rgba(212,168,83,0.25);
  --transition: all 0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Layout ---- */
.page-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.page-wrapper--wide {
  max-width: 960px;
}

/* ---- Header / Nav ---- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(212,168,83,0.15);
}

.top-bar__logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 40px 0 20px;
}

.hero__headline {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

.hero__sub strong {
  color: var(--gold);
}

/* ---- Video Embed ---- */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 32px;
  padding-bottom: 56.25%; /* 16:9 */
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(212,168,83,0.2);
}

.video-wrapper iframe,
.video-wrapper video,
.video-wrapper .video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  color: var(--gray);
  font-size: 1rem;
  text-align: center;
  padding: 20px;
}

.video-placeholder span {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* ---- Section ---- */
.section {
  margin: 32px 0;
}

.section__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

/* ---- Pain Bullets ---- */
.pain-list {
  list-style: none;
  padding: 0;
}

.pain-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  font-size: 1.02rem;
  color: var(--off-white);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1.55;
}

.pain-list li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 1rem;
}

.pain-list li strong {
  color: var(--gold);
}

/* ---- Feature List ---- */
.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 4px;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  font-size: 0.98rem;
  color: var(--off-white);
  line-height: 1.5;
}

.feature-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 0.95rem;
}

/* ---- Feature Grid (3-col for upsell) ---- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-grid li {
  background: var(--navy-light);
  padding: 16px 16px 16px 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(212,168,83,0.1);
  font-size: 0.97rem;
  line-height: 1.5;
}

/* ---- Order Form ---- */
.order-form {
  background: var(--navy-light);
  border: 2px solid rgba(212,168,83,0.25);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin: 32px 0;
}

.order-form__title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-row--single {
  grid-template-columns: 1fr;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,83,0.15);
}

.form-group input::placeholder {
  color: var(--gray-dark);
}

/* ---- Order Bump ---- */
.order-bump {
  margin: 20px 0;
  padding: 18px 20px;
  background: rgba(212,168,83,0.07);
  border: 1px dashed var(--gold-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.order-bump:hover {
  background: rgba(212,168,83,0.12);
}

.order-bump__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.order-bump__checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
  cursor: pointer;
}

.order-bump__text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--off-white);
}

.order-bump__text strong {
  color: var(--gold);
}

.order-bump__text small {
  display: block;
  margin-top: 6px;
  color: var(--gray);
  font-size: 0.85rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.3;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  width: 100%;
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(212,168,83,0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--large {
  padding: 20px 48px;
  font-size: 1.2rem;
}

.btn--success {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
  color: var(--white);
  width: 100%;
  box-shadow: 0 4px 20px rgba(56,161,105,0.3);
}

.btn--success:hover {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 100%;
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn__sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 3px;
}

/* ---- Callout Box ---- */
.callout {
  background: rgba(212,168,83,0.08);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 1.05rem;
  color: var(--off-white);
  line-height: 1.6;
}

.callout strong {
  color: var(--gold);
}

/* ---- Trust Footer ---- */
.trust-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.trust-footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  margin-top: 16px;
}

.trust-footer__item {
  font-size: 0.88rem;
  color: var(--gray);
}

.trust-footer__item strong {
  color: var(--off-white);
}

/* ---- Upsell Page ---- */
.upsell-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.upsell-actions .btn {
  max-width: 480px;
}

.decline-link {
  font-size: 0.95rem;
  color: var(--gray);
  font-style: italic;
  padding: 8px;
  transition: var(--transition);
}

.decline-link:hover {
  color: var(--gold);
}

/* ---- Thank You Page ---- */
.delivery-section {
  background: var(--navy-light);
  border: 1px solid rgba(212,168,83,0.15);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 20px 0;
  text-align: center;
}

.delivery-section__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.delivery-section__desc {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.5;
}

.delivery-section .btn {
  max-width: 400px;
}

.calendar-placeholder {
  background: var(--navy-lighter);
  border: 2px dashed rgba(212,168,83,0.2);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--gray);
  margin-top: 16px;
}

.calendar-placeholder span {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* ---- Divider ---- */
.divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 32px 0;
}

/* ---- Disclaimer ---- */
.disclaimer {
  font-size: 0.82rem;
  color: var(--gray-dark);
  line-height: 1.5;
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius);
}

/* ---- Form error ---- */
.form-error {
  background: rgba(229,62,62,0.12);
  border: 1px solid rgba(229,62,62,0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #fc8181;
  font-size: 0.92rem;
  display: none;
}

.form-error.visible {
  display: block;
}

/* ---- Spinner ---- */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26,35,50,0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
  .hero__headline {
    font-size: 2.5rem;
  }

  .order-form {
    padding: 36px 40px;
  }
}

@media (max-width: 480px) {
  .hero__headline {
    font-size: 1.6rem;
  }

  .hero__sub {
    font-size: 0.98rem;
  }

  .order-form {
    padding: 24px 18px;
  }

  .btn--large {
    padding: 18px 28px;
    font-size: 1.05rem;
  }

  .trust-footer__grid {
    flex-direction: column;
    gap: 12px;
  }
}
