/* ====================================================================
   HERO FORM - Standalone Stylesheet
   Complete ground-up styling for Find Your Course form
   ==================================================================== */

/* Form Container */
.fa-form {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 32px 28px;
  display: block !important;
  width: 100%;
}

.fa-form-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 24px 0;
  font-family: "Raleway", sans-serif;
}

/* Field Wrapper - Full Width, Vertical Stack */
.fa-field {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin-bottom: 20px;
}

.fa-field:last-child {
  margin-bottom: 0;
}

/* Label - Always Above Input */
.fa-label {
  display: block !important;
  font-size: 14px;
  font-weight: 600;
  color: #555555;
  margin-bottom: 8px;
  font-family: "Open Sans", sans-serif;
}

/* Standard Select Dropdowns */
.fa-select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
  color: #2f2f2f;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23606060' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 16px center/12px 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fa-select:focus {
  border-color: var(--industry-color, #04206A);
  box-shadow: 0 0 0 3px rgba(4, 32, 106, 0.1);
  outline: none;
}

.fa-select:hover {
  border-color: #9ca3af;
}

/* State Picker - Custom Dropdown */
.fa-state-picker {
  position: relative;
  width: 100%;
}

.fa-state-input {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
  color: #2f2f2f;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23606060' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 16px center/12px 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fa-state-input:focus {
  border-color: var(--industry-color, #04206A);
  box-shadow: 0 0 0 3px rgba(4, 32, 106, 0.1);
  outline: none;
}

.fa-state-input:hover {
  border-color: #9ca3af;
}

/* State Dropdown Menu */
.fa-state-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  max-height: 360px;
  overflow-y: auto;
  z-index: 1000;
}

/* Search Box in Dropdown */
.fa-state-search {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.fa-state-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  color: #2f2f2f;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.fa-state-search input:focus {
  border-color: var(--industry-color, #04206A);
  box-shadow: 0 0 0 2px rgba(4, 32, 106, 0.08);
  outline: none;
}

.fa-state-search input::placeholder {
  color: #9ca3af;
}

/* State List Container */
.fa-state-list {
  padding: 6px 0;
}

/* Group Headers (Featured / All States) */
.fa-state-group-title {
  padding: 10px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: #f9fafb;
  font-family: "Open Sans", sans-serif;
}

/* State Options */
.fa-state-option {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 15px;
  color: #2f2f2f;
  font-family: "Open Sans", sans-serif;
  transition: background-color 0.15s ease;
}

.fa-state-option:hover {
  background-color: #f3f4f6;
}

.fa-state-option:active {
  background-color: #e5e7eb;
}

/* Featured States with Star Icon */
.fa-state-option.featured {
  position: relative;
  padding-left: 40px;
}

.fa-state-option.featured::before {
  content: "★";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #fbbf24;
  font-size: 17px;
}

/* Hidden State Options */
.fa-state-option[hidden] {
  display: none;
}

/* Submit Button */
.fa-submit {
  width: 100%;
  height: 50px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  color: #ffffff;
  background-color: var(--industry-color, #04206A);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.fa-submit:hover {
  background-color: var(--industry-color-hover, #032055);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fa-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .fa-form {
    padding: 24px 20px;
  }
  
  .fa-form-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  .fa-field {
    margin-bottom: 16px;
  }
}

