/* --- UI/UX ENHANCED STYLES --- */

#consultationFormWrapper {
  max-width: 500px; /* Made the form wider */
  margin: 0 auto; /* Removed top and bottom margins */
  padding: 0; /* Removed padding as background is gone */
  border-radius: 12px;
  /* Background and shadow removed to blend with the page */
  background: transparent;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: left;
}

/* New style for side-by-side fields */
.form-row {
  display: flex;
  gap: 12px;
}
.form-row .form-group {
  flex: 1; /* Each group takes up equal space */
}

.form-group {
  margin-bottom: 12px; /* Reduced margin to make the form shorter */
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff; /* Label color changed to white */
}

#consultationForm input {
  width: 100%;
  padding: 10px 14px; /* Reduced vertical padding to make fields shorter */
  border-radius: 8px;
  /* Fields are now white */
  background: #ffffff;
  border: 1px solid #dcdcdc;
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
  color: #333333; /* Text color changed to dark for readability */
}

#consultationForm input::placeholder {
  color: #999; /* Standard placeholder color */
}

#consultationForm input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15); /* Blue glow on focus */
  background: #ffffff;
}

.error-message {
  color: #ff8a8a; /* Lighter red for better contrast on dark backgrounds */
  font-size: 13px;
  display: none;
  margin-top: 6px;
}

.error-message.active {
  display: block;
}

input.error {
  border-color: #ff8a8a !important;
}

#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: 16px; /* Adjusted margin for button */
  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;
}
/* This ensures the country code text is dark and readable */
.iti__selected-dial-code {
  color: #333 !important;
}

/* --- Dropdown List Color Fix --- */
.iti__country-list {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  border: 1px solid #eee;
}
.iti__country-name, .iti__dial-code {
  color: #333 !important; /* Makes text in dropdown dark */
}
.iti__country:hover, .iti__country.iti__highlight {
  background-color: #f1f1f1 !important;
}


/* --- 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;
}
.modal-warning {
  background-color: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
}
@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); } }
