/* ==========================================================================
   Course page enquiry (hero overlay + bottom form)
   Scoped to .course-enquire-hero / .course-enquire-section
   Typography, color, size, and form width matched to new-design-cr mock.
   ========================================================================== */

.course-enquire-hero,
.course-enquire-section {
  --ce-emerald: #0D4A3E;
  --ce-emerald-dark: #072B20;
  --ce-emerald-light: #166B59;
  --ce-white: #FFFFFF;
  --ce-sage: #EEF4F0;
  --ce-text-main: #142420;
  --ce-text-body: #33443F;
  --ce-text-muted: #5C6E67;
  --ce-text-light: #8E9F98;
  --ce-font-heading: "Plus Jakarta Sans", Inter, sans-serif;
  --ce-font-body: Inter, sans-serif;
  --ce-radius-md: 12px;
  --ce-radius-xl: 24px;
  --ce-radius-full: 9999px;
  --ce-shadow-sm: 0 2px 8px rgba(13, 74, 62, 0.06);
  --ce-shadow-md: 0 8px 24px -4px rgba(13, 74, 62, 0.08), 0 2px 6px -1px rgba(13, 74, 62, 0.04);
  --ce-shadow-lg: 0 20px 35px -8px rgba(13, 74, 62, 0.12), 0 6px 12px -2px rgba(13, 74, 62, 0.05);
  --ce-shadow-xl: 0 28px 50px -12px rgba(7, 43, 32, 0.18), 0 10px 20px -5px rgba(7, 43, 32, 0.08);
  --ce-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--ce-font-body);
  -webkit-font-smoothing: antialiased;
}

.course-enquire-hero h1,
.course-enquire-hero h2,
.course-enquire-hero h3,
.course-enquire-hero h4,
.course-enquire-section h1,
.course-enquire-section h2,
.course-enquire-section h3,
.course-enquire-section h4 {
  font-family: var(--ce-font-heading);
}

/* --------------------------------------------------------------------------
   Hero overlay layout — mock container 1240px, grid 1.2fr / 0.85fr
   Form column ≈ 494px at full container (not the previous 400px cap)
   -------------------------------------------------------------------------- */
.course-enquire-hero.hero-section-wrapper {
  margin-bottom: 0;
}

.course-enquire-hero .container-fluid {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.course-enquire-hero.center-overlay-hero-section-wrapper .bg-wrapper::before {
  background: linear-gradient(
    135deg,
    rgba(4, 27, 20, 0.92) 0%,
    rgba(7, 43, 32, 0.82) 45%,
    rgba(13, 74, 62, 0.65) 100%
  );
}

.course-enquire-hero.other-hero-section-wrapper .bg-wrapper .hero-section-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  align-items: center;
  gap: 48px;
  text-align: left;
  min-height: calc(100vh - 80px);
  padding: 60px 0;
  justify-content: initial;
}

.course-enquire-hero .hero-content {
  color: var(--ce-white);
  min-width: 0;
}

.course-enquire-hero.other-hero-section-wrapper .bg-wrapper .hero-section-inner h2.hero-title {
  font-family: var(--ce-font-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ce-white);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.course-enquire-hero.other-hero-section-wrapper .bg-wrapper .hero-section-inner h2.hero-title span,
.course-enquire-hero.other-hero-section-wrapper .bg-wrapper .hero-section-inner h2.hero-title .highlight {
  font-family: inherit;
  font-weight: 800;
  background: linear-gradient(135deg, #F3D39B 0%, #C5A059 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #E2B86E;
  display: inline-block;
  min-height: 1.2em;
}

.course-enquire-hero.other-hero-section-wrapper .bg-wrapper .hero-section-inner .hero-subtitle {
  font-family: var(--ce-font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 0;
}

.course-enquire-hero .hero-form-box {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

/* --------------------------------------------------------------------------
   Form card (hero + bottom)
   -------------------------------------------------------------------------- */
.course-enquire-hero .hero-form-box,
.course-enquire-section .hero-form-box {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--ce-radius-xl);
  padding: 36px 32px;
  box-shadow: var(--ce-shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.course-enquire-hero .hero-form-header,
.course-enquire-section .hero-form-header {
  margin-bottom: 24px;
  text-align: left;
}

.course-enquire-hero .hero-form-header h3,
.course-enquire-section .hero-form-header h3 {
  font-family: var(--ce-font-heading);
  font-size: 1.45rem;
  color: var(--ce-emerald-dark);
  margin-bottom: 6px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.course-enquire-hero.other-hero-section-wrapper .bg-wrapper .hero-section-inner .hero-form-header p,
.course-enquire-section .hero-form-header p {
  font-family: var(--ce-font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ce-text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.course-enquire-hero .hero-form-inline,
.course-enquire-section .hero-form-inline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-enquire-hero .form-input,
.course-enquire-section .form-input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--ce-font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ce-text-main);
  background-color: var(--ce-white);
  border: 1.5px solid #D5E2DB;
  border-radius: var(--ce-radius-md);
  outline: none;
  transition: border-color var(--ce-transition), box-shadow var(--ce-transition), background-color var(--ce-transition);
  box-shadow: none;
}

.course-enquire-hero .form-input::placeholder,
.course-enquire-section .form-input::placeholder {
  color: var(--ce-text-light);
  font-family: var(--ce-font-body);
}

.course-enquire-hero .form-input:focus,
.course-enquire-section .form-input:focus {
  border-color: var(--ce-emerald);
  box-shadow: 0 0 0 4px rgba(13, 74, 62, 0.12);
  background-color: #FAFCFB;
}

.course-enquire-hero .form-input.is-invalid,
.course-enquire-section .form-input.is-invalid {
  border-color: #E53E3E !important;
  background-color: #FFF5F5 !important;
}

.course-enquire-hero .form-input.is-valid,
.course-enquire-section .form-input.is-valid {
  border-color: #38A169 !important;
}

.course-enquire-hero .hero-form-inline .invalid-feedback,
.course-enquire-section .hero-form-inline .invalid-feedback {
  display: block;
  font-family: var(--ce-font-body);
  color: #dc3545;
  font-size: 0.8125rem;
  margin-top: -6px;
}

.course-enquire-hero .course-enquire-alert,
.course-enquire-section .course-enquire-alert {
  padding: 10px 14px;
  border-radius: var(--ce-radius-md);
  font-family: var(--ce-font-body);
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.course-enquire-hero .course-enquire-alert-danger,
.course-enquire-section .course-enquire-alert-danger {
  background: #FFF5F5;
  color: #C53030;
  border: 1px solid #FED7D7;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.course-enquire-hero .hero-form-inline .ce-btn,
.course-enquire-section .hero-form-inline .ce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  font-family: var(--ce-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: var(--ce-radius-full);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--ce-transition);
  line-height: 1.3;
}

.course-enquire-hero .hero-form-inline .ce-btn:active,
.course-enquire-section .hero-form-inline .ce-btn:active {
  transform: scale(0.98);
}

.course-enquire-hero .hero-form-inline .ce-btn-primary,
.course-enquire-section .hero-form-inline .ce-btn-primary {
  background: linear-gradient(135deg, var(--ce-emerald-light) 0%, var(--ce-emerald) 100%);
  color: var(--ce-white);
  box-shadow: 0 4px 16px rgba(13, 74, 62, 0.28);
}

.course-enquire-hero .hero-form-inline .ce-btn-primary:hover,
.course-enquire-section .hero-form-inline .ce-btn-primary:hover {
  background: linear-gradient(135deg, var(--ce-emerald) 0%, var(--ce-emerald-dark) 100%);
  box-shadow: 0 8px 24px rgba(13, 74, 62, 0.38);
  transform: translateY(-2px);
  color: var(--ce-white);
}

.course-enquire-hero .hero-form-inline .ce-btn-primary:disabled,
.course-enquire-section .hero-form-inline .ce-btn-primary:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.course-enquire-hero .hero-form-inline .ce-btn-secondary {
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--ce-emerald-dark);
  border: 1px solid rgba(13, 74, 62, 0.15);
  box-shadow: var(--ce-shadow-sm);
}

.course-enquire-hero .hero-form-inline .ce-btn-secondary:hover {
  background-color: var(--ce-white);
  border-color: var(--ce-emerald);
  transform: translateY(-2px);
  box-shadow: var(--ce-shadow-md);
  color: var(--ce-emerald-dark);
}

/* --------------------------------------------------------------------------
   Bottom enquire section
   -------------------------------------------------------------------------- */
.course-enquire-section {
  padding-top: 96px;
  padding-bottom: 96px;
  background-color: var(--ce-sage);
  scroll-margin-top: 100px;
}

.course-enquire-section .enquire-form-box {
  background-color: var(--ce-white);
  border-radius: var(--ce-radius-xl);
  padding: 52px 44px;
  box-shadow: var(--ce-shadow-lg);
  max-width: 580px;
  margin: 0 auto;
  border: 1px solid rgba(13, 74, 62, 0.08);
}

.course-enquire-section .enquire-form-box .hero-form-header {
  text-align: center;
  margin-bottom: 28px;
}

.course-enquire-section .enquire-form-box .hero-form-header h2 {
  font-family: var(--ce-font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  margin-bottom: 8px;
  color: var(--ce-emerald-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.course-enquire-section .hero-form-inline .ce-btn-primary {
  padding: 16px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .course-enquire-hero.other-hero-section-wrapper .bg-wrapper .hero-section-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding: 48px 0 40px;
    justify-items: center;
  }

  .course-enquire-hero .hero-content {
    text-align: center;
    width: 100%;
  }

  .course-enquire-hero.other-hero-section-wrapper .bg-wrapper .hero-section-inner .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .course-enquire-hero .hero-form-box {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    justify-self: center;
  }

  .course-enquire-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .course-enquire-hero .container-fluid {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 576px) {
  .course-enquire-hero .hero-form-box {
    padding: 36px 20px;
  }

  .course-enquire-section .enquire-form-box {
    padding: 36px 20px;
  }

  .course-enquire-hero.other-hero-section-wrapper .bg-wrapper .hero-section-inner {
    padding: 36px 0 32px;
    gap: 28px;
  }
}
