/* Multi-Step Clinic Signup Form Styles */

.signup-container {
  min-height: 100vh;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  padding: 40px 20px;
}

/* Gradient overlay on top of background image */
.signup-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
  z-index: 0;
}

/* Ensure content is above the overlay */
.signup-container > * {
  position: relative;
  z-index: 1;
}

.signup-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
}

.step-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.step-progress::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e0e0e0;
  z-index: 0;
}

.step-progress-bar {
  position: absolute;
  top: 20px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
  z-index: 1;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 4px solid #e0e0e0;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #999;
  transition: all 0.3s ease;
}

.step-item.active .step-circle {
  border-color: #667eea;
  color: #667eea;
  background: #f0f4ff;
}

.step-item.completed .step-circle {
  border-color: #10b981;
  background: #10b981;
  color: white;
}

.step-title {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.step-item.active .step-title {
  color: #667eea;
  font-weight: 600;
}

.step-subtitle {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

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

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

.step-header {
  text-align: center;
  margin-bottom: 30px;
}

.step-header h3 {
  color: #1f2937;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-header p {
  color: #6b7280;
  font-size: 14px;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.btn-prev,
.btn-next {
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-prev {
  background: #f3f4f6;
  color: #4b5563;
  border: none;
}

.btn-prev:hover {
  background: #e5e7eb;
}

.btn-next {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.help-box {
  background: #f0f9ff;
  border-left: 4px solid #3b82f6;
  padding: 15px;
  border-radius: 8px;
  margin-top: 30px;
}

.help-box h5 {
  color: #1e40af;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.help-box p {
  color: #3b82f6;
  font-size: 13px;
  margin: 0;
}

.upload-cntnt-card {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  background: #f9fafb;
}

.upload-cntnt-card:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

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

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.verification-group {
  display: flex;
  gap: 10px;
}

.verification-group .form-control {
  flex: 1;
}

.verification-group .btn {
  white-space: nowrap;
}

.logo-signup img {
  max-width: 180px;
  margin-bottom: 20px;
}

.progress-text {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 20px;
}

.section-divider {
  border-top: 2px solid #f3f4f6;
  margin: 30px 0;
  position: relative;
}

.section-divider h4 {
  position: absolute;
  top: -12px;
  left: 20px;
  background: white;
  padding: 0 15px;
  color: #4b5563;
  font-size: 16px;
  font-weight: 600;
}

.verified-badge {
  color: #10b981;
  font-size: 20px;
}

.cr_details,
.cr_details_mobile {
  transition: all 0.3s ease;
}

/* Insurance Statement Cards */
.insurance-statement-row .card {
  background: #ffffff;
  transition: all 0.3s ease;
}

.insurance-statement-row .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.insurance-statement-row h6 {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}

.insurance-statement-row .btn-danger {
  font-size: 12px;
  padding: 4px 12px;
}

#addMoreInsuranceBtn {
  border: 2px dashed #667eea;
  color: #667eea;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#addMoreInsuranceBtn:hover {
  background: #667eea;
  color: white;
  border-style: solid;
}

.insurance-company-select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
}

.insurance-company-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Password Toggle Icon */
.form-group.position-relative .toggle-password {
  position: absolute;
  top: 38px;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
  width: 30px;
  height: 30px;
  color: #637381;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: color 0.3s ease;
}

.form-group.position-relative .toggle-password:hover {
  color: #667eea;
}

/* Field Error Messages */
.field-error-message {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
  display: block;
  font-weight: 500;
  animation: errorSlideIn 0.3s ease;
}

.field-error-message i {
  margin-right: 5px;
}

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

/* Error state for form controls */
.form-control.error,
.form-control:invalid {
  border-color: #dc3545 !important;
  border-width: 2px !important;
}

.form-control.error:focus,
.form-control:invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Footer Styling */

.signup-footer .copyright-footer p {
  color: #ffffff !important;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.signup-footer .copyright-footer p a {
  color: #F27A22 !important;
  text-decoration: underline !important;
  font-weight: 600;
}

.signup-footer .copyright-footer p a:hover {
  color: #F27A22 !important;
  text-decoration: none !important;
}

/* Responsive styles */
@media (max-width: 768px) {
  .signup-card {
    padding: 20px;
  }

  .step-title {
    font-size: 10px;
  }

  .step-subtitle {
    font-size: 9px;
  }

  .step-circle {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .step-header h3 {
    font-size: 20px;
  }

  .form-navigation {
    flex-direction: column;
    gap: 10px;
  }

  .btn-prev,
  .btn-next {
    width: 100%;
  }

  .insurance-statement-row .row {
    flex-direction: column;
  }

  .insurance-statement-row .col-md-4,
  .insurance-statement-row .col-md-8 {
    width: 100%;
  }
}

