/* CSS Variables */
:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: #030213;
  --card: #ffffff;
  --card-foreground: #030213;
  --primary: #030213;
  --primary-foreground: #ffffff;
  --secondary: #f3f3f5;
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --ring: #b3b3b3;
  --radius: 0.625rem;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  
  /* Custom colors */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-400: #60a5fa;
  --blue-600: #2563eb;
  --blue-900: #1e3a8a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --green-500: #10b981;
  --indigo-100: #e0e7ff;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  min-height: 44px;
}

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

.btn-primary:hover {
  background-color: var(--gray-800);
  border-color: var(--gray-800);
}

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

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

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--indigo-100) 100%);
  padding: 2rem 1rem;
}

.hero-content {
  max-width: 64rem;
  text-align: center;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  line-height: 1.1;
}

.text-blue {
  color: var(--blue-600);
}

.hero-description {
  margin-bottom: 2rem;
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.scroll-indicator {
  background: none;
  border: none;
  color: var(--gray-600);
  font-size: 1.5rem;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.section-header p {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin: 0 auto;
}

/* Benefits Section */
.benefits-section {
  padding: 5rem 1rem;
  background-color: var(--background);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.3s ease;
}

.benefit-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--blue-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-icon i {
  font-size: 1.5rem;
  color: var(--blue-600);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.benefit-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* How It Works Section */
.how-it-works-section {
  padding: 5rem 1rem;
  background-color: var(--gray-50);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.step-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  width: 2rem;
  height: 2rem;
  background-color: var(--blue-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.step-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--blue-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-icon i {
  font-size: 2rem;
  color: var(--blue-600);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.step-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

.security-notice {
  background-color: var(--blue-50);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.security-notice h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.security-notice p {
  color: var(--gray-700);
  margin-bottom: 0;
}

/* Form Sections */
.quote-form-section,
.mediator-form-section {
  padding: 5rem 1rem;
}

.quote-form-section {
  background-color: var(--background);
}

.mediator-form-section {
  background-color: var(--gray-50);
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
}

.form-icon i {
  font-size: 3rem;
  color: var(--blue-600);
}

.form-header h2 {
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.form-header p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

.form-container {
  max-width: 42rem;
  margin: 0 auto;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-card h3 {
  margin-bottom: 2rem;
  color: var(--gray-900);
}

/* Form Elements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--input-background);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Checkbox Styles */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: var(--font-weight-normal);
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.checkmark {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: var(--blue-600);
  border-color: var(--blue-600);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
}

/* Footer */
.footer-section {
  background-color: var(--gray-900);
  color: white;
  padding: 4rem 1rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h3,
.footer-column h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-column p {
  color: var(--gray-300);
  margin-bottom: 1.5rem;
}

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

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: white;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-300);
}

.contact-item i {
  color: var(--blue-400);
  width: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-400);
  margin-bottom: 0;
}

/* Success Messages */
.success-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.success-content {
  background: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  max-width: 32rem;
  margin: 1rem;
}

.success-content i {
  font-size: 4rem;
  color: var(--green-500);
  margin-bottom: 1rem;
}

.success-content h3 {
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.success-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.success-note {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
  
  .container {
    padding: 0 2rem;
  }
  
  .cta-buttons {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-description {
    font-size: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 3rem;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .hero-photo-section {
    margin: 2rem 0;
  }
  
  .team-photo {
    max-width: 100%;
  }
  
  .photo-caption {
    padding: 0.75rem;
  }
  
  .caption-text {
    font-size: 0.85rem;
  }
}

/* Navigation */
.navigation {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
}

.nav-logo i {
  color: var(--blue-600);
}

/* About Page Styles */
.about-content-section {
  padding: 5rem 1rem;
  background-color: var(--background);
}

/* Privacy Policy Styles */
.privacy-content {
  max-width: 64rem;
  margin: 0 auto;
  line-height: 1.7;
}

.privacy-content h2 {
  color: var(--gray-900);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--blue-100);
  padding-bottom: 0.5rem;
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.privacy-content a {
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
}

.privacy-content a:hover {
  text-decoration: underline;
}

/* Hero Photo Section */
.hero-photo-section {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
}

.hero-photo {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.team-photo {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.photo-caption {
  background-color: var(--gray-50);
  padding: 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--blue-600);
}

.caption-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-style: italic;
  margin: 0;
  text-align: left;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.3s ease;
}

.about-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--blue-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.about-icon i {
  font-size: 1.5rem;
  color: var(--blue-600);
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.about-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

.call-to-action {
  background-color: var(--blue-50);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

.call-to-action h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.call-to-action p {
  color: var(--gray-700);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.cta-buttons .btn {
  min-width: 200px;
}

.cta-buttons .btn i {
  margin-right: 0.5rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-blue {
  color: var(--blue-600);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-banner-text h3 {
  margin-bottom: 0.75rem;
  color: var(--gray-900);
  font-size: 1.25rem;
}

.cookie-banner-text p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}

.cookie-option:hover {
  background-color: var(--gray-50);
}

.cookie-option input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.cookie-option .checkmark {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.cookie-option input[type="checkbox"]:checked + .checkmark {
  background-color: var(--blue-600);
  border-color: var(--blue-600);
}

.cookie-option input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
}

.cookie-option input[type="checkbox"]:disabled + .checkmark {
  background-color: var(--gray-200);
  border-color: var(--gray-300);
  cursor: not-allowed;
}

.cookie-option input[type="checkbox"]:disabled + .checkmark::after {
  content: '✓';
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: bold;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-settings-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--blue-600);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-settings-btn:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.cookie-settings-btn i {
  font-size: 1rem;
}

/* Responsive Cookie Banner */
@media (min-width: 768px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  
  .cookie-banner-text {
    flex: 1;
  }
  
  .cookie-banner-actions {
    flex-direction: row;
    flex-shrink: 0;
  }
  
  .cookie-options {
    flex-direction: row;
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .cookie-banner {
    padding: 1rem;
  }
  
  .cookie-banner-actions {
    width: 100%;
  }
  
  .cookie-banner-actions .btn {
    width: 100%;
  }
}
