/* =========================================================
   MELAKI ACADEMY — APPLY PAGE
   ========================================================= */


/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */

:root {
  /* =========================================================
     MELAKI ACADEMY — APPROVED BRAND COLOURS
     ========================================================= */

  --jungle-green: #6B7A52;
  --jungle-green-dark: #4F5A3A;
  --jungle-green-light: #8FA070;

  --gold: #C9A24A;
  --gold-dark: #A78332;
  --gold-light: #E4C778;
  --gold-pale: #F5EAD0;

  --white: #FFFFFF;
  --cream: #FAF8F2;
  --cream-dark: #F3EEE2;

  --text: #26322C;
  --muted: #69746D;

  --border: #DFE5E0;
  --danger: #B42318;

  --shadow:
    0 10px 30px rgba(25, 54, 43, 0.08);

  --shadow-hover:
    0 15px 35px rgba(25, 54, 43, 0.13);

  --container-width: 1180px;

  /* Existing Apply-page selector compatibility */
  --green: var(--jungle-green);
  --green-dark: var(--jungle-green-dark);
  --green-light: var(--jungle-green-light);
}


/* =========================================================
   2. RESET
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {

  font-family:
    "Montserrat",
    Arial,
    sans-serif;

  color: var(--text);

  background-color: var(--cream);

  line-height: 1.6;

}


img {
  max-width: 100%;
  display: block;
}


button,
input,
select,
textarea {
  font: inherit;
}


button {
  cursor: pointer;
}


a {
  text-decoration: none;
  color: inherit;
}


/* =========================================================
   3. CONTAINER
   ========================================================= */

.container {

  width: min(
    calc(100% - 40px),
    var(--container-width)
  );

  margin: 0 auto;

}


/* =========================================================
   4. TOP BAR
   ========================================================= */

.top-bar {

  background-color: var(--green);

  color: var(--white);

  min-height: 38px;

  display: flex;

  align-items: center;

}


.top-bar-content {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

}


.top-contact {

  display: flex;

  align-items: center;

  gap: 12px;

  font-size: 12px;

}


.top-contact a {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  transition:
    color 0.25s ease;

}


.top-contact a:hover {

  color: var(--gold);

}


.top-contact i {

  color: var(--gold);

}


.top-divider {

  opacity: 0.45;

}


.top-motto {

  font-size: 11px;

  letter-spacing: 0.5px;

  color: #e7ece8;

}


/* =========================================================
   5. MAIN HEADER
   ========================================================= */

.main-header {

  height: 82px;

  background-color: var(--white);

  border-bottom: 1px solid #e9ece9;

  position: relative;

  z-index: 1000;

}


.header-content {

  height: 100%;

  display: grid;

  grid-template-columns:
    180px
    1fr
    180px;

  align-items: center;

}


/* =========================================================
   6. LOGO
   ========================================================= */

.site-logo {

  display: inline-flex;

  align-items: center;

  width: fit-content;

}


.site-logo img {

  width: 105px;

  height: auto;

}


/* =========================================================
   7. NAVIGATION
   ========================================================= */

.main-navigation {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 42px;

}


.main-navigation a {

  position: relative;

  color: var(--green);

  font-size: 14px;

  font-weight: 500;

  letter-spacing: 0.15px;

  padding: 8px 0;

  transition:
    color 0.25s ease;

}


/*
   Keep the navigation styling consistent
   with the other Melaki pages.
*/

.main-navigation a:hover {

  color: var(--green);

}


.main-navigation a::after {

  content: "";

  position: absolute;

  left: 50%;

  bottom: 0;

  width: 0;

  height: 2px;

  background-color: var(--gold);

  transform: translateX(-50%);

  transition:
    width 0.25s ease;

}


.main-navigation a:hover::after {

  width: 100%;

}


/* =========================================================
   8. APPLY BUTTON
   ========================================================= */

.header-actions {

  display: flex;

  justify-content: flex-end;

}


.nav-apply-button {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding: 11px 18px;

  background-color: var(--gold);

  color: var(--green);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.4px;

  border-radius: 3px;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease;

}


.nav-apply-button:hover {

  background-color: var(--gold);

  transform: translateY(-1px);

}


.nav-apply-button.active {

  background-color: var(--gold);

  color: var(--white);

}


/* =========================================================
   9. MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {

  display: none;

  width: 42px;

  height: 42px;

  border: none;

  background: transparent;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 5px;

}


.menu-toggle span {

  width: 24px;

  height: 2px;

  background-color: var(--green);

  display: block;

}


/* =========================================================
   10. APPLY HERO
   ========================================================= */

.apply-hero {

  background-color: var(--green);

  color: var(--white);

}


.apply-hero-content {

  min-height: 430px;

  display: grid;

  grid-template-columns:
    1fr
    1fr;

  align-items: stretch;

}


.apply-hero-text {

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding:
    65px
    55px
    65px
    0;

}


.section-label {

  display: inline-block;

  margin-bottom: 14px;

  color: var(--gold);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 2px;

}


.apply-hero-text h1 {

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(
    46px,
    5vw,
    72px
  );

  line-height: 0.95;

  font-weight: 600;

  color: var(--white);

  margin-bottom: 25px;

}


.apply-hero-text p {

  max-width: 520px;

  color: #dce6e0;

  font-size: 14px;

  line-height: 1.9;

}


/* =========================================================
   11. HERO DECORATION
   ========================================================= */

.hero-decoration {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 28px;

}


.hero-decoration span {

  width: 42px;

  height: 1px;

  background-color: var(--gold);

}


.hero-decoration i {

  color: var(--gold);

  font-size: 9px;

}


/* =========================================================
   12. HERO BACKGROUND IMAGE
   ========================================================= */

.apply-hero-image {

  min-height: 430px;

  background-image:

    linear-gradient(
      rgba(25, 54, 43, 0.10),
      rgba(25, 54, 43, 0.10)
    ),

    url("../images/apply/apply.png");

  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;

  border-left: 3px solid var(--gold);

}


/* =========================================================
   13. APPLICATION SECTION
   ========================================================= */

.application-section {

  padding:
    70px
    0
    90px;

  background-color: var(--cream);

}


.application-form {

  display: flex;

  flex-direction: column;

  gap: 25px;

}


/* =========================================================
   14. APPLICATION CARD
   ========================================================= */

.application-card {

  background-color: var(--white);

  border: 1px solid var(--border);

  border-radius: 8px;

  padding: 34px;

  box-shadow: var(--shadow);

}


.application-card:hover {

  box-shadow: var(--shadow-hover);

}


/* =========================================================
   15. CARD HEADING
   ========================================================= */

.card-heading {

  display: flex;

  align-items: flex-start;

  gap: 18px;

  margin-bottom: 30px;

}


.step-number {

  width: 42px;

  height: 42px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background-color: var(--green);

  color: var(--gold);

  font-size: 12px;

  font-weight: 700;

}


.card-heading h2 {

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  color: var(--green);

  font-size: 31px;

  line-height: 1.1;

  margin-bottom: 4px;

}


.card-heading p {

  color: var(--muted);

  font-size: 12px;

}


/* =========================================================
   16. FORM GRID
   ========================================================= */

.form-grid {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 22px;

}


.full-width {

  grid-column: 1 / -1;

}


/* =========================================================
   17. FORM GROUP
   ========================================================= */

.form-group {

  display: flex;

  flex-direction: column;

  gap: 8px;

}


.form-group label {

  color: var(--green);

  font-size: 12px;

  font-weight: 700;

}


.form-group label span {

  color: var(--gold);

}


/* =========================================================
   18. INPUTS
   ========================================================= */

.input-wrapper {

  position: relative;

}


.input-wrapper i {

  position: absolute;

  left: 15px;

  top: 50%;

  transform: translateY(-50%);

  color: var(--gold);

  font-size: 13px;

  pointer-events: none;

}


.form-group input,
.form-group select,
.form-group textarea {

  width: 100%;

  border: 1px solid #d7dfd9;

  border-radius: 5px;

  background-color: var(--white);

  color: var(--text);

  font-size: 13px;

  outline: none;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;

}


.form-group input {

  height: 50px;

  padding:
    0
    15px;

}


.input-wrapper input {

  padding-left: 43px;

}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

  border-color: var(--gold);

  background-color: var(--white);

  box-shadow:
    0 0 0 3px rgba(201, 162, 74, 0.12);

}


/* =========================================================
   19. SELECT
   ========================================================= */

.select-wrapper {

  position: relative;

}


.select-wrapper select {

  height: 52px;

  appearance: none;

  -webkit-appearance: none;

  padding:
    0
    45px
    0
    15px;

  cursor: pointer;

}


.select-wrapper i {

  position: absolute;

  right: 16px;

  top: 50%;

  transform: translateY(-50%);

  color: var(--gold);

  pointer-events: none;

  font-size: 12px;

}


/* =========================================================
   20. COURSE FEE DISPLAY
   ========================================================= */

/* =========================================================
   APPLICATION TYPE + COMBINATION CONTROLS
   ========================================================= */

.application-type-card {
  position: relative;
  overflow: hidden;
}

.application-type-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gold);
}

.application-type-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.application-type-fieldset legend {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  color: var(--green-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.4;
  text-transform: uppercase;
}

.application-type-fieldset legend span {
  color: #b42318;
}

.application-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.application-type-option {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.application-type-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.application-type-option-content {
  min-height: 104px;
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #d8e1dc;
  border-radius: 9px;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease,
              background-color .2s ease, box-shadow .2s ease;
}

.application-type-option:hover .application-type-option-content {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 7px 20px rgba(16, 39, 31, .07);
}

.application-type-option input:checked + .application-type-option-content {
  border-color: var(--gold);
  background: var(--green-light);
  box-shadow: 0 0 0 2px rgba(201, 162, 74, .10);
}

.application-type-option input:focus-visible + .application-type-option-content {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.application-type-radio {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #aebdb5;
  border-radius: 50%;
  background: #fff;
}

.application-type-option input:checked
+ .application-type-option-content
.application-type-radio {
  border-color: var(--gold);
}

.application-type-option input:checked
+ .application-type-option-content
.application-type-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.application-type-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.application-type-text strong {
  display: block;
  color: var(--green-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
}

.application-type-text small {
  display: block;
  color: #66756d;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.55;
}

.application-type-info {
  margin-top: 15px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid rgba(201, 162, 74, .28);
  border-left: 3px solid var(--gold);
  border-radius: 0 7px 7px 0;
  background: var(--gold-pale);
}

.application-type-info > i {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 14px;
  margin-top: 2px;
}

.application-type-info strong {
  display: block;
  color: var(--green-dark);
  font-size: 10px;
  margin-bottom: 4px;
}

.application-type-info p {
  margin: 0;
  color: #66736c;
  font-size: 9px;
  line-height: 1.6;
}


/* =========================================================
   PMU COMBINATION COURSE
   ========================================================= */

.combination-course-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e4e0d4;
  border-radius: 8px;
  background: #fbfaf6;
}

.combination-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.combination-question-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--gold);
}

.combination-question strong {
  color: var(--green-dark);
  font-size: 11px;
}

.combination-question p {
  margin: 5px 0 0;
  color: #68766f;
  font-size: 9px;
  line-height: 1.6;
}

.combination-choice-group {
  margin-bottom: 14px;
}

#additionalCourseGroup {
  margin-top: 4px;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: #7b857f;
  font-size: 8px;
  line-height: 1.5;
}


/* =========================================================
   CONDITIONAL DISCOUNT / EARLY BOOKING
   ========================================================= */

.discount-fee-row {
  color: var(--green-dark);
}

.discount-fee-row strong {
  color: #9a6f10 !important;
}

.early-booking-note {
  margin-top: 15px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(201, 162, 74, .30);
  border-radius: 6px;
  background: var(--gold-pale);
}

.early-booking-note > i {
  color: var(--gold);
  font-size: 13px;
  margin-top: 2px;
}

.early-booking-note strong {
  display: block;
  color: var(--green-dark);
  font-size: 10px;
  margin-bottom: 4px;
}

.early-booking-note p {
  margin: 0;
  color: #6d756f;
  font-size: 8.5px;
  line-height: 1.55;
}


/* =========================================================
   APPLICATION TYPE — RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {
  .application-type-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .application-type-option-content {
    min-height: 82px;
    padding: 17px;
  }
}

@media (max-width: 600px) {
  .application-type-fieldset legend {
    font-size: 10px;
    margin-bottom: 11px;
  }

  .application-type-option-content {
    min-height: 76px;
    padding: 15px;
    gap: 12px;
  }

  .application-type-text strong {
    font-size: 18px;
  }

  .application-type-text small {
    font-size: 8.5px;
  }

  .application-type-radio {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .application-type-info {
    padding: 12px 13px;
  }

  .combination-course-section {
    padding: 15px;
  }

  .combination-question {
    gap: 10px;
  }

  .combination-question-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}

@media (max-width: 400px) {
  .application-type-options {
    gap: 9px;
  }

  .application-type-option-content {
    min-height: 70px;
    padding: 12px;
    gap: 10px;
  }

  .application-type-text strong {
    font-size: 17px;
  }

  .application-type-text small {
    font-size: 8px;
  }

  .application-type-radio {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .combination-course-section {
    padding: 13px;
  }
}

/* =========================================================
   20. COURSE FEE DISPLAY
   ========================================================= */

.course-fee-display {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 18px;
  padding: 20px;
  background-color: var(--green-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
}

.course-fee-display > div:not(.fee-divider) {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.course-fee-display span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.course-fee-display strong {
  color: var(--green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 700;
}

.fee-divider {
  width: 100%;
  height: 1px;
  margin: 8px 0;
  background-color: #cfd9d2;
}

/* Discount row */
#discountFeeRow {
  padding: 12px 14px !important;
  background-color: var(--jungle-green-light);
  border: 1px solid #d7eadc;
  border-radius: 8px;
}

#discountFeeRow span {
  color: var(--green) !important;
}

#courseDiscount {
  color: #188044 !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px !important;
  font-weight: 800 !important;
}

/* Final discounted course fee */
#finalCourseFeeRow {
  margin-top: 4px;
  padding: 15px 14px !important;
  background: linear-gradient(135deg, var(--gold-pale), #fff4d5);
  border: 1px solid var(--gold);
  border-radius: 9px;
}

#finalCourseFeeRow span {
  color: var(--green-dark) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

#finalCourseFee {
  color: var(--gold-dark) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px !important;
  font-weight: 800 !important;
}

/* Minimum payment */
#minimumPaymentDivider {
  margin-top: 10px;
}

#minimumPaymentDivider + div {
  padding: 12px 0 4px;
}

#minimumPaymentDivider + div span {
  color: var(--green-dark) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

#minimumPayment {
  color: var(--green) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px !important;
  font-weight: 800 !important;
}

/* =========================================================
   21. UPCOMING INTAKE
   ========================================================= */

.upcoming-intake-display {

  display: flex;

  align-items: center;

  gap: 18px;

  padding: 22px;

  background-color: var(--cream);

  border: 1px solid var(--gold);

  border-radius: 8px;

}


.intake-icon {

  width: 52px;

  height: 52px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  background-color: var(--green);

  color: var(--gold);

  border-radius: 50%;

  font-size: 20px;

}


.intake-information {

  display: flex;

  flex-direction: column;

  gap: 4px;

}


.intake-information > span {

  color: var(--gold);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1.5px;

}


.intake-information > strong {

  color: var(--green);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 28px;

  line-height: 1.1;

}


.intake-information > small {

  color: var(--muted);

  font-size: 12px;

}


/* =========================================================
   22. CLASS TIME
   ========================================================= */

.class-time-section {

  display: flex;

  flex-direction: column;

  gap: 18px;

}


.class-time-heading h3 {

  color: var(--green);

  font-size: 13px;

}


.class-time-heading h3 span {

  color: var(--gold);

}


.class-time-grid {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 15px;

}


.class-option {

  position: relative;

  cursor: pointer;

}


.class-option input {

  position: absolute;

  opacity: 0;

  pointer-events: none;

}


.class-option-content {

  min-height: 82px;

  display: flex;

  align-items: center;

  gap: 15px;

  padding: 15px 17px;

  border: 1px solid var(--border);

  border-radius: 6px;

  background-color: var(--white);

  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;

}


.class-option:hover
.class-option-content {

  border-color: var(--gold);

}


.class-option input:checked
+ .class-option-content {

  border-color: var(--gold);

  background-color: var(--gold-pale);

  box-shadow:
    0 0 0 2px
    rgba(201, 162, 74, 0.12);

}


.class-icon {

  width: 42px;

  height: 42px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  background-color: var(--green-light);

  color: var(--gold);

  border-radius: 50%;

}


.class-details {

  display: flex;

  flex-direction: column;

  gap: 2px;

  flex: 1;

}


.class-details strong {

  color: var(--green);

  font-size: 13px;

}


.class-details small {

  color: var(--muted);

  font-size: 11px;

}


.radio-circle {

  width: 17px;

  height: 17px;

  flex-shrink: 0;

  border: 2px solid #cbd4ce;

  border-radius: 50%;

  position: relative;

}


.class-option input:checked
+ .class-option-content
.radio-circle {

  border-color: var(--gold);

}


.class-option input:checked
+ .class-option-content
.radio-circle::after {

  content: "";

  position: absolute;

  width: 7px;

  height: 7px;

  top: 50%;

  left: 50%;

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  background-color: var(--gold);

}


/* =========================================================
   23. INFORMATION NOTE
   ========================================================= */

.class-note {

  display: flex;

  align-items: flex-start;

  gap: 9px;

  margin-top: 4px;

  padding: 12px 14px;

  background-color: var(--green-light);

  border-radius: 4px;

}


.class-note i {

  color: var(--gold);

  font-size: 12px;

  margin-top: 3px;

}


.class-note span {

  color: var(--muted);

  font-size: 11px;

  line-height: 1.6;

}


/* =========================================================
   24. PAYMENT NOTICE
   ========================================================= */

.payment-notice {

  display: flex;

  align-items: flex-start;

  gap: 12px;

  padding: 17px;

  margin-bottom: 22px;

  background-color: var(--gold-pale);

  border-left: 3px solid var(--gold);

  border-radius: 4px;

}


.payment-notice i {

  color: var(--gold);

  margin-top: 3px;

}


.payment-notice p {

  color: var(--muted);

  font-size: 12px;

}


.payment-notice strong {

  color: var(--green);

}


/* =========================================================
   25. PAYMENT METHOD
   ========================================================= */

.payment-method {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 17px 20px;

  margin-bottom: 12px;

  background-color: var(--green);

  border-radius: 5px;

}


.payment-label {

  color: var(--gold);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1.2px;

}


.payment-number {

  display: flex;

  align-items: center;

  gap: 10px;

  color: var(--white);

}


.payment-number i {

  color: var(--gold);

  font-size: 14px;

}


.payment-number strong {

  font-size: 18px;

  letter-spacing: 1px;

}


/* =========================================================
   26. PAYMENT INPUTS
   ========================================================= */

.payment-inputs {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 22px;

  margin-top: 25px;

}


.money-input {

  display: flex;

  align-items: center;

  height: 50px;

  border: 1px solid #d7dfd9;

  border-radius: 5px;

  background-color: var(--white);

  overflow: hidden;

}


.money-input:focus-within {

  border-color: var(--gold);

  box-shadow:
    0 0 0 3px
    rgba(201, 162, 74, 0.12);

}


.money-input > span {

  height: 100%;

  display: flex;

  align-items: center;

  padding: 0 14px;

  background-color: var(--green-light);

  color: var(--green);

  font-size: 12px;

  font-weight: 700;

}


.money-input input {

  height: 100%;

  border: none;

  outline: none;

  background: transparent;

  box-shadow: none;

}


.money-input input:focus {

  box-shadow: none;

}


.field-error {

  min-height: 15px;

  color: var(--danger);

  font-size: 11px;

}


/* =========================================================
   27. PAYMENT NOTE
   ========================================================= */

.payment-note {

  display: flex;

  align-items: flex-start;

  gap: 10px;

  margin-top: 20px;

  padding-top: 18px;

  border-top: 1px solid var(--border);

}


.payment-note i {

  color: var(--gold);

  margin-top: 3px;

}


.payment-note p {

  color: var(--muted);

  font-size: 11px;

}


/* =========================================================
   28. TEXTAREA
   ========================================================= */

.form-group textarea {

  min-height: 150px;

  resize: vertical;

  padding: 15px;

  line-height: 1.6;

}


.character-count {

  display: flex;

  justify-content: flex-end;

  color: #8a948d;

  font-size: 10px;

  margin-top: -3px;

}


.character-count span {

  color: var(--gold);

  font-weight: 700;

}


/* =========================================================
   29. SUBMIT AREA
   ========================================================= */

.submit-area {

  display: flex;

  justify-content: flex-end;

  padding-top: 5px;

}


.submit-application-button {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  min-width: 220px;

  padding: 15px 25px;

  border: none;

  border-radius: 4px;

  background-color: var(--green);

  color: var(--white);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.3px;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease;

}


.submit-application-button:hover {

  background-color: var(--green-dark);

  transform: translateY(-2px);

}


.submit-application-button i {

  color: var(--gold);

}


/* =========================================================
   30. REVIEW SECTION
   ========================================================= */

.review-section {

  background-color: var(--white);

  border: 1px solid var(--border);

  border-radius: 8px;

  padding: 40px;

  box-shadow: var(--shadow);

}


.review-header {

  text-align: center;

  margin-bottom: 35px;

}


.review-header > i {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 58px;

  height: 58px;

  margin-bottom: 14px;

  border-radius: 50%;

  background-color: var(--green);

  color: var(--gold);

  font-size: 22px;

}


.review-header h2 {

  color: var(--green);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 34px;

  margin-bottom: 7px;

}


.review-header p {

  color: var(--muted);

  font-size: 12px;

}


/* =========================================================
   31. REVIEW GRID
   ========================================================= */

.review-grid {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 18px;

}


.review-card {

  padding: 22px;

  background-color: var(--cream);

  border: 1px solid var(--border);

  border-radius: 6px;

}


.review-card-heading {

  display: flex;

  align-items: center;

  gap: 9px;

  padding-bottom: 13px;

  margin-bottom: 13px;

  border-bottom: 1px solid var(--border);

}


.review-card-heading i {

  color: var(--gold);

  font-size: 14px;

}


.review-card-heading h3 {

  color: var(--green);

  font-size: 13px;

}


.review-item {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 15px;

  padding: 7px 0;

}


.review-item span {

  color: var(--muted);

  font-size: 11px;

}


.review-item strong {

  color: var(--green);

  font-size: 11px;

  text-align: right;

}


.review-message {

  color: var(--text);

  font-size: 12px;

  line-height: 1.7;

  white-space: pre-wrap;

}


/* =========================================================
   32. REVIEW WARNING
   ========================================================= */

.review-warning {

  display: flex;

  align-items: flex-start;

  gap: 11px;

  margin-top: 22px;

  padding: 16px;

  background-color: var(--gold-pale);

  border-left: 3px solid var(--gold);

  border-radius: 4px;

}


.review-warning i {

  color: var(--gold);

  margin-top: 3px;

}


.review-warning p {

  color: var(--muted);

  font-size: 11px;

}


/* =========================================================
   33. REVIEW ACTIONS
   ========================================================= */

.review-actions {

  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: 13px;

  margin-top: 25px;

}


.edit-details-button,
.confirm-button {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  min-height: 46px;

  padding: 0 20px;

  border-radius: 4px;

  font-size: 11px;

  font-weight: 700;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease;

}


.edit-details-button {

  border: 1px solid var(--green);

  background-color: var(--white);

  color: var(--green);

}


.edit-details-button:hover {

  background-color: var(--green-light);

}


.confirm-button {

  border: 1px solid #258b52;

  background-color: #258b52;

  color: var(--white);

}


.confirm-button:hover {

  background-color: #1e7444;

  transform: translateY(-1px);

}


.confirm-button i {

  font-size: 15px;

}


/* =========================================================
   34. SECURITY NOTE
   ========================================================= */

.security-note {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  margin-top: 20px;

  color: var(--muted);

  font-size: 10px;

  text-align: center;

}


.security-note i {

  color: var(--gold);

}


/* =========================================================
   35. WHAT HAPPENS NEXT
   ========================================================= */

.next-steps-section {

  margin-top: 60px;

  text-align: center;

}


.next-steps-section > h2 {

  color: var(--green);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 34px;

  margin-bottom: 28px;

}


.steps-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;

}


.next-step {

  position: relative;

  display: flex;

  align-items: flex-start;

  gap: 14px;

  padding: 24px;

  background-color: var(--white);

  border: 1px solid var(--border);

  border-radius: 6px;

  text-align: left;

}


.next-step-number {

  position: absolute;

  top: 12px;

  right: 15px;

  color: #dfe6e1;

  font-size: 26px;

  font-weight: 700;

}


.next-step-icon {

  width: 43px;

  height: 43px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  background-color: var(--green-light);

  color: var(--gold);

  border-radius: 50%;

}


.next-step h3 {

  color: var(--green);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 22px;

  line-height: 1.1;

  margin-bottom: 5px;

}


.next-step p {

  color: var(--muted);

  font-size: 11px;

  line-height: 1.6;

}


/* =========================================================
   36. APPLICATION HELP
   ========================================================= */

.application-help {

  display: grid;

  grid-template-columns:
    auto
    1fr
    auto;

  align-items: center;

  gap: 18px;

  margin-top: 35px;

  padding: 23px 25px;

  background-color: var(--green);

  border-radius: 6px;

}


.help-icon {

  width: 45px;

  height: 45px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background-color: rgba(255,255,255,0.08);

  color: var(--gold);

  font-size: 20px;

}


.help-content {

  display: flex;

  flex-direction: column;

  gap: 2px;

}


.help-content span {

  color: #d8e1dc;

  font-size: 11px;

}


.help-content a {

  color: var(--gold);

  font-size: 12px;

  font-weight: 700;

}


.help-content a:hover {

  color: var(--white);

}


.help-location {

  display: flex;

  align-items: center;

  gap: 10px;

  padding-left: 20px;

  border-left: 1px solid rgba(255,255,255,0.18);

}


.help-location > i {

  color: var(--gold);

}


.help-location div {

  display: flex;

  flex-direction: column;

}


.help-location strong {

  color: var(--white);

  font-size: 11px;

}


.help-location span {

  color: #bfcac3;

  font-size: 10px;

}


/* =========================================================
   37. FOOTER
   ========================================================= */

.site-footer {

  background-color: #172016;

  color: var(--white);

}


.footer-grid {

  display: grid;

  grid-template-columns:
    1.4fr
    1fr
    1.4fr
    1.2fr;

  gap: 45px;

  padding:
    60px
    0
    50px;

}


/* Footer logo — keep the supplied logo in its original gold colour */
.footer-brand img {
  width: 100px;
  height: auto;
  margin-bottom: 16px;

  /* Approved Melaki gold footer logo */
  filter:
    brightness(0)
    saturate(100%)
    invert(72%)
    sepia(34%)
    saturate(750%)
    hue-rotate(2deg)
    brightness(90%)
    contrast(88%);
}


.footer-brand p {

  color: #cdd8d1;

  font-size: 11px;

  line-height: 1.8;

}


.footer-socials {

  display: flex;

  gap: 9px;

  margin-top: 20px;

}


.footer-socials a {

  width: 32px;

  height: 32px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid rgba(255,255,255,0.2);

  border-radius: 50%;

  color: var(--gold);

  font-size: 12px;

  transition:
    background-color 0.25s ease,
    color 0.25s ease;

}


.footer-socials a:hover {

  background-color: var(--gold);

  color: var(--green);

}


.footer-column {

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 10px;

}


.footer-column h3 {

  color: var(--gold);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 21px;

  margin-bottom: 8px;

}


.footer-column a,
.footer-column p {

  color: #cdd8d1;

  font-size: 11px;

  line-height: 1.6;

}


.footer-column a:hover {

  color: var(--gold);

}


.footer-contact a,
.footer-contact p {

  display: flex;

  align-items: flex-start;

  gap: 8px;

}


.footer-contact i {

  color: var(--gold);

  margin-top: 3px;

}


.footer-apply-link {

  display: inline-flex;

  align-items: center;

  margin-top: 5px;

  color: var(--gold) !important;

  font-weight: 700;

}


/* =========================================================
   38. FOOTER BOTTOM
   ========================================================= */

.footer-bottom {

  border-top: 1px solid rgba(255,255,255,0.12);

}


.footer-bottom-content {

  min-height: 55px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

}


.footer-bottom p {

  color: #aebbb3;

  font-size: 10px;

}


.footer-bottom strong {

  color: var(--gold);

}


/* =========================================================
   39. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {


  .header-content {

    grid-template-columns:
      140px
      1fr
      140px;

  }


  .main-navigation {

    gap: 25px;

  }


  .main-navigation a {

    font-size: 12px;

  }


  .nav-apply-button {

    padding:
      10px
      14px;

  }


  .apply-hero-content {

    grid-template-columns:
      1fr
      0.9fr;

  }


  .apply-hero-text {

    padding-right: 35px;

  }


  .apply-hero-text h1 {

    font-size: 52px;

  }


  .footer-grid {

    grid-template-columns:
      repeat(2, 1fr);

  }

}


/* =========================================================
   40. RESPONSIVE — MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 800px) {


  .top-bar {

    min-height: 34px;

  }


  .top-bar-content {

    justify-content: center;

  }


  .top-motto {

    display: none;

  }


  .header-content {

    display: flex;

    justify-content: space-between;

  }


  .main-navigation {

    position: absolute;

    top: 82px;

    left: 0;

    right: 0;

    display: none;

    flex-direction: column;

    align-items: center;

    gap: 0;

    padding:
      15px
      20px
      20px;

    background-color: var(--white);

    border-bottom: 1px solid var(--border);

    box-shadow:
      0 12px 25px rgba(0,0,0,0.08);

  }


  .main-navigation.is-open {

    display: flex;

  }


  .main-navigation a {

    width: 100%;

    padding: 13px;

    text-align: center;

  }


  .main-navigation a::after {

    display: none;

  }


  .header-actions {

    margin-left: auto;

    margin-right: 12px;

  }


  .menu-toggle {

    display: flex;

  }


  .apply-hero-content {

    grid-template-columns: 1fr;

  }


  .apply-hero-text {

    padding:
      55px
      0
      50px;

  }


  .apply-hero-image {

    min-height: 300px;

    border-left: none;

    border-top: 3px solid var(--gold);

  }


  .application-section {

    padding:
      50px
      0
      65px;

  }


  .application-card {

    padding: 25px;

  }


  .steps-grid {

    grid-template-columns: 1fr;

  }


  .footer-grid {

    gap: 30px;

  }

}


/* =========================================================
   41. RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {


  .container {

    width:
      min(
        calc(100% - 28px),
        var(--container-width)
      );

  }


  .top-contact {

    font-size: 10px;

    gap: 8px;

  }


  .top-contact .top-divider {

    display: none;

  }


  .top-contact a:last-child {

    display: none;

  }


  .main-header {

    height: 72px;

  }


  .site-logo img {

    width: 88px;

  }


  .main-navigation {

    top: 72px;

  }


  .header-actions {

    margin-right: 7px;

  }


  .nav-apply-button {

    padding:
      9px
      12px;

    font-size: 10px;

  }


  .apply-hero-text {

    padding:
      48px
      0
      42px;

  }


  .apply-hero-text h1 {

    font-size: 46px;

  }


  .apply-hero-text p {

    font-size: 12px;

  }


  .apply-hero-image {

    min-height: 250px;

  }


  .application-section {

    padding:
      40px
      0
      55px;

  }


  .application-card {

    padding: 20px;

    border-radius: 6px;

  }


  .card-heading {

    gap: 12px;

    margin-bottom: 23px;

  }


  .step-number {

    width: 36px;

    height: 36px;

    font-size: 10px;

  }


  .card-heading h2 {

    font-size: 27px;

  }


  .form-grid {

    grid-template-columns: 1fr;

    gap: 18px;

  }


  .full-width {

    grid-column: auto;

  }


  .course-fee-display {
    width: 100%;
    padding: 16px;
  }


  .fee-divider {
    width: 100%;
    height: 1px;
    margin: 7px 0;
  }


  .course-fee-display strong {
    font-size: 23px;
  }

  .course-fee-display > div:not(.fee-divider) {
    gap: 12px;
    padding: 9px 0;
  }

  .course-fee-display span {
    font-size: 9px;
  }

  #courseDiscount {
    font-size: 18px !important;
  }

  #finalCourseFee {
    font-size: 25px !important;
  }

  #minimumPayment {
    font-size: 20px !important;
  }


  .upcoming-intake-display {

    padding: 17px;

    gap: 13px;

  }


  .intake-icon {

    width: 45px;

    height: 45px;

    font-size: 17px;

  }


  .intake-information > strong {

    font-size: 23px;

  }


  .class-time-grid {

    grid-template-columns: 1fr;

  }


  .payment-inputs {

    grid-template-columns: 1fr;

  }


  .payment-method {

    align-items: flex-start;

    flex-direction: column;

    gap: 8px;

  }


  .payment-number strong {

    font-size: 17px;

  }


  .submit-area {

    justify-content: stretch;

  }


  .submit-application-button {

    width: 100%;

  }


  .review-section {

    padding: 25px 20px;

  }


  .review-grid {

    grid-template-columns: 1fr;

  }


  .review-actions {

    flex-direction: column-reverse;

    align-items: stretch;

  }


  .edit-details-button,
  .confirm-button {

    width: 100%;

  }


  .application-help {

    grid-template-columns: auto 1fr;

  }


  .help-location {

    grid-column: 1 / -1;

    padding-left: 0;

    padding-top: 15px;

    border-left: none;

    border-top: 1px solid rgba(255,255,255,0.18);

  }


  .footer-grid {

    grid-template-columns: 1fr;

    gap: 35px;

    padding:
      45px
      0
      35px;

  }


  .footer-bottom-content {

    min-height: auto;

    padding:
      18px
      0;

    flex-direction: column;

    text-align: center;

  }

}


/* =========================================================
   42. VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 400px) {


  .header-actions {

    display: none;

  }


  .apply-hero-text h1 {

    font-size: 40px;

  }


  .apply-hero-image {

    min-height: 220px;

  }


  .application-card {

    padding: 17px;

  }


  .card-heading h2 {

    font-size: 24px;

  }


  .class-option-content {

    padding:
      13px;

  }


  .class-icon {

    width: 38px;

    height: 38px;

  }


  .review-item {

    flex-direction: column;

    gap: 3px;

  }


  .review-item strong {

    text-align: left;

  }

}

/* =========================================================
   APPLY PAGE — CONDITIONAL ELEMENT SAFETY
   ========================================================= */

[hidden] {
  display: none !important;
}

.application-type-option input:focus-visible
+ .application-type-option-content {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.combination-course-section select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
/* =========================================================
   FOOTER LOGO — GOLD
   ========================================================= */

.footer-brand img {
  width: 100px;
  margin-bottom: 16px;

  /* Converts the logo to the Melaki gold colour */
  filter:
    brightness(0)
    saturate(100%)
    invert(72%)
    sepia(34%)
    saturate(750%)
    hue-rotate(2deg)
    brightness(90%)
    contrast(88%);
}
