/* ========================================
   ReAssist.ai - Main Stylesheet
   ======================================== */

:root {
  --primary: #0d2137;
  --primary-light: #1a3a5c;
  --gold: #c9a84c;
  --gold-light: #e2c472;
  --gold-dark: #a8893a;
  --accent: #1e6fdf;
  --accent-light: #3b82f6;
  --bg: #f5f7fa;
  --bg-white: #ffffff;
  --text: #1e293b;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
  --warning: #d97706;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { color: var(--primary); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--text-mid); }

/* ---- Utilities ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.section-label {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title { margin-bottom: 12px; }
.section-sub { font-size: 1.05rem; color: var(--text-mid); max-width: 560px; }
.section-sub.centered { margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-logo img { height: 48px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--bg); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  padding: 140px 0 90px;
  background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 55%, #0d2137 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30,111,223,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.18);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Sections ---- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg); }
.section-dark {
  background: var(--primary);
  color: #fff;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.72); }

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(13,33,55,0.08), rgba(201,168,76,0.12));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { margin-bottom: 20px; font-size: 0.95rem; }
.service-tag {
  display: inline-block;
  background: rgba(22,163,74,0.1);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* ---- How It Works ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.step-item { text-align: center; padding: 24px 16px; }
.step-num {
  width: 56px; height: 56px;
  background: var(--gold);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}
.step-item h4 { margin-bottom: 8px; }
.step-item p { font-size: 0.9rem; }

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--primary);
  padding: 36px 0;
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.trust-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 48px auto 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-white);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--primary);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-icon {
  width: 24px; height: 24px;
  background: var(--gold);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
}
.faq-answer p { font-size: 0.93rem; }
.faq-item.open .faq-answer { display: block; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer {
  background: #091929;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.88rem;
  margin: 14px 0 20px;
  color: rgba(255,255,255,0.5);
}
.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-top: 20px;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
}

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 100px 0 56px;
  margin-top: 72px;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.72); font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ---- Forms ---- */
.form-section { padding: 64px 0; }
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-label .required { color: var(--error); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,111,223,0.1);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}
.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 4px;
}
.form-control.is-invalid { border-color: var(--error); }

/* ---- Checkbox & Radio ---- */
.check-group { display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.check-item input[type="checkbox"],
.check-item input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.check-item label { font-size: 0.9rem; cursor: pointer; }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-card {
  flex: 1;
  min-width: 140px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}
.radio-card:hover { border-color: var(--accent); }
.radio-card.selected {
  border-color: var(--accent);
  background: rgba(30,111,223,0.05);
}
.radio-card input { accent-color: var(--accent); }
.checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

/* ---- Contract Wizard ---- */
.wizard-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.wizard-main { }
.wizard-sidebar {
  position: sticky;
  top: 96px;
}
.progress-bar-wrap {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.progress-title { font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.progress-count { font-size: 0.82rem; color: var(--text-light); }
.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 3px;
  transition: width 0.5s ease;
}
.step-list { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.step-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-light);
  transition: all var(--transition);
}
.step-list-item.active {
  background: rgba(30,111,223,0.08);
  color: var(--accent);
  font-weight: 600;
}
.step-list-item.done { color: var(--success); }
.step-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-list-item.done .step-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.step-list-item.active .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.wizard-step-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.step-badge {
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-header-text h2 { font-size: 1.4rem; margin-bottom: 4px; }
.step-header-text p { font-size: 0.9rem; }
.step-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.review-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}
.review-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.review-grid {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.review-item label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.review-item span {
  font-size: 0.92rem;
  color: var(--text);
}

/* ---- Info Box ---- */
.info-box {
  background: rgba(30,111,223,0.06);
  border: 1px solid rgba(30,111,223,0.2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--text);
}
.info-box.warning {
  background: rgba(217,119,6,0.06);
  border-color: rgba(217,119,6,0.25);
  border-left-color: var(--warning);
}
.info-box strong { color: var(--primary); }

/* ---- Alert ---- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert-success { background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.25); color: #166534; }
.alert-error { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.25); color: #991b1b; }

/* ---- Conditional Field ---- */
.conditional-field { display: none; }
.conditional-field.visible { display: block; }

/* ---- Thank You Page ---- */
.thankyou-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}
.thankyou-card {
  max-width: 560px;
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.thankyou-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(22,163,74,0.06));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  border: 2px solid rgba(22,163,74,0.25);
}
.thankyou-card h1 { font-size: 2rem; margin-bottom: 12px; }
.thankyou-card p { font-size: 1rem; margin-bottom: 28px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-sidebar { position: static; }
  .step-list { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 110px 0 64px; }
  .hero-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .wizard-step-card { padding: 24px 20px; }
  .form-card { padding: 28px 20px; }
  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .trust-items { gap: 30px; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}
