/* =======================================================================
   SIGNUP.CSS (ORGANIZED)
   =======================================================================

/* ===================== TABLE OF CONTENTS ===================== */
/* 01. frontend/public/css/signup.css - Redesigned to match home page aesthetic */
/* 02. ======================================================================== */
/* 03. ===== HEADER ===== */
/* 04. ===== MAIN LAYOUT ===== */
/* 05. ===== LEFT COLUMN - BRANDING ===== */
/* 06. Trust Badges */
/* 07. Testimonial Card */
/* 08. ===== RIGHT COLUMN - REGISTRATION CARD ===== */
/* 09. ===== PROGRESS BAR ===== */
/* 10. ===== STEP CONTENT ===== */
/* 11. ===== ROLE SELECTION ===== */
/* 12. ===== FORM STYLES ===== */
/* 13. Password Strength */
/* 14. Password Requirements */
/* 15. Form Row */
/* 16. ===== DOCUMENT UPLOAD ===== */
/* 17. ===== REVIEW STEP ===== */
/* 18. ===== NAVIGATION ===== */
/* 19. ===== ERROR MESSAGE ===== */
/* 20. ===== MODAL ===== */
/* 21. OTP Input */
/* 22. ===== TOAST NOTIFICATIONS ===== */
/* 23. ===== RESPONSIVE ===== */
/* ======================================================= */

/* frontend/public/css/signup.css - Redesigned to match home page aesthetic */

/* ========================================================================
   SIGNUP PAGE - PREMIUM BROCHURE STYLE
   Matches home page design system
   ======================================================================== */

/* ===== HEADER ===== */
.signup-header {
  background: transparent;
  padding: calc(var(--spacer) * 2) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(250, 249, 247, 0.9);
  border-bottom: none;
  box-shadow: none;
}

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

.login-prompt {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-right: calc(var(--spacer) * 1.5);
}

@media (max-width: 480px) {
  .login-prompt {
    display: none;
  }
}

/* ===== MAIN LAYOUT ===== */
.signup-main {
  min-height: calc(100vh - 80px);
  padding: calc(var(--spacer) * 4) 0;
  background: linear-gradient(135deg, var(--bg) 0%, #fff 100%);
}

.signup-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 4);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .signup-container {
    grid-template-columns: 1fr 1.2fr;
    gap: calc(var(--spacer) * 6);
  }
}

/* ===== LEFT COLUMN - BRANDING ===== */
.signup-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-content {
  max-width: 400px;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: calc(var(--spacer) * 2);
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.brand-title .dot {
  color: var(--accent);
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 0;
  margin-left: 4px;
}

.brand-subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: calc(var(--spacer) * 4);
  line-height: 1.6;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 6);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  padding: calc(var(--spacer) * 0.8) calc(var(--spacer) * 1.5);
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.85rem;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.trust-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-hover);
}

.trust-badge i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Testimonial Card */
.testimonial-card {
  background: white;
  border-radius: 24px;
  padding: calc(var(--spacer) * 3);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--accent);
  line-height: 0.8;
  opacity: 0.2;
  position: absolute;
  top: calc(var(--spacer) * 2);
  left: calc(var(--spacer) * 2);
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 3);
  font-style: italic;
  padding-top: calc(var(--spacer) * 2);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ===== RIGHT COLUMN - REGISTRATION CARD ===== */
.signup-card {
  background: white;
  border-radius: 32px;
  padding: calc(var(--spacer) * 4);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .signup-card {
    padding: calc(var(--spacer) * 3);
  }
}

@media (max-width: 480px) {
  .signup-card {
    padding: calc(var(--spacer) * 2);
  }
}

/* ===== PROGRESS BAR ===== */
.progress-container {
  margin-bottom: calc(var(--spacer) * 4);
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--spacer));
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 0 4px rgba(183, 140, 90, 0.2);
}

.progress-step.completed .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  position: relative;
}

.progress-step.completed .step-number::after {
  content: "âœ“";
  font-size: 1rem;
}

.step-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.progress-step.active .step-label {
  color: var(--accent);
  font-weight: 600;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  margin: 0 calc(var(--spacer));
}

@media (max-width: 768px) {
  .step-label {
    display: none;
  }

  .progress-line {
    margin: 0 calc(var(--spacer) / 2);
  }
}

/* ===== STEP CONTENT ===== */
.step-content {
  min-height: 400px;
  margin-bottom: calc(var(--spacer) * 3);
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: calc(var(--spacer) * 1.5);
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.step-subtitle {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: calc(var(--spacer) * 3);
  line-height: 1.5;
}

/* ===== ROLE SELECTION ===== */
.role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 2);
  margin: calc(var(--spacer) * 2) 0;
}

@media (min-width: 768px) {
  .role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.role-card {
  background: var(--surface);
  border: 2px solid var(--border-light);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  outline: none;
}

.role-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.role-card.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fff, var(--surface));
}

.role-card.selected::after {
  content: "âœ“";
  position: absolute;
  top: calc(var(--spacer) * 1.5);
  right: calc(var(--spacer) * 1.5);
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.role-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: calc(var(--spacer) * 1.5);
}

.role-icon i {
  font-size: 1.5rem;
  color: var(--accent);
}

.role-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: calc(var(--spacer) / 2);
  color: var(--text-dark);
}

.role-desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: calc(var(--spacer) * 1.5);
  line-height: 1.4;
}

.role-features {
  list-style: none;
  padding: 0;
}

.role-features li {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: calc(var(--spacer) / 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
}

.role-features i {
  color: var(--accent);
  font-size: 0.7rem;
}

/* ===== FORM STYLES ===== */
.form-container {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: calc(var(--spacer) * 2);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) / 2);
}

.form-group label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: calc(var(--spacer) * 1.5);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background: white;
  transition: all 0.2s ease;
  min-height: 56px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 140, 90, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
  background: #fff5f5;
}

.form-group .error-message {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: calc(var(--spacer) / 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) / 2);
}

.form-group .error-message i {
  font-size: 0.7rem;
}

/* Password Strength */
.password-strength {
  margin-top: calc(var(--spacer));
}

.strength-meter {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: calc(var(--spacer) / 2);
}

.strength-fill {
  height: 100%;
  transition: all 0.3s ease;
}

.strength-fill.weak {
  width: 33.33%;
  background: #ef4444;
}

.strength-fill.medium {
  width: 66.66%;
  background: #f59e0b;
}

.strength-fill.strong {
  width: 100%;
  background: #10b981;
}

.strength-text {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Password Requirements */
.password-requirements {
  background: var(--surface);
  border-radius: 16px;
  padding: calc(var(--spacer) * 1.5);
  margin: calc(var(--spacer) * 2) 0;
}

.password-requirements p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer));
}

.password-requirements ul {
  list-style: none;
  padding: 0;
}

.password-requirements li {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: calc(var(--spacer) / 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
}

.password-requirements li i {
  font-size: 0.7rem;
  width: 16px;
}

.password-requirements li.valid {
  color: #10b981;
}

.password-requirements li.valid i {
  color: #10b981;
}

.password-requirements li.invalid i {
  color: #ef4444;
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacer) * 1.5);
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: calc(var(--spacer));
  }
}

/* ===== DOCUMENT UPLOAD ===== */
.upload-area {
  border: 2px dashed var(--border-light);
  border-radius: 20px;
  padding: calc(var(--spacer) * 3);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--surface);
  margin-bottom: calc(var(--spacer) * 2);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.upload-area i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: calc(var(--spacer) * 1.5);
}

.upload-text {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) / 2);
}

.upload-hint {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
}

.document-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--spacer) * 1.2);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.document-item:hover {
  border-color: var(--accent-light);
  background: white;
}

.document-info {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.2);
  flex: 1;
}

.document-info i {
  font-size: 1.5rem;
  color: var(--accent);
}

.document-details {
  flex: 1;
}

.document-name {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.document-size {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.document-status {
  padding: calc(var(--spacer) / 2) calc(var(--spacer));
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.status-uploading {
  background: #fef3c7;
  color: #92400e;
}

.status-success {
  background: #d1fae5;
  color: #065f46;
}

.status-error {
  background: #fee2e2;
  color: #991b1b;
}

.document-actions button {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: calc(var(--spacer) / 2);
  transition: color 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

.document-actions button:hover {
  color: #ef4444;
}

/* ===== REVIEW STEP ===== */
.review-section {
  background: var(--surface);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 2);
}

.review-section h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: calc(var(--spacer) * 1.5);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  color: var(--text-dark);
}

.review-section h3 i {
  color: var(--accent);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--spacer) * 1.5);
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) / 2);
}

.review-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-value {
  font-weight: 500;
  color: var(--text-dark);
  word-break: break-word;
}

.terms-checkbox {
  margin: calc(var(--spacer) * 3) 0;
  display: flex;
  align-items: flex-start;
  gap: calc(var(--spacer) * 1.2);
}

.terms-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  min-height: auto;
}

.terms-checkbox label {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.terms-checkbox a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.terms-checkbox a:hover {
  text-decoration: underline;
}

/* ===== NAVIGATION ===== */
.step-navigation {
  display: flex;
  justify-content: space-between;
  gap: calc(var(--spacer) * 2);
  margin-top: calc(var(--spacer) * 3);
  padding-top: calc(var(--spacer) * 3);
  border-top: 1px solid var(--border-light);
}

.step-navigation button {
  min-width: 120px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer));
  font-weight: 500;
  transition: all 0.2s ease;
}

.step-navigation button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.step-navigation .btn-primary {
  background: var(--text-dark);
  color: white;
  border: none;
}

.step-navigation .btn-primary:hover:not(:disabled) {
  background: #4a3f3a;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .step-navigation button {
    min-width: 100px;
  }

  .step-navigation button span {
    display: none;
  }

  .step-navigation button i {
    margin: 0;
  }
}

/* ===== ERROR MESSAGE ===== */
.error-message {
  color: #ef4444;
  font-size: 0.85rem;
  margin: calc(var(--spacer) * 1.5) 0;
  padding: calc(var(--spacer));
  background: #fee2e2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
}

.error-message i {
  font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacer) * 2);
}

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

.modal-content {
  background: white;
  border-radius: 24px;
  max-width: 450px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.3s ease;
}

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

.modal-header {
  padding: calc(var(--spacer) * 2);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-soft);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--surface);
  color: var(--accent);
}

.modal-body {
  padding: calc(var(--spacer) * 3);
}

.email-highlight {
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: calc(var(--spacer));
  border-radius: 12px;
  margin: calc(var(--spacer) * 1.5) 0;
  word-break: break-all;
}

/* OTP Input */
.otp-container {
  display: flex;
  gap: calc(var(--spacer));
  justify-content: center;
  margin: calc(var(--spacer) * 3) 0;
}

.otp-container input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: white;
  transition: all 0.2s ease;
}

.otp-container input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.otp-timer {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: calc(var(--spacer) * 2) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer) / 2);
}

.resend-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: calc(var(--spacer) * 2);
}

.text-link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: inherit;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: calc(var(--spacer) * 3);
  right: calc(var(--spacer) * 3);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
  max-width: 350px;
}

.toast {
  background: white;
  border-radius: 12px;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  animation: slideIn 0.3s ease;
  border-left: 4px solid;
}

.toast.success {
  border-left-color: #10b981;
}
.toast.error {
  border-left-color: #ef4444;
}
.toast.info {
  border-left-color: var(--accent);
}

.toast i {
  font-size: 1.2rem;
}

.toast.success i {
  color: #10b981;
}
.toast.error i {
  color: #ef4444;
}
.toast.info i {
  color: var(--accent);
}

.toast-message {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-dark);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .signup-main {
    padding: calc(var(--spacer) * 2) 0;
  }

  .brand-title {
    font-size: 2rem;
  }

  .trust-badges {
    margin-bottom: calc(var(--spacer) * 3);
  }

  .testimonial-card {
    display: none;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacer));
  }

  .otp-container {
    gap: calc(var(--spacer) / 2);
  }

  .otp-container input {
    width: 40px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .signup-card {
    padding: calc(var(--spacer) * 2);
  }

  .role-grid {
    gap: calc(var(--spacer));
  }

  .role-card {
    padding: calc(var(--spacer) * 1.5);
  }

  .role-card.selected::after {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    top: calc(var(--spacer));
    right: calc(var(--spacer));
  }

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

  .otp-container input {
    width: 35px;
    height: 45px;
    font-size: 1.2rem;
  }

  .modal-body {
    padding: calc(var(--spacer) * 2);
  }
}

@media (max-width: 360px) {
  .otp-container {
    gap: 2px;
  }

  .otp-container input {
    width: 30px;
    height: 40px;
    font-size: 1rem;
  }
}
/* ========================================================================
   ENHANCED FORM CONTAINER & INPUT WITH VALIDATION
   Premium design matching platform theme
   ======================================================================== */

/* Form Container Enhancement */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease;
}

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

/* Form Group Enhancement */
.form-group {
  margin-bottom: calc(var(--spacer) * 2.5);
  position: relative;
  transition: all 0.3s ease;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) / 1.5);
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.form-group label .required {
  color: var(--accent);
  margin-left: 2px;
  font-size: 1rem;
}

/* Input with Validation Container */
.input-with-validation {
  position: relative;
  width: 100%;
}

/* Base Input Styles */
.input-with-validation input,
.input-with-validation textarea,
.input-with-validation select {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 1.25rem;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background: white;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-height: 56px;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Textarea specific */
.input-with-validation textarea {
  min-height: 100px;
  padding: 1rem 3rem 1rem 1.25rem;
  resize: vertical;
  line-height: 1.5;
}

/* Select specific */
.input-with-validation select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e5a58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 16px;
  padding-right: 3rem;
}

/* Focus State */
.input-with-validation input:focus,
.input-with-validation textarea:focus,
.input-with-validation select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 140, 90, 0.1);
  background: white;
  transform: translateY(-1px);
}

/* Hover State */
.input-with-validation input:hover:not(:focus):not(.error),
.input-with-validation textarea:hover:not(:focus):not(.error),
.input-with-validation select:hover:not(:focus):not(.error) {
  border-color: #d4ccc5;
  background: #fefefe;
}

/* Error State */
.input-with-validation input.error,
.input-with-validation textarea.error,
.input-with-validation select.error {
  border-color: #ef4444;
  background: #fff5f5;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

/* Success State */
.input-with-validation input.valid,
.input-with-validation textarea.valid,
.input-with-validation select.valid {
  border-color: #10b981;
  background: #f0fdf9;
}

/* Validation Icon */
.input-validation-icon {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  pointer-events: none;
}

.input-validation-icon.valid {
  color: #10b981;
  animation: popIn 0.3s ease;
}

.input-validation-icon.valid i {
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
}

.input-validation-icon.invalid {
  color: #ef4444;
  animation: popIn 0.3s ease;
}

.input-validation-icon.invalid i {
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.2));
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Field Hint Text */
.field-hint {
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.field-hint i {
  font-size: 0.65rem;
  color: var(--accent);
  opacity: 0.7;
}

.field-hint.success-hint {
  color: #10b981;
}

.field-hint.error-hint {
  color: #ef4444;
}

/* Error Message */
.error-message {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fee2e2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideDown 0.3s ease;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.error-message i {
  font-size: 0.75rem;
  color: #ef4444;
}

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

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 2);
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: calc(var(--spacer) * 1.5);
  }
}

/* Password Strength Meter */
.password-strength {
  margin-top: 0.75rem;
}

.strength-meter {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.strength-fill {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.strength-fill.weak {
  width: 33.33%;
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.strength-fill.medium {
  width: 66.66%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.strength-fill.strong {
  width: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
}

.strength-text {
  font-size: 0.8rem;
  color: var(--text-soft);
  display: block;
  margin-top: 0.25rem;
}

/* Password Requirements Grid */
.password-strength-detailed {
  background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1.5rem 0 0.5rem;
  border: 1px solid var(--border-light);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.password-strength-detailed p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.password-strength-detailed p i {
  color: var(--accent);
  font-size: 0.8rem;
}

.password-requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
}

@media (max-width: 480px) {
  .password-requirements-grid {
    grid-template-columns: 1fr;
  }
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-soft);
  padding: 0.35rem 0;
  transition: all 0.2s ease;
}

.requirement-item i {
  width: 16px;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}

.requirement-item.valid {
  color: #10b981;
}

.requirement-item.valid i {
  color: #10b981;
}

.requirement-item i.far.fa-circle {
  color: var(--text-light);
}

/* Info Card */
.info-card {
  background: linear-gradient(135deg, #fff 0%, #faf9f7 100%);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.05);
  margin: 1.5rem 0;
}

.info-card i {
  color: var(--accent);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Review Section Enhancement */
.review-section {
  background: linear-gradient(135deg, #faf9f7 0%, #fff 100%);
  border-radius: 24px;
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.review-section:hover {
  border-color: var(--accent-light);
  box-shadow: 0 12px 25px -10px rgba(183, 140, 90, 0.1);
}

.review-section h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.review-section h3 i {
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.8;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .review-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.review-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-value {
  font-weight: 500;
  color: var(--text-dark);
  word-break: break-word;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.review-documents {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-doc {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.review-doc i {
  color: #10b981;
  font-size: 0.9rem;
}

.review-doc span {
  color: var(--text-dark);
  word-break: break-word;
}

/* Terms Checkbox Enhancement */
.terms-checkbox {
  margin: 2rem 0 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.terms-checkbox:hover {
  border-color: var(--accent-light);
  background: white;
}

.terms-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.terms-checkbox label {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  cursor: pointer;
}

.terms-checkbox a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.terms-checkbox a:hover {
  border-bottom-color: var(--accent);
}

/* Disabled State */
.input-with-validation input:disabled,
.input-with-validation textarea:disabled,
.input-with-validation select:disabled {
  background: var(--bg);
  opacity: 0.7;
  cursor: not-allowed;
  border-color: var(--border-light);
}

/* Placeholder Styling */
.input-with-validation input::placeholder,
.input-with-validation textarea::placeholder {
  color: #c0bcb8;
  font-weight: 300;
  font-size: 0.9rem;
}

/* Autofill Styling */
.input-with-validation input:-webkit-autofill,
.input-with-validation input:-webkit-autofill:hover,
.input-with-validation input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
  -webkit-text-fill-color: var(--text-dark);
  transition: background-color 5000s ease-in-out 0s;
  border-color: var(--accent);
}

/* Loading State */
.input-with-validation.loading::after {
  content: "";
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Focus Within Effect */
.form-group:focus-within label {
  color: var(--accent);
  transform: translateY(-1px);
}

/* Character Counter */
.char-counter {
  position: absolute;
  right: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--text-soft);
  background: white;
  padding: 0.2rem 0.5rem;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  pointer-events: none;
}

/* Success Message */
.success-message {
  color: #10b981;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f0fdf9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.success-message i {
  font-size: 0.75rem;
  color: #10b981;
}

/* Tooltip for Inputs */
.input-tooltip {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 0.5rem;
  background: var(--text-dark);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.2s ease;
  box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.input-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--text-dark) transparent transparent transparent;
}

.input-with-validation:hover .input-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .input-with-validation input,
  .input-with-validation textarea,
  .input-with-validation select {
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    font-size: 0.9rem;
    min-height: 50px;
  }

  .input-validation-icon {
    right: 0.75rem;
  }

  .char-counter {
    right: 2.5rem;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }

  .password-strength-detailed {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .input-with-validation input,
  .input-with-validation textarea,
  .input-with-validation select {
    padding: 0.7rem 2.25rem 0.7rem 0.9rem;
    font-size: 0.85rem;
    min-height: 48px;
    border-radius: 14px;
  }

  .review-section {
    padding: 1.25rem;
  }

  .review-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }

  .password-strength-detailed {
    padding: 1rem;
  }

  .info-card {
    padding: 1.5rem 1rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .input-with-validation input,
  .input-with-validation textarea,
  .input-with-validation select {
    background: #fefefe;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .input-with-validation input,
  .input-with-validation textarea,
  .input-with-validation select {
    border-width: 2px;
  }

  .input-validation-icon.valid,
  .input-validation-icon.invalid {
    filter: none;
  }
}

/* Print Styles */
@media print {
  .input-with-validation input,
  .input-with-validation textarea,
  .input-with-validation select {
    border: 1px solid #000;
    background: none;
    padding: 0.5rem;
  }

  .input-validation-icon,
  .field-hint,
  .error-message,
  .success-message,
  .password-strength-detailed {
    display: none !important;
  }
}
/* ========================================================================
   ENHANCED PROGRESS STEPS - Premium Timeline Design
   Elegant step indicator matching platform theme
   ======================================================================== */

.progress-container {
  margin-bottom: calc(var(--spacer) * 4);
  position: relative;
  padding: 0.5rem 0;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* Background progress line */
.progress-steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--border-light) 0%,
    var(--border-light) 50%,
    transparent 100%
  );
  z-index: 1;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .progress-steps::before {
    top: 22px;
  }
}

/* Active progress line (fills as steps complete) */
.progress-steps::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-light) 100%
  );
  z-index: 1;
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: calc((var(--progress-percentage, 0) * (100% - 2rem)) / 100);
  max-width: calc(100% - 2rem);
  left: 1rem;
}

@media (min-width: 768px) {
  .progress-steps::after {
    top: 22px;
    left: 1.5rem;
  }
}

/* Individual Step */
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--spacer));
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  cursor: default;
  transition: all 0.3s ease;
}

/* Step Number Circle */
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Larger circles on desktop */
@media (min-width: 768px) {
  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* Active Step */
.progress-step.active .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: scale(1.1);
  box-shadow:
    0 0 0 4px rgba(183, 140, 90, 0.2),
    0 8px 15px -5px rgba(183, 140, 90, 0.3);
  animation: pulseStep 2s infinite;
}

@keyframes pulseStep {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(183, 140, 90, 0.2),
      0 8px 15px -5px rgba(183, 140, 90, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(183, 140, 90, 0.1),
      0 8px 20px -3px rgba(183, 140, 90, 0.4);
  }
}

/* Completed Step */
.progress-step.completed .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  position: relative;
  transform: scale(0.95);
}

.progress-step.completed .step-number::after {
  content: "✓";
  font-size: 1rem;
  font-weight: 600;
  animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Step Label */
.step-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

/* Show labels only on desktop by default */
@media (max-width: 767px) {
  .step-label {
    display: none;
  }
}

/* Active step label */
.progress-step.active .step-label {
  color: var(--accent);
  font-weight: 600;
  transform: translateY(2px);
}

.progress-step.active .step-label::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  animation: expandWidth 0.3s ease;
}

@keyframes expandWidth {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 20px;
    opacity: 1;
  }
}

/* Completed step label */
.progress-step.completed .step-label {
  color: var(--text-dark);
}

/* Progress Line between steps */
.progress-line {
  flex: 1;
  height: 2px;
  background: transparent;
  margin: 0 calc(var(--spacer) * 0.5);
  position: relative;
  z-index: 2;
}

/* Hide progress lines on mobile for cleaner look */
@media (max-width: 767px) {
  .progress-line {
    margin: 0 2px;
  }
}

/* Tooltip for step on hover (desktop only) */
@media (min-width: 768px) {
  .progress-step {
    position: relative;
  }

  .progress-step::after {
    content: attr(data-step-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--text-dark);
    color: white;
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.3);
    z-index: 10;
  }

  .progress-step::before {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--text-dark) transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10;
  }

  .progress-step:hover::after,
  .progress-step:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mini step indicators for mobile */
@media (max-width: 767px) {
  .progress-step {
    position: relative;
  }

  .progress-step::after {
    content: attr(data-step-number);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-soft);
    white-space: nowrap;
  }

  .progress-step.active::after {
    color: var(--accent);
    font-weight: 600;
  }

  .progress-step.completed::after {
    color: var(--text-dark);
  }
}

/* Step number with inner glow for completed steps */
.progress-step.completed .step-number {
  box-shadow:
    0 0 0 2px white,
    0 0 0 4px rgba(183, 140, 90, 0.2);
}

/* Step number with subtle shadow for active step */
.progress-step.active .step-number {
  box-shadow: 0 5px 15px -5px rgba(183, 140, 90, 0.4);
}

/* Step connector dot (for visual interest) */
.progress-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--border-light);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.progress-step.completed + .progress-line::after {
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(183, 140, 90, 0.2);
}

/* Animated gradient for active step */
.progress-step.active .step-number {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-light) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Step icon for completed steps */
.progress-step.completed .step-number {
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-step.completed .step-number::after {
  content: "✓";
  font-size: 1rem;
  font-weight: 600;
}

/* Different icons for each step on hover (optional) */
.progress-step[data-step="1"]:hover .step-number::before {
  content: "👤";
  position: absolute;
  font-size: 1.2rem;
  opacity: 0;
  animation: fadeInOut 1s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .progress-container {
    margin-bottom: calc(var(--spacer) * 3);
  }

  .progress-steps::before,
  .progress-steps::after {
    top: 16px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .progress-step.active .step-number {
    transform: scale(1.05);
  }
}

@media (max-width: 480px) {
  .progress-container {
    margin-bottom: calc(var(--spacer) * 2.5);
    padding: 0.25rem 0;
  }

  .progress-steps::before,
  .progress-steps::after {
    top: 14px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    border-width: 1.5px;
  }

  .progress-step.active .step-number {
    transform: scale(1.03);
    box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.2);
  }

  .progress-step.completed .step-number::after {
    font-size: 0.8rem;
  }

  .progress-line {
    margin: 0 1px;
  }

  .progress-line::after {
    width: 4px;
    height: 4px;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
  }

  .progress-step.active .step-number {
    transform: scale(1.02);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .step-number {
    background: #faf9f7;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .progress-step.active .step-number,
  .progress-step.completed .step-number::after,
  .progress-steps::after,
  .progress-step.active .step-number {
    animation: none;
    transition: none;
  }

  .progress-step.active .step-number {
    animation: none;
  }
}

/* Print styles */
@media print {
  .progress-container {
    display: none;
  }
}

/* Optional: Add step titles for better accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enhanced active step indicator */
.progress-step.active .step-number {
  position: relative;
}

.progress-step.active .step-number::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: rgba(183, 140, 90, 0.1);
  z-index: -1;
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Completed step checkmark animation */
.progress-step.completed .step-number {
  overflow: hidden;
}

.progress-step.completed .step-number::after {
  animation: checkmarkDraw 0.4s ease-in-out forwards;
}

@keyframes checkmarkDraw {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

/* Progress line gradient animation */
.progress-steps::after {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-light) 50%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* Step labels for mobile (compact version) */
@media (max-width: 767px) {
  .progress-step[data-step="1"] .step-label,
  .progress-step[data-step="6"] .step-label {
    display: block;
    font-size: 0.6rem;
    position: absolute;
    top: -20px;
    white-space: nowrap;
  }

  .progress-step[data-step="1"] .step-label {
    left: 0;
  }

  .progress-step[data-step="6"] .step-label {
    right: 0;
  }
}

/* Container with subtle background */
.progress-container {
  background: linear-gradient(
    135deg,
    rgba(250, 249, 247, 0.5) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  border-radius: 60px;
  padding: 1.5rem 1rem 0.5rem;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
  .progress-container {
    padding: 1.25rem 0.75rem 0.25rem;
    border-radius: 40px;
  }
}

@media (max-width: 480px) {
  .progress-container {
    padding: 1rem 0.5rem 0.25rem;
    border-radius: 30px;
  }
}
/* ========================================================================
   ENHANCED TERMS CHECKBOX - Premium Required Field
   Prevents OTP submission unless checked
   ======================================================================== */

.terms-checkbox {
  margin: 2.5rem 0 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #faf9f7 100%);
  border-radius: 20px;
  border: 2px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
}

/* Required indicator */
.terms-checkbox::before {
  content: "* Required";
  position: absolute;
  top: -10px;
  left: 20px;
  background: white;
  padding: 0.25rem 1rem;
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  z-index: 2;
}

/* Hover state */
.terms-checkbox:hover {
  border-color: var(--accent-light);
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -12px rgba(183, 140, 90, 0.15);
}

/* Focus state for accessibility */
.terms-checkbox:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 140, 90, 0.1);
  outline: none;
}

/* Error state - when not checked and form attempted */
.terms-checkbox.error {
  border-color: #ef4444;
  background: #fff5f5;
  animation: shakeTerms 0.4s ease;
}

.terms-checkbox.error::before {
  content: "* Required - Please accept";
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: #fee2e2;
}

@keyframes shakeTerms {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

/* Success state - when checked */
.terms-checkbox.checked {
  border-color: #10b981;
  background: #f0fdf9;
}

.terms-checkbox.checked::before {
  content: "✓ Accepted";
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  background: #f0fdf9;
}

/* Custom checkbox styling */
.terms-checkbox input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin-top: 2px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

/* Checkbox hover state */
.terms-checkbox input[type="checkbox"]:hover {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 5px 10px -5px rgba(183, 140, 90, 0.2);
}

/* Checkbox focus state */
.terms-checkbox input[type="checkbox"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.2);
}

/* Checkbox checked state */
.terms-checkbox input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  animation: checkboxPop 0.2s ease;
}

.terms-checkbox input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  animation: checkFade 0.2s ease;
}

@keyframes checkboxPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes checkFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Label styling */
.terms-checkbox label {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  cursor: pointer;
  user-select: none;
}

/* Link styling within label */
.terms-checkbox a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  border-bottom: 1px solid transparent;
}

.terms-checkbox a:hover {
  color: var(--text-dark);
  border-bottom-color: var(--accent);
}

.terms-checkbox a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Error message specific to terms */
.terms-error-message {
  color: #ef4444;
  font-size: 0.75rem;
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  background: #fee2e2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
  animation: slideDown 0.3s ease;
}

.terms-error-message i {
  font-size: 0.8rem;
  color: #ef4444;
}

/* Success message when terms accepted */
.terms-success-message {
  color: #10b981;
  font-size: 0.75rem;
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  background: #f0fdf9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  animation: slideDown 0.3s ease;
}

/* Disabled state */
.terms-checkbox.disabled {
  opacity: 0.6;
  pointer-events: none;
  background: var(--bg);
}

.terms-checkbox.disabled input[type="checkbox"] {
  cursor: not-allowed;
}

/* Required badge */
.required-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 30px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .terms-checkbox {
    margin: 2rem 0 1rem;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .terms-checkbox::before {
    font-size: 0.6rem;
    padding: 0.2rem 0.75rem;
  }

  .terms-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }

  .terms-checkbox label {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .terms-checkbox {
    margin: 1.5rem 0 0.75rem;
    padding: 0.875rem 1rem;
    gap: 0.875rem;
    border-radius: 16px;
  }

  .terms-checkbox::before {
    top: -8px;
    left: 15px;
    font-size: 0.55rem;
    padding: 0.15rem 0.6rem;
  }

  .terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 6px;
  }

  .terms-checkbox input[type="checkbox"]:checked::after {
    font-size: 0.8rem;
  }

  .terms-checkbox label {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .terms-error-message,
  .terms-success-message {
    font-size: 0.7rem;
    padding: 0.6rem 0.875rem;
    margin: 0.25rem 0 0.75rem;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  .terms-checkbox {
    padding: 0.75rem 0.875rem;
    gap: 0.75rem;
  }

  .terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }

  .terms-checkbox label {
    font-size: 0.75rem;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .terms-checkbox,
  .terms-checkbox input[type="checkbox"],
  .terms-checkbox input[type="checkbox"]:checked::after,
  .terms-checkbox.error {
    animation: none;
    transition: none;
  }

  .terms-checkbox input[type="checkbox"]:checked {
    animation: none;
  }
}

/* Print styles */
@media print {
  .terms-checkbox {
    border: 1px solid #000;
    background: none;
    box-shadow: none;
  }

  .terms-checkbox::before {
    border: 1px solid #000;
    background: none;
    color: #000;
  }

  .terms-checkbox input[type="checkbox"] {
    border: 1px solid #000;
  }

  .terms-checkbox input[type="checkbox"]:checked::after {
    color: #000;
  }
}
/* ===== SPAM NOTE STYLES ===== */
.spam-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, #fef9e6 0%, #fff5e0 100%);
  border-radius: 16px;
  border: 1px solid #f0e0b0;
  font-size: 0.85rem;
  color: #8b6b3c;
  animation: fadeInUp 0.4s ease;
}

.spam-note i {
  font-size: 1rem;
  color: #e6b422;
}

.spam-note strong {
  font-weight: 600;
  color: #c49a2b;
}

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

/* Dark mode support for spam note */
@media (prefers-color-scheme: dark) {
  .spam-note {
    background: linear-gradient(135deg, #2d2a24 0%, #2b2822 100%);
    border-color: #4a443a;
    color: #d4b87a;
  }

  .spam-note i {
    color: #e6b422;
  }

  .spam-note strong {
    color: #f0c674;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .spam-note {
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    gap: 0.6rem;
    margin: 0.75rem 0;
  }

  .spam-note i {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .spam-note {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.5rem;
    border-radius: 12px;
  }

  .spam-note i {
    font-size: 0.8rem;
  }
}
