/* =========================================
   IFB PREMIUM ONBOARDING PAGE - CSS
   ========================================= */

/* Root Variables */
:root {
  --primary-navy: #1a1f3a;
  --secondary-navy: #252d47;
  --accent-gold: #d4af37;
  --accent-gold-light: #e8c547;
  --white: #ffffff;
  --cream: #f5f3f0;
  --text-primary: #1a1f3a;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold-light);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  transition: var(--transition);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-navy);
  letter-spacing: 2px;
}

.progress-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 200px;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 2px;
  width: 25%;
  transition: width 0.5s ease;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 100px);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.02) 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.success-icon-wrapper {
  margin-bottom: 2rem;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 50%;
  font-size: 2.5rem;
  color: var(--white);
  box-shadow: var(--shadow-gold);
  animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  margin-bottom: 1rem;
  color: var(--primary-navy);
  font-size: 3.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.onboarding-time {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(212, 175, 55, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.clock-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
}

/* Timeline Section */
.timeline-section {
  padding: 5rem 0;
  background-color: var(--cream);
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary-navy);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.timeline-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease both;
}

.timeline-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.timeline-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-title {
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Form Section */
.form-section {
  padding: 5rem 0;
}

.onboarding-form {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  margin-top: 2rem;
}

.form-section-wrapper {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.form-section-wrapper:last-child {
  border-bottom: none;
}

.form-section-title {
  font-size: 1.5rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.form-section-description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
  background-color: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'DM Sans', sans-serif;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.error-message {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* Checkbox Group */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  border-color: var(--accent-gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M13 4L6 11 3 8' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.checkbox-item input[type="checkbox"]:hover {
  border-color: var(--accent-gold);
}

.checkbox-label {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

/* File Upload */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background-color: rgba(212, 175, 55, 0.03);
  grid-column: 1 / -1;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--accent-gold);
  background-color: rgba(212, 175, 55, 0.08);
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-gold);
  margin: 0 auto 1rem;
}

.upload-text {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.upload-subtext {
  color: var(--text-light);
  font-size: 0.85rem;
}

.file-input {
  display: none;
}

.uploaded-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.file-item {
  position: relative;
  padding: 1rem;
  background: var(--cream);
  border-radius: 8px;
  text-align: center;
  animation: fadeInUp 0.3s ease;
}

.file-item-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  word-break: break-word;
  margin-bottom: 0.5rem;
}

.file-item-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.file-item-remove:hover {
  background: #dc2626;
}

/* Form Actions */
.form-actions {
  margin-top: 2rem;
  grid-column: 1 / -1;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--primary-navy);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1fb356;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
}

.form-disclaimer {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* Form Success State */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeInUp 0.5s ease;
}

.success-content {
  max-width: 400px;
  margin: 0 auto;
}

.success-icon-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 50%;
  font-size: 3rem;
  color: var(--white);
  box-shadow: var(--shadow-gold);
  margin-bottom: 1.5rem;
  animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-title {
  font-size: 1.75rem;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.success-message {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* WhatsApp Section */
.whatsapp-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
  color: var(--white);
}

.whatsapp-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.whatsapp-section .section-title {
  color: var(--white);
  text-align: left;
}

.whatsapp-section .section-subtitle {
  text-align: left;
  color: rgba(255, 255, 255, 0.8);
}

.whatsapp-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.whatsapp-features {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.feature-text h4 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.feature-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

.whatsapp-cta {
  text-align: center;
}

.whatsapp-subtext {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Expectations Section */
.expectations-section {
  padding: 5rem 0;
  background: var(--cream);
}

.expectations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.expectation-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease both;
}

.expectation-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.expectation-title {
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.expectation-list {
  list-style: none;
}

.expectation-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.expectation-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* Trust Section */
.trust-section {
  padding: 5rem 0;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.02));
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease both;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.testimonials {
  margin-top: 3rem;
}

.testimonials-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-navy);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--cream);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease both;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Final CTA Section */
.final-cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
  color: var(--white);
}

.final-cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.final-cta-title {
  color: var(--white);
  margin-bottom: 1rem;
}

.final-cta-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.final-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.final-cta-footer {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: var(--primary-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .progress-indicator {
    width: 100%;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }

  .hero-section {
    padding: 3rem 0;
    min-height: auto;
  }

  .container {
    padding: 0 1rem;
  }

  .onboarding-form {
    padding: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .whatsapp-content {
    grid-template-columns: 1fr;
  }

  .expectations-grid {
    grid-template-columns: 1fr;
  }

  .final-cta-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .logo {
    font-size: 1.25rem;
  }

  .progress-text {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .onboarding-form {
    padding: 1rem;
  }

  .form-section-wrapper {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .uploaded-files {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-stats {
    grid-template-columns: 1fr;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

/* Loading States */
.btn-loading {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}
