/* --- UI/UX ENHANCED STYLES --- */

#consultationFormWrapper {
  max-width: 450px;
  margin: 20px auto 60px;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: left;
}

#consultationFormWrapper h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
  text-align: center;
}

#consultationFormWrapper .form-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0 0 24px 0;
  line-height: 1.5;
  text-align: center;
}

/* New Form Group for labels and inputs */
.form-group {
  margin-bottom: 16px; /* Reduced margin */
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

#consultationForm input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  background: #fff;
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
  color: #333;
}

#consultationForm input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* New styles for inline error handling */
.error-message {
  color: #dc3545;
  font-size: 13px;
  display: none; /* Hidden by default */
  margin-top: 6px;
}

.error-message.active {
  display: block; /* Show when active */
}

input.error {
  border-color: #dc3545 !important; /* Highlight input with error */
}


#consultationForm button {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  background: #0d6efd;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  margin-top: 10px;
  transition: background 0.2s ease;
  text-align: center;
}

#consultationForm button:hover {
  background: #0b5ed7;
}

/* --- Intl Tel Input Specific Styles --- */
.iti.iti--allow-dropdown {
  width: 100%;
}
.iti.iti--allow-dropdown input {
  padding-left: 56px;
}

/* --- MODAL STYLES --- */
#modal {
  display: none;
  position: fixed;
  z-index: 999999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}
.modal-content {
  background: #fff;
  padding: 40px 36px 30px;
  border-radius: 16px;
  font-size: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  color: #222;
  line-height: 1.6;
  position: relative;
  transform: translateY(-10px);
  animation: slideIn 0.35s ease forwards;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}
.modal-close:hover {
  color: #333;
}
.modal-content strong {
  font-weight: 600;
}
@keyframes fadeIn { from { background: rgba(0,0,0,0); } to { background: rgba(0,0,0,0.6); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
