.onboarding-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vh, 20px);
}

.onboarding-modal {
  background: #fff;
  border-radius: clamp(12px, 2vw, 20px);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
  z-index: 999999;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  position: relative;
  padding: clamp(16px, 3vh, 30px) clamp(16px, 3vw, 30px) clamp(8px, 1.5vh, 16px);
  flex-shrink: 0;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: clamp(8px, 1.5vh, 16px);
  margin-top: clamp(12px, 2vh, 24px);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #20255D, #20255D);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.close-btn {
  position: absolute;
  top: clamp(10px, 2vh, 16px);
  right: clamp(10px, 2vw, 16px);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-btn:hover {
  background: #f0f0f0;
}

.close-btn img {
  width: 14px;
  height: 14px;
}

.modal-content {
  padding: 0 clamp(16px, 3vw, 30px) clamp(12px, 2vh, 24px);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border: none !important;
}

.step-content {
  animation: fadeIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

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

.step-header {
  text-align: center;
  margin-bottom: clamp(12px, 2.5vh, 28px);
}

.step-header h2 {
  font-size: clamp(1.125rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: clamp(4px, 1vh, 8px);
  color: #232323;
}

.step-header p {
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  color: #666;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(6px, 1vw, 10px);
  margin-bottom: clamp(12px, 2vh, 24px);
}

.service-card {
  padding: clamp(10px, 2vh, 18px) clamp(8px, 1.5vw, 14px);
  border: 2px solid #f0f0f0;
  border-radius: clamp(10px, 1.5vw, 15px);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
}

.service-card:hover {
  border-color: #20255D;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
}

.service-card.selected {
  border-color: #20255D;
  background: linear-gradient(135deg, #20255D, #20255D);
}

.service-card.selected .service-name {
  color: #ffffff !important;
}

.service-icon {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: clamp(6px, 1vh, 12px);
}

.service-card .service-name {
  font-size: clamp(0.6rem, 1.4vw, 0.75rem);
  font-weight: 600;
  margin: 0;
  color: #20255D;
}

.form-group {
  margin-bottom: clamp(6px, 1.2vh, 12px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.5vw, 16px);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
  color: #232323;
  font-size: clamp(0.6rem, 1.4vw, 0.75rem);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: clamp(6px, 1.2vh, 10px) clamp(8px, 1.5vw, 12px);
  border: 1px solid #20255D;
  border-radius: clamp(6px, 1vw, 10px);
  font-size: clamp(0.6rem, 1.4vw, 0.75rem);
  transition: border-color 0.3s;
  background: #ffffff;
  color: #232323;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #20255D;
}

.form-group textarea {
  resize: none;
  min-height: auto;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4px, 0.8vh, 6px);
}

.radio-option {
  display: flex;
  align-items: center;
  padding: clamp(5px, 1vh, 8px) clamp(6px, 1vw, 10px);
  border: 1px solid #f0f0f0;
  border-radius: clamp(6px, 1vw, 10px);
  cursor: pointer;
  transition: all 0.3s;
  background: #fff;
  font-size: clamp(0.6rem, 1.4vw, 0.75rem);
}

.radio-option:hover {
  border-color: #20255D;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-custom {
  width: clamp(14px, 2vw, 18px);
  height: clamp(14px, 2vw, 18px);
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-right: clamp(8px, 1.5vw, 14px);
  position: relative;
  transition: all 0.3s;
  flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom {
  border-color: #20255D;
  background: #20255D;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.step-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-top: auto;
  padding-top: clamp(8px, 1.5vh, 16px);
  gap: clamp(8px, 1.5vw, 12px);
  flex-shrink: 0;
}

.back-btn,
.next-btn {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  padding: clamp(6px, 1.2vh, 10px) clamp(14px, 2.5vw, 22px);
  border: none;
  border-radius: 50px;
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.back-btn {
  background: #f0f0f0;
  color: #232323;
}

.back-btn:hover {
  background: #e0e0e0;
}

.next-btn {
  background: #F5D60D;
  color: #232323;
}

.next-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.next-btn img {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.next-btn:hover:not(:disabled) img {
  transform: translateX(3px);
}

.summary-card {
  background: #f8f9fa;
  padding: clamp(12px, 2vh, 20px);
  border-radius: clamp(10px, 1.5vw, 15px);
  margin-bottom: clamp(10px, 2vh, 20px);
}

.summary-card h3 {
  margin: 0 0 clamp(8px, 1.5vh, 14px) 0;
  color: #232323;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
}

.summary-item {
  margin-bottom: clamp(4px, 0.8vh, 8px);
  color: #232323;
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
}

.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.5vw, 14px);
}

.contact-option {
  text-align: center;
  padding: clamp(12px, 2vh, 20px) clamp(8px, 1.5vw, 16px);
  border: 1px solid #f0f0f0;
  border-radius: clamp(10px, 1.5vw, 15px);
  transition: all 0.3s;
}

.contact-option:hover {
  border-color: #20255D;
  transform: translateY(-2px);
}

.option-icon {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(6px, 1vh, 12px);
}

.contact-option h4 {
  margin: 0 0 clamp(4px, 0.8vh, 8px) 0;
  color: #232323;
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
}

.contact-option p {
  margin: 0 0 clamp(8px, 1.5vh, 14px) 0;
  color: #666;
  font-size: clamp(0.6rem, 1.3vw, 0.8rem);
}

.schedule-btn,
.email-btn {
  display: inline-block;
  padding: clamp(8px, 1.5vh, 12px) clamp(14px, 2.5vw, 22px);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
}

.schedule-btn {
  background: linear-gradient(135deg, #20255D, #20255D);
  color: white;
}

.schedule-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.email-btn {
  background: linear-gradient(135deg, #20255D, #20255D);
  color: white;
}

.email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .radio-group {
    grid-template-columns: 1fr;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .step-actions {
    flex-direction: column;
    gap: 8px;
  }

  .back-btn,
  .next-btn {
    width: 100%;
    justify-content: center;
  }
}
