/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0077be;
  --primary-hover: #005a91;
  --primary-light: #e6f3fa;
  --background: #f5f5f5;
  --foreground: #1a2b3c;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --success: #16a34a;
  --success-hover: #15803d;
  --error: #dc2626;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-heading: 'DM Sans', system-ui, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Topbar */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

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

.topbar-brand {
  color: var(--muted);
}

.topbar-links {
  display: flex;
  gap: 1.5rem;
}

.topbar-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-link:hover {
  color: var(--primary);
}

/* Header */
.header {
  background: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-img {
  height: 50px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.header-link:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

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

.btn-secondary {
  background: var(--white);
  color: var(--foreground);
  border: 1px solid var(--border);
}

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

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

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

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

.btn-success:hover {
  background: var(--success-hover);
}

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

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
}

.hero-text {
  padding: 4rem 0;
  max-width: 560px;
}

.hero-subtitle {
  font-size: 0.875rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.hero-subdescription {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-contact {
  margin-top: 1.5rem;
}

.contact-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
}

.hero-image-mask {
  width: 100%;
  height: 100%;
  clip-path: ellipse(100% 100% at 100% 50%);
  overflow: hidden;
}

.hero-image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA Banner */
.cta-banner {
  background: var(--white);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  max-width: 800px;
}

.text-primary {
  color: var(--primary);
}

/* Chat Button */
.chat-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,119,190,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 50;
}

.chat-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,119,190,0.5);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

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

.modal {
  background: var(--white);
  border-radius: 1rem;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  padding: 1.5rem 2rem;
}

.modal-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.modal-subtitle {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.25rem;
}

/* Steps */
.steps-container {
  padding: 1.5rem 2rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.3s;
}

.step.active .step-icon,
.step.completed .step-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.step.active .step-label,
.step.completed .step-label {
  color: var(--primary);
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
}

.step-line.active {
  background: var(--primary);
}

/* Modal Body */
.modal-body {
  padding: 2rem;
}

.step-header {
  margin-bottom: 1.5rem;
}

.step-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Form */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.required {
  color: var(--error);
}

.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8125rem;
}

.form-input,
.form-select {
  width: 100%;
  height: 56px;
  padding: 0 1rem;
  font-size: 1.0625rem;
  font-family: var(--font-sans);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.form-input.error,
.form-select.error {
  border-color: var(--error);
}

.form-input::placeholder {
  color: var(--muted);
}

.error-message {
  display: none;
  align-items: center;
  gap: 0.375rem;
  color: var(--error);
  font-size: 0.8125rem;
  margin-top: 0.375rem;
}

.error-message.visible {
  display: flex;
}

.error-message::before {
  content: '';
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  flex-shrink: 0;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.step-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}

.dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .topbar-links {
    display: none;
  }
  
  .main-nav {
    display: none;
  }
  
  .header-actions .header-link {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    position: relative;
    width: 100%;
    height: 400px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-footer {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .step-dots {
    order: -1;
    width: 100%;
    justify-content: center;
  }
  
  .steps {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .step-line {
    display: none;
  }
  
  .step-label {
    display: none;
  }
}
