/* Simple Wizard Form Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "SomarSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #141f1f;
  background-color: #f8f9fa;
}

/* Wizard Overlay */
.wizard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.wizard-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Disable all form elements when wizard is not active */
.wizard-overlay:not(.active) input,
.wizard-overlay:not(.active) select,
.wizard-overlay:not(.active) textarea,
.wizard-overlay:not(.active) button {
  pointer-events: none;
  user-select: none;
}

/* Wizard Modal */
.wizard-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.wizard-overlay.active .wizard-modal {
  transform: scale(1) translateY(0);
}

/* Wizard Header */
.wizard-header {
  background: #00478e;
  color: white;
  padding: 20px 32px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-title h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.wizard-title p {
  font-size: 16px;
  opacity: 0.9;
  margin: 8px 0 0 0;
}

.wizard-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Step Indicator */
.step-indicator {
  padding: 24px 32px;
  background: white;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 80px;
  z-index: 9;
}

.step-indicator-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.step-title h3 {
  font-size: 18px;
  font-weight: 600;
  color: #00478e;
  margin: 0;
}

/* Stepper from form4.html */
.stepper {
  position: relative;
  width: 300px;
  height: 20px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.stepper-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #dddfdf;
  top: 9px;
  left: 0;
  transition: background 0.3s ease;
  z-index: 1;
}

.stepper-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 12.8px;
  padding-right: 12.8px;
  width: 100%;
  justify-content: space-between;
}

.step-shape {
  width: 20px;
  height: 20px;
  border: 1px solid #dddfdf;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}

.step-shape.completed {
  border-color: #00478e;
  background: #00478e;
}

.step-shape.completed::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.step-shape.active {
  border-color: #00478e;
  background: #00478e;
}

.step-shape.active::after {
  display: none;
}

.step-dot {
  width: 8px;
  height: 8px;
  background: #00478e;
  border-radius: 5px;
}

.step-shape.active .step-dot {
  background: #ffffff;
}

.checkmark {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-label {
  display: none;
}

.step-line {
  display: none;
}

/* Wizard Content */
.wizard-content {
  padding: 40px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  flex: 1;
  background: white;
}

/* Simple step display */
.wizard-step {
  display: none !important;
}

.wizard-step.active {
  display: block !important;
}

.wizard-step .step-content {
  display: block !important;
  width: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Step content */
.step-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #00478e;
  margin-bottom: 8px;
}

.step-content p {
  color: #6c757d;
  margin-bottom: 32px;
  font-size: 16px;
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: #141f1f;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  font-family: "SomarSans", sans-serif;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00478e;
  box-shadow: 0 0 0 3px rgba(0, 71, 142, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #adb5bd;
  font-style: italic;
}

/* Special layout for contact number */
.contact-number-group {
  display: flex;
  gap: 8px;
}

.contact-number-group .country-code {
  flex: 0 0 80px;
}

.contact-number-group .phone-number {
  flex: 1;
}

/* Checkbox groups */
.checkbox-group {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  width: 100%;
  grid-column: 1 / -1;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00478e;
}

.checkbox-item label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

/* File Upload */
.file-upload {
  position: relative;
  border: 2px dashed #e9ecef;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload:hover {
  border-color: #00478e;
  background: rgba(0, 71, 142, 0.05);
}

.file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #6c757d;
}

.file-upload-label svg {
  color: #00478e;
}

/* Review Section */
.review-section {
  margin-bottom: 24px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.review-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #00478e;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #00478e;
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.review-item:last-child {
  border-bottom: none;
}

.review-label {
  font-weight: 500;
  color: #6c757d;
  font-size: 14px;
}

.review-value {
  font-weight: 600;
  color: #141f1f;
  font-size: 14px;
  text-align: right;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #00478e;
  border-color: #00478e;
}

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

.terms-link,
.privacy-link {
  color: #00478e;
  text-decoration: none;
}

.terms-link:hover,
.privacy-link:hover {
  text-decoration: underline;
}

/* Wizard Footer */
.wizard-footer {
  padding: 20px 32px;
  background: white;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: sticky;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: "SomarSans", sans-serif;
}

.btn-primary {
  background: #00478e;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #003366;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #f8f9fa;
  color: #141f1f;
  border: 1px solid #dddfdf;
}

.btn-secondary:hover:not(:disabled) {
  background: #e9ecef;
  transform: translateY(-1px);
}

.btn-secondary:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  transform: none;
}

/* File Upload Styles from form4.html */
.form-section {
  width: 100%;
  border-bottom: 1px solid #dddfdf;
  padding: 12px 0;
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex-wrap: wrap;
}

.form-section:last-of-type {
  border-bottom: none;
}

.upload-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}

.input-label {
  font-family: "SomarSans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.43em;
  color: #141f1f;
  margin: 0;
}

.file-upload-container {
  display: flex;
  align-items: center;
  border: 1px solid #dddfdf;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.file-upload-button {
  background: #00478e;
  color: #ffffff;
  padding: 12px 16px;
  border: none;
  cursor: pointer;
  font-family: "SomarSans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.43em;
  transition: background 0.3s ease;
}

.file-upload-button:hover {
  background: #003366;
}

.file-upload-display {
  flex: 1;
  padding: 12px 16px;
  background: #ffffff;
  border-left: 1px solid #dddfdf;
}

.file-text {
  font-family: "SomarSans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.43em;
  color: #6c757d;
}

.upload-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.info-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-text {
  font-family: "SomarSans", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.33em;
  color: #6c757d;
}

/* Big Upload Field */
.big-upload {
  width: 100%;
}

.big-file-upload {
  border: 2px dashed #dddfdf;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.big-file-upload:hover {
  border-color: #00478e;
  background: #f8f9fa;
}

.upload-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.upload-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-title {
  font-family: "SomarSans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5em;
  color: #00478e;
}

.upload-subtitle {
  font-family: "SomarSans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.43em;
  color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wizard-modal {
    width: 95%;
    margin: 20px;
  }
  
  .wizard-header,
  .wizard-content,
  .wizard-footer {
    padding: 20px;
  }
  
  .step-indicator {
    padding: 20px;
  }
  
  .step-indicator-container {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .step-item {
    flex: none;
    min-width: 80px;
  }
  
  .step-line {
    display: none;
  }
  
  .step-label {
    font-size: 11px;
  }
  
  .wizard-footer {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .form-section {
    flex-direction: column;
    gap: 12px;
  }
  
  .upload-field {
    min-width: 100%;
  }
}

/* Form Validation Styles */
.form-group input:invalid,
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.upload-field input.error + .file-upload-container {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Hide native file inputs completely */
.upload-field input[type="file"] {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* File Upload States */
.upload-field.file-selected .file-upload-container {
  border-color: #00478e;
  background: #f8f9fa;
}

.upload-field.file-selected .file-upload-button {
  background: #28a745;
}

.upload-field.file-selected .file-upload-button:hover {
  background: #218838;
}

.upload-field.file-selected .file-text {
  color: #00478e;
  font-weight: 500;
}

/* Big upload field selected state */
.upload-field.file-selected .big-file-upload {
  border-color: #00478e;
  background: #f8f9fa;
}

.upload-field.file-selected .upload-title {
  color: #00478e;
  font-weight: 600;
}

.upload-field.file-selected .upload-subtitle {
  color: #6c757d;
  font-size: 12px;
}

/* Notification System */
.wizard-notification {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: 400px;
  width: 90%;
  animation: slideDown 0.3s ease-out;
}

.wizard-notification-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

.wizard-notification-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.wizard-notification-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.wizard-notification-error .notification-icon {
  color: #dc2626;
}

.wizard-notification-success .notification-icon {
  color: #16a34a;
}

.wizard-notification-info .notification-icon {
  color: #2563eb;
}

.notification-message {
  flex: 1;
  font-family: "SomarSans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.wizard-notification-error .notification-message {
  color: #dc2626;
}

.wizard-notification-success .notification-message {
  color: #16a34a;
}

.wizard-notification-info .notification-message {
  color: #2563eb;
}

.notification-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: #6b7280;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #374151;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}