/* =========================================
   AI Deal Desk — Design System
   ========================================= */

:root {
  /* Colors — PRD design system */
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --navy: #1A1A2E;
  --primary: #4F46E5;
  --primary-dark: #3730a3;
  --accent: #059669;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --border: #E5E7EB;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* =========================================
   Navigation
   ========================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  margin-left: 8px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .nav-cta {
    margin-left: 0;
  }
}

/* =========================================
   Buttons
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: white;
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: #F3F4F6;
  transform: translateY(-1px);
}

/* =========================================
   Hero
   ========================================= */

.hero {
  background: linear-gradient(180deg, #F1F5F9 0%, #FAFAF8 100%);
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   Trust Bar
   ========================================= */

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 24px;
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-stat {
  text-align: center;
}

.trust-stat .number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
}

.trust-stat .label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* =========================================
   Sections
   ========================================= */

.section {
  padding: 80px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.section-alt {
  background: white;
}

.section-alt-2 {
  background: #FAFAF8;
}

.section-dark {
  background: var(--primary);
  color: white;
  padding: 80px 24px;
}

.section-dark .section-title {
  color: white;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: -32px auto 48px;
}

/* =========================================
   How It Works — Steps
   ========================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
  position: relative;
}

.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin: 0 auto 20px;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* =========================================
   Value Props
   ========================================= */

.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-prop {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.value-prop-icon {
  width: 40px;
  height: 40px;
  background: #F1F5F9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.value-prop h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.value-prop p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* =========================================
   Provider Cards
   ========================================= */

.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.provider-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.15s;
  cursor: pointer;
}

.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.provider-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
  margin-bottom: 16px;
}

.provider-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.provider-company {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.provider-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  background: #EEF2FF;
  color: #4F46E5;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.provider-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.provider-rating .stars {
  color: #F59E0B;
}

/* =========================================
   FAQ Accordion
   ========================================= */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
  font-family: var(--font);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--text-secondary);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =========================================
   CTA Section
   ========================================= */

.cta-section {
  background: var(--primary);
  padding: 80px 24px;
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin-bottom: 32px;
}

/* =========================================
   Footer
   ========================================= */

.footer {
  background: #111827;
  color: white;
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s;
}

.footer-social a:hover {
  color: white;
}

/* =========================================
   Page Hero (Interior Pages)
   ========================================= */

.page-hero {
  background: linear-gradient(180deg, #F1F5F9 0%, #FAFAF8 100%);
  padding: 80px 24px 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   Modal
   ========================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
}

.modal-close:hover {
  color: var(--text);
}

.modal h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-company {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.modal-section p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* =========================================
   Scroll Animations
   ========================================= */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Testimonials
   ========================================= */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.testimonial-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-secondary);
}

/* =========================================
   Escrow Process
   ========================================= */

.escrow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.escrow-step {
  text-align: center;
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.escrow-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 16px;
}

.escrow-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.escrow-step p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* =========================================
   Process List
   ========================================= */

.process-list {
  max-width: 600px;
  margin: 0 auto;
}

.process-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}

.process-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.process-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.process-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* =========================================
   Dispute Tiers
   ========================================= */

.dispute-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dispute-tier {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.dispute-tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.dispute-tier-1 .dispute-tier-badge {
  background: #DCFCE7;
  color: #166534;
}

.dispute-tier-2 .dispute-tier-badge {
  background: #FEF3C7;
  color: #92400E;
}

.dispute-tier-3 .dispute-tier-badge {
  background: #FEE2E2;
  color: #991B1B;
}

.dispute-tier h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.dispute-tier p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* =========================================
   Contact Section
   ========================================= */

.contact-section {
  background: white;
  padding: 60px 24px;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-email {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
}

/* =========================================
   Simple Interior Pages (Stripe, Payment)
   ========================================= */

.simple-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.simple-page .footer {
  margin-top: auto;
}

.stripe-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.stripe-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.stripe-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.stripe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #635BFF;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.stripe-btn:hover {
  background: #5046e5;
  transform: translateY(-1px);
}

.payment-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 60px 24px;
}

.payment-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.order-summary {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.order-row:last-child {
  border-bottom: none;
  font-weight: 600;
  padding-top: 16px;
}

.order-row .label {
  color: var(--text-secondary);
}

.escrow-note {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.escrow-note svg {
  flex-shrink: 0;
  color: var(--accent);
}

.escrow-note p {
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
}

.pay-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.pay-btn:hover {
  background: var(--primary-dark);
}

.trust-signals {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.trust-signal {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.trust-signal svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* =========================================
   Success Page
   ========================================= */

.success-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent);
}

.success-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-content > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.next-steps {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  margin-bottom: 24px;
}

.next-steps h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.next-step-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text);
}

.next-step-item:last-child {
  margin-bottom: 0;
}

.next-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EEF2FF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

/* =========================================
   Deal Request Form
   ========================================= */

.form-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-section-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .required {
  color: #DC2626;
  margin-left: 2px;
}

.form-label .optional {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 13px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input.input-error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-error {
  display: none;
  color: #DC2626;
  font-size: 13px;
  margin-top: 4px;
}

/* Radio Cards */
.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.radio-card {
  cursor: pointer;
  display: block;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-inner {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
}

.radio-card input:checked + .radio-card-inner {
  border-color: var(--primary);
  background: #EEF2FF;
}

.radio-card:hover .radio-card-inner {
  border-color: var(--primary);
}

.radio-card-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.radio-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkbox-card {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.checkbox-card:hover {
  border-color: var(--primary);
}

.checkbox-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-card:has(input:checked) {
  border-color: var(--primary);
  background: #EEF2FF;
}

/* Form Submit */
.form-submit-section {
  margin-top: 32px;
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  justify-content: center;
  position: relative;
}

.form-submit-btn.loading {
  opacity: 0.8;
  cursor: not-allowed;
}

.form-disclaimer {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* Error Banner */
.form-error-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
  color: #991B1B;
  font-size: 14px;
}

.form-error-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Spin animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 0.8s linear infinite;
}

/* =========================================
   Confirmation Page
   ========================================= */

.confirm-page {
  min-height: 100vh;
  background: var(--bg);
}

.confirm-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}

.confirm-icon {
  width: 80px;
  height: 80px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.confirm-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.confirm-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.confirm-deal-id {
  display: inline-block;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-family: var(--font-mono);
}

.confirm-deal-id code {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-mono);
}

.confirm-next-steps {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  margin-bottom: 24px;
}

.confirm-next-steps h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}

.confirm-step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.confirm-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.confirm-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirm-step-content h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.confirm-step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.escrow-reminder {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}

.escrow-reminder svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.escrow-reminder strong {
  display: block;
  font-size: 14px;
  color: #166534;
  margin-bottom: 4px;
}

.escrow-reminder p {
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
  margin: 0;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.confirm-contact {
  font-size: 14px;
  color: var(--text-secondary);
}

.confirm-contact a {
  color: var(--primary);
}

/* =========================================
   Generic Success Page (success.html)
   ========================================= */

.success-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.success-page .footer {
  margin-top: auto;
}

/* =========================================
   Provider Application Form
   ========================================= */

.provider-form-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.provider-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

.provider-form .form-group:last-of-type {
  margin-bottom: 0;
}

.terms-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.terms-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.terms-group label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.terms-group label a {
  color: var(--primary);
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .trust-bar {
    flex-direction: column;
    gap: 20px;
  }

  .steps,
  .value-props,
  .provider-grid,
  .testimonials-grid,
  .escrow-steps,
  .dispute-tiers {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .testimonial-card {
    margin-bottom: 0;
  }
}
