/* --------------------------------------------------------------------------
   15. ENROLLMENT & CONTACT FORM SECTION (Racing Theme)
   -------------------------------------------------------------------------- */
.form-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
  overflow: hidden;
}

/* Background Racing Track Speed-Lines Effect */
.racing-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0.015) 12px,
    transparent 12px,
    transparent 28px
  );
  pointer-events: none;
}

.form-wrapper {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  padding: 0 2.5rem 2.5rem 2.5rem;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 2;
  border-bottom: 5px solid #f26522; /* Racing Orange Bottom Trim */
}

/* --- Top Racing Graphic Banner --- */
.form-racing-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  margin: 0 -2.5rem 2rem -2.5rem;
  background: #0b132b;
  overflow: hidden;
}

/* Left Chevrons (Yellow/Black track indicator style) */
.chevrons-left {
  width: 110px;
  height: 100%;
  background: repeating-linear-gradient(
    -60deg,
    #ffb800,
    #ffb800 10px,
    #0b132b 10px,
    #0b132b 20px
  );
}

.racing-title-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffb800;
  text-transform: uppercase;
}

/* Right Angled Speed Lines */
.racing-stripes-right {
  width: 140px;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #f26522,
    #f26522 6px,
    #0b132b 6px,
    #0b132b 14px
  );
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-family: 'Poppins', sans-serif;
  color: #0b132b;
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-header h2 i {
  color: #f26522;
}

.form-header p {
  color: #6c757d;
  font-size: 0.95rem;
}

/* Form Controls & Inputs */
.styled-form .form-group {
  margin-bottom: 1.25rem;
}

.styled-form label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: #0b132b;
}

.styled-form label i {
  color: #f26522;
}

.styled-form input,
.styled-form select,
.styled-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1e293b;
  background-color: #f8fafc;
  transition: all 0.25s ease;
}

.styled-form input:focus,
.styled-form select:focus,
.styled-form textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #f26522;
  box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.15);
}

/* Grid Layouts */
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.pricing-review-anchor {
  font-size: 0.8rem;
  color: #f26522;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.pricing-review-anchor:hover {
  color: #0b132b;
  text-decoration: underline;
}

/* Racing Orange Submit Button */
.form-submit-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #f26522 0%, #d94e0d 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(242, 101, 34, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(242, 101, 34, 0.45);
}

/* Error Alert Box Styling */
.form-error-alert {
  position: relative;
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

.form-error-alert.warning {
  background-color: #fffbeb;
  border-left-color: #f59e0b;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #991b1b;
  font-size: 14px;
  font-weight: 500;
}

.form-error-alert.warning .alert-content {
  color: #92400e;
}

.alert-close-btn {
  background: none;
  border: none;
  color: #991b1b;
  margin-left: auto;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
}

.alert-close-btn:hover {
  opacity: 1;
}

.alert-timer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: #ef4444;
  width: 100%;
  animation: countdown 10s linear forwards;
}

.form-error-alert.warning .alert-timer-bar {
  background-color: #f59e0b;
}

@keyframes countdown {
  from { width: 100%; }
  to { width: 0%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .form-wrapper {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
  
  .form-racing-header-bar {
    margin: 0 -1.5rem 1.5rem -1.5rem;
  }
}