/* ====================================
   MODERN PATIENT REGISTRATION DESIGN
   Modern, minimalist, clean design
   ==================================== */

/* Main Container */
.form-detail-regi {
  padding: 60px 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

/* Form Section Header */
.form-detail-heading {
  margin-top: 48px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  row-gap: 12px;
  padding-bottom: 8px;
}

/* First heading in container - no top margin */
.form-detail-heading:first-child {
  margin-top: 0;
}

.form-detail-heading h3 {
  padding: 0;
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.form-detail-heading p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Modern Form Fields */
.findoc-form {
  position: relative;
  margin-bottom: 24px;
}

.findoc-form label {
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
  display: block;
  letter-spacing: -0.2px;
}

.findoc-form input,
.findoc-form select,
.findoc-form textarea {
  width: 100%;
  font-size: 15px;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: #fafafa;
  color: #1f2937;
  font-family: inherit;
}

.findoc-form input {
  height: 48px;
}

.findoc-form select {
  height: 48px;
  padding: 12px 16px;
  cursor: pointer;
  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='%236b7280' 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 12px center;
  padding-right: 40px;
}

.findoc-form textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Focus States */
.findoc-form input:focus,
.findoc-form select:focus,
.findoc-form textarea:focus {
  outline: none;
  border-color: var(--bs-theme);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.08);
}

.findoc-form input:hover,
.findoc-form select:hover,
.findoc-form textarea:hover {
  border-color: #d1d5db;
  background: #ffffff;
}

/* Password Toggle Icon */
.findoc-form i {
  position: absolute;
  right: 16px;
  top: 46px;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s ease;
  font-size: 16px;
  z-index: 10;
}

.findoc-form i:hover {
  color: var(--bs-theme);
}

/* Error Messages */
.text-danger {
  font-size: 13px;
  margin-top: 6px;
  color: #ef4444;
  display: block;
  animation: slideDown 0.3s ease;
}

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

/* Button Container */
.findoc-form-btn {
  margin: 48px 0 24px;
  text-align: center;
}

/* Modern Button */
.findoc-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--bs-theme), var(--bs-theme-hover));
  font-size: 15px;
  font-weight: 500;
  padding: 14px 48px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
  letter-spacing: 0.3px;
  min-width: 180px;
}

.findoc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.findoc-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.findoc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Sidebar */
.bg-grays {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f3 100%);
  height: 100vh;
  border-right: 1px solid #e5e7eb;
}

.form-info {
  padding: 80px 40px;
}

.form-info-item {
  display: flex;
  align-items: flex-start;
  column-gap: 20px;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border: 1px solid #f3f4f6;
}

.form-info-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--bs-theme);
}

.form-info-item img {
  width: 40px;
  height: 40px;
  opacity: 0.8;
}

.form-info-heading h5 {
  font-size: 16px;
  color: var(--bs-theme);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-info-heading p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.form-info-heading {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .form-detail-regi {
    padding: 40px 30px;
  }

  .form-info {
    padding: 40px 30px;
    height: auto;
  }

  .bg-grays {
    height: auto;
  }
}

@media (max-width: 768px) {
  .form-detail-regi {
    padding: 30px 20px;
    border-radius: 12px;
  }

  .form-detail-heading h3 {
    font-size: 20px;
  }

  .findoc-btn {
    width: 100%;
    padding: 14px 32px;
  }

  .form-info {
    padding: 30px 20px;
  }

  .form-info-item {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .form-detail-regi {
    padding: 24px 16px;
    border-radius: 10px;
    box-shadow: none;
  }

  .form-detail-heading {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .form-detail-heading h3 {
    font-size: 18px;
  }

  .form-detail-heading p {
    font-size: 12px;
  }

  .findoc-form {
    margin-bottom: 20px;
  }

  .findoc-form label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .findoc-form input,
  .findoc-form select {
    height: 44px;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 8px;
  }

  .findoc-form select {
    padding-right: 36px;
  }

  .findoc-form textarea {
    min-height: 100px;
    font-size: 14px;
    padding: 10px 14px;
  }

  .findoc-form i {
    top: 44px;
    right: 14px;
    font-size: 14px;
  }

  .text-danger {
    font-size: 12px;
  }

  .findoc-form-btn {
    margin: 32px 0 16px;
  }

  .findoc-btn {
    font-size: 14px;
    padding: 12px 32px;
  }

  .form-info {
    padding: 24px 16px;
  }

  .form-info-item {
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 10px;
  }

  .form-info-item img {
    width: 32px;
    height: 32px;
  }

  .form-info-heading h5 {
    font-size: 14px;
  }

  .form-info-heading p {
    font-size: 12px;
  }
}

/* Smooth Transitions - Only for form elements */
.form-detail-regi *,
.findoc-form *,
.bg-grays * {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Form Row Spacing - Only for registration form rows */
.form-detail-regi .row {
  row-gap: 0;
}

/* Placeholder Styling */
.findoc-form input::placeholder,
.findoc-form textarea::placeholder {
  color: #9ca3af;
  font-size: 14px;
}

.findoc-form select {
  color: #1f2937;
}

.findoc-form select option {
  color: #1f2937;
}

/* Hidden Fields */
input[type="hidden"] {
  display: none;
}

/* ====================================
   BOOTSTRAP VALIDATION OVERRIDE
   Remove automatic validation icons
   ==================================== */

/* Remove validation icons from form controls */
.form-control.is-invalid,
.form-select.is-invalid {
  background-image: none !important;
  padding-right: 16px !important;
}

/* Remove validation icons on focus */
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  background-image: none !important;
}

/* Keep the red border for invalid fields */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #ef4444;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Ensure buttons don't inherit validation styles */
.findoc-btn,
button.findoc-btn {
  background-image: none !important;
}

/* Remove any pseudo-elements that might show validation icons */
.form-control.is-invalid::after,
.form-select.is-invalid::after,
.findoc-form.is-invalid::after {
  display: none !important;
  content: none !important;
}
