@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --accent-color: #f59e0b;
  /* Warm amber */
  --accent-hover: #d97706;
  --primary-color: #0f172a;
  /* Dark navy */
  --border-color: #e2e8f0;
  --error-color: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Trust Header */
header {
  padding: 1.25rem 5%;
  background: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  text-decoration: none;
}

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

.header-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)), url('assets/hero_house.png') center/cover no-repeat;
  color: white;
  padding: 8rem 5% 6rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.hero-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 5%;
  background-color: var(--bg-primary);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.steps-container {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
}

.step {
  flex: 1;
  padding: 2.5rem 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.step-number {
  background: var(--primary-color);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.step p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Benefits Section */
.benefits {
  background-color: var(--bg-secondary);
  padding: 5rem 5%;
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benefits h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.benefits-list {
  list-style: none;
}

.benefits-list li {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 1.5;
}

.benefits-list li strong {
  color: var(--primary-color);
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.benefits-image {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
}

/* Main Forms Section */
.forms-section {
  padding: 6rem 5%;
  background-color: var(--bg-primary);
}

.forms-section>h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.forms-section>p {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-inline: auto;
}

.forms-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Form Card Styling */
.card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.card h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card p.desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

label.input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Checkboxes for Compliance */
.compliance-group {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

input[type="checkbox"]:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
}

.checkbox-label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  padding: 1.25rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 1rem;
}

.submit-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Verified Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 5rem 5% 2rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.footer-brand span {
  color: var(--accent-color);
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-contact h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 1rem;
  color: #94a3b8;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}

.footer-links-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

/* Legal Pages Styling */
.legal-content {
  max-width: 800px;
  margin: 4rem auto;
  background-color: white;
  padding: 4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.legal-content .last-updated {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 5%;
  background-color: var(--bg-secondary);
  text-align: center;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  text-align: left;
}

.testimonial-card .stars {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
}

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

  .steps-container {
    flex-direction: column;
  }

  .benefits-container {
    grid-template-columns: 1fr;
  }

  .forms-container {
    grid-template-columns: 1fr;
  }

  header {
    padding: 1rem 5%;
  }

  .hero {
    padding: 6rem 5% 4rem;
  }
}