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

:root {
  --blue-900: #0f172a;
  --blue-800: #1e293b;
  --blue-700: #334155;
  --blue-600: #475569;
  --blue-500: #64748b;
  --blue-400: #94a3b8;
  --blue-300: #cbd5e1;
  --blue-200: #e2e8f0;
  --blue-100: #f1f5f9;
  --blue-50: #f8fafc;

  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-300: #fdba74;
  --orange-200: #fed7aa;
  --orange-100: #ffedd5;
  --orange-50: #fff7ed;

  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;

  --white: #ffffff;
  --black: #0a0a0a;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--blue-900);
  line-height: 1.6;
  background: var(--white);
}

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

/* ========== HEADER ========== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--blue-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--white);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--blue-900);
}

.logo-text span {
  color: var(--orange-500);
}

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

nav a {
  text-decoration: none;
  color: var(--blue-700);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--orange-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.45);
}

.btn-secondary {
  background: var(--blue-100);
  color: var(--blue-800);
}

.btn-secondary:hover {
  background: var(--blue-200);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue-300);
  color: var(--blue-700);
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-800);
  text-decoration: none;
  font-weight: 600;
}

.phone-link svg {
  width: 20px;
  height: 20px;
  fill: var(--orange-500);
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--orange-400);
}

.hero-content p {
  font-size: 19px;
  color: var(--blue-300);
  margin-bottom: 32px;
  max-width: 520px;
}

.trust-badges {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-badge-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-badge-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--orange-400);
}

.trust-badge-text {
  color: var(--white);
}

.trust-badge-number {
  font-size: 24px;
  font-weight: 700;
  display: block;
}

.trust-badge-label {
  font-size: 13px;
  color: var(--blue-400);
}

/* ========== FORM WIDGET ========== */
.form-widget {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.form-header {
  background: var(--orange-50);
  padding: 20px 28px;
  border-bottom: 1px solid var(--orange-200);
}

.form-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--blue-900);
  margin-bottom: 4px;
}

.form-header p {
  font-size: 14px;
  color: var(--blue-600);
}

.form-progress {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.progress-step {
  flex: 1;
  height: 4px;
  background: var(--orange-200);
  border-radius: 2px;
  transition: background 0.3s;
}

.progress-step.active {
  background: var(--orange-500);
}

.form-body {
  padding: 28px;
}

.step-indicator {
  font-size: 13px;
  color: var(--blue-500);
  margin-bottom: 16px;
}

.step-indicator span {
  color: var(--orange-500);
  font-weight: 600;
}

.form-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 20px;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.category-card {
  padding: 16px;
  border: 2px solid var(--blue-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--white);
}

.category-card:hover {
  border-color: var(--orange-400);
  background: var(--orange-50);
}

.category-card.selected {
  border-color: var(--orange-500);
  background: var(--orange-50);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.category-card:hover .category-icon,
.category-card.selected .category-icon {
  background: var(--orange-100);
}

.category-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--blue-700);
  transition: fill 0.2s;
}

.category-card:hover .category-icon svg,
.category-card.selected .category-icon svg {
  fill: var(--orange-600);
}

.category-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--blue-800);
}

/* Sub-category list */
.subcategory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subcategory-item {
  padding: 14px 18px;
  border: 2px solid var(--blue-200);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}

.subcategory-item:hover {
  border-color: var(--orange-400);
  background: var(--orange-50);
}

.subcategory-item.selected {
  border-color: var(--orange-500);
  background: var(--orange-50);
}

.subcategory-item span {
  font-weight: 500;
  font-size: 15px;
  color: var(--blue-800);
}

.subcategory-item svg {
  width: 20px;
  height: 20px;
  fill: var(--blue-400);
  transition: all 0.2s;
}

.subcategory-item:hover svg,
.subcategory-item.selected svg {
  fill: var(--orange-500);
  transform: translateX(4px);
}

/* Form Fields */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--blue-800);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--blue-200);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-body);
  transition: all 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

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

/* Radio Options */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  padding: 14px 18px;
  border: 2px solid var(--blue-200);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.radio-option:hover {
  border-color: var(--orange-400);
}

.radio-option.selected {
  border-color: var(--orange-500);
  background: var(--orange-50);
}

.radio-circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--blue-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.radio-option.selected .radio-circle {
  border-color: var(--orange-500);
}

.radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange-500);
  transform: scale(0);
  transition: transform 0.2s;
}

.radio-option.selected .radio-circle::after {
  transform: scale(1);
}

.radio-label {
  font-weight: 500;
  font-size: 15px;
  color: var(--blue-800);
}

/* Form Navigation */
.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--blue-100);
}

.form-nav .btn {
  min-width: 140px;
}

.btn-back {
  background: transparent;
  color: var(--blue-600);
}

.btn-back:hover {
  background: var(--blue-100);
}

/* Legal */
.legal-text {
  font-size: 12px;
  color: var(--blue-500);
  margin-top: 16px;
  line-height: 1.5;
}

.legal-text a {
  color: var(--orange-600);
  text-decoration: none;
}

/* Success State */
.success-state {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--green-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--green-600);
}

.success-state h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--blue-900);
  margin-bottom: 12px;
}

.success-state p {
  color: var(--blue-600);
  font-size: 15px;
}

/* ========== CATEGORIES SECTION ========== */
.categories-section {
  padding: 80px 0;
  background: var(--blue-50);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--blue-900);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--blue-600);
  max-width: 600px;
  margin: 0 auto;
}

.categories-large-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-large-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--blue-200);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.category-large-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-300);
}

.category-large-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--orange-100) 0%, var(--orange-50) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.category-large-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--orange-600);
}

.category-large-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 8px;
}

.category-large-card p {
  font-size: 13px;
  color: var(--blue-500);
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: 80px 0;
  background: var(--white);
}

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

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

.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: var(--orange-300);
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  color: var(--blue-600);
  line-height: 1.6;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  padding: 80px 0;
  background: var(--blue-900);
}

.testimonials .section-header h2 {
  color: var(--white);
}

.testimonials .section-header p {
  color: var(--blue-400);
}

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

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--orange-400);
}

.testimonial-text {
  font-size: 15px;
  color: var(--blue-200);
  margin-bottom: 20px;
  line-height: 1.7;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-600) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--white);
  font-size: 16px;
}

.testimonial-info {
  color: var(--white);
}

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

.testimonial-location {
  font-size: 13px;
  color: var(--blue-400);
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background: var(--white);
  color: var(--orange-600);
  padding: 16px 40px;
  font-size: 17px;
  box-shadow: var(--shadow-lg);
}

.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ========== FOOTER ========== */
footer {
  background: var(--blue-900);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  color: var(--blue-400);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--blue-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--orange-400);
}

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

.footer-bottom p {
  color: var(--blue-500);
  font-size: 13px;
}

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

.footer-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.footer-socials a:hover {
  background: var(--orange-500);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .trust-badges {
    justify-content: center;
  }

  .form-widget {
    max-width: 480px;
    margin: 0 auto;
  }

  .categories-large-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .hero-content h1 {
    font-size: 32px;
  }

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

  .step-card:not(:last-child)::after {
    display: none;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Hide elements for step transitions */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
