/* ============================================================
   21K School – GCC Enquiry Form  |  gcc_enquire_now.css
   Option B – Light card on existing dark navy page background
   No Google Fonts. No section row headings. Mobile responsive.
   v2 – Tighter spacing + crystal-clear font rendering
   ============================================================ */

/* ── Brand tokens ── */
:root {
  --k-navy:    #003872;
  --k-navy-dk: #002a55;
  --k-gold:    #FFBB00;
  --k-blue:    #0082FF;
  --k-cyan:    #00C2E0;
  --k-pink:    #FDB9CF;
  --k-lblue:   #E1EDFF;
  --k-muted:   #7A96B8;
  --k-border:  #E2E8F2;
  --k-surf:    #F7F9FC;
  --k-ok:      #6DCFA0;
  --k-ok-bg:   #EDFAF4;
  --k-ok-br:   #B2EDD1;
  --k-err:     #d32f2f;
  --k-ih:      44px;
  --k-r:       8px;
  --k-rc:      14px;
}

/* ── Animations ── */
@keyframes k-up  { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes k-shk { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-4px)} 40%,80%{transform:translateX(4px)} }
@keyframes k-bar { 0%{width:20%;margin-left:0} 50%{width:60%;margin-left:20%} 100%{width:20%;margin-left:80%} }

/* ============================================================
   CRYSTAL-CLEAR FONT RENDERING – applied globally on card
   ============================================================ */
.school-box,
.school-box * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-smooth: always;
}

/* ============================================================
   CARD  .school-box
   ============================================================ */
.school-box {
  position: relative;
  background: #F7F9FC;
  border-radius: var(--k-rc);
  overflow: hidden;
  box-shadow:
    0 2px 0 0 #003872,
    0 16px 48px rgba(0,56,114,.18),
    0 2px 8px  rgba(0,56,114,.10);
  animation: k-up .35s ease both;
}

/* Top navy-to-cyan accent bar */
.school-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #003872 0%, #00C2E0 60%, #FFBB00 100%);
  pointer-events: none;
  z-index: 2;
}

.school-box::after {
  content: none;
  display: none;
}

/* Form padding */
#enqForm {
  position: relative;
  z-index: 1;
  padding: 20px 20px 24px;
}

/* ============================================================
   STEPS
   ============================================================ */
.step        { display: none; position: relative; }
.step.active { display: block; animation: k-up .3s ease both; }

/* ============================================================
   KILL ALL PSEUDO SECTION HEADINGS
   ============================================================ */
#step1::before, #step1::after,
#step2::before, #step2::after,
#step1 .row::before, #step1 .row::after,
#step2 .row::before, #step2 .row::after,
#step2 .row.g-2::before, #step2 .row.g-2::after,
#step2 .row.g-2.mt-2::before, #step2 .row.g-2.mt-2::after,
#step2 div.row::before, #step2 div.row::after {
  content: none !important;
  display: none !important;
}

/* ============================================================
   LABELS  .school-label
   ============================================================ */
.school-label,
label.school-label,
.school-label.wp_label,
.school-label.mt-2 {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #7A96B8;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 5px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

.school-label.mt-2 { margin-top: 6px !important; }

/* OTP label */
#otpTypeLabel {
  font-size: 12px;
  font-weight: 400;
  color: var(--k-muted);
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  display: block;
  margin-bottom: 8px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Hint text */
.chs_opt {
  font-size: 11px;
  color: var(--k-muted);
  text-align: center;
  margin: 6px 0 2px;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   FIELD CARDS – white surface inside the off-white card
   ============================================================ */
.school-box #step1,
.school-box #step2 {
  background: #fff;
  border-radius: 10px;
  padding: 12px;           /* was 16px */
}

/* ============================================================
   INPUTS  .form-control
   ============================================================ */
.form-control {
  display: block;
  width: 100%;
  height: var(--k-ih);
  padding: 0 12px;
  font-size: 14px;                   /* was 13.5px – snaps to clean pixel */
  font-weight: 500;                  /* slightly heavier = crisper at small sizes */
  color: #002a55;                    /* deeper than --k-navy for max contrast */
  background: var(--k-surf);
  border: 1px solid var(--k-border);
  border-radius: var(--k-r);
  outline: none;
  box-shadow: none;
  appearance: none;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-control::placeholder {
  color: #a0b4cc;
  font-weight: 400;
  opacity: 1;
}
.form-control:focus {
  border-color: var(--k-navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,56,114,.07);
}
.form-control[readonly],
.form-control.ro {
  background: #EEF3FA;
  color: var(--k-muted);
  cursor: default;
}

/* ============================================================
   SELECTS  .form-select
   ============================================================ */
.form-select {
  display: block;
  width: 100%;
  height: var(--k-ih);
  padding: 0 30px 0 12px;
  font-size: 14px;                   /* was 13.5px */
  font-weight: 500;
  color: #002a55;
  background: var(--k-surf);
  border: 1px solid var(--k-border);
  border-radius: var(--k-r);
  outline: none;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  transition: border-color .15s, box-shadow .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%237A96B8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 10px 6px;
}
.form-select:focus {
  border-color: var(--k-navy);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0,56,114,.07);
}

/* ============================================================
   intlTelInput
   ============================================================ */
.iti                        { width: 100% !important; display: block !important; }
.iti__tel-input {
  width: 100% !important;
  height: var(--k-ih) !important;
  padding-left: 95px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
  font-size: 14px !important;        /* was 13.5px */
  font-weight: 500 !important;
  color: #002a55 !important;
  background: var(--k-surf) !important;
  border: 1px solid var(--k-border) !important;
  border-radius: var(--k-r) !important;
  outline: none !important;
  text-align: left !important;
  -webkit-font-smoothing: antialiased !important;
  transition: border-color .15s !important;
}
.iti__tel-input::placeholder {
  color: #a0b4cc;
  font-weight: 400;
  opacity: 1;
}
.iti__tel-input:focus {
  border-color: var(--k-navy) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(0,56,114,.07) !important;
}
.iti--separate-dial-code .iti__selected-flag {
  width: 88px !important;
  background: #EEF3FA !important;
  border-right: 1px solid var(--k-border) !important;
  border-radius: var(--k-r) 0 0 var(--k-r) !important;
}
.iti__selected-dial-code    { font-size: 12.5px !important; -webkit-font-smoothing: antialiased !important; }

/* ============================================================
   ERROR MESSAGES
   ============================================================ */
.error-msg,
#emailError,
#phoneError,
#otpMsg,
#pinError,
#consentError {
  display: block;
  font-size: 11px;
  color: var(--k-err);
  min-height: 15px;
  margin: 3px 0 0;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   GRID – Bootstrap supplement + mobile stack
   ============================================================ */
.row                     { display: flex; flex-wrap: wrap; }
.g-2                     { gap: 10px; }
.col-6                   { flex: 1 1 calc(50% - 5px); min-width: 0; }
.col-12                  { flex: 0 0 100%; min-width: 0; }
.mt-1                    { margin-top:  4px !important; }
.mt-2                    { margin-top:  6px !important; }   /* was 10px */
.mt-3                    { margin-top:  8px !important; }   /* was 14px */
.w-100                   { width: 100% !important; }
.text-center             { text-align: center; }
.d-flex                  { display: flex !important; }
.justify-content-center  { justify-content: center !important; }
.gap-2                   { gap: 8px !important; }
.small                   { font-size: 12px; }
.text-muted              { color: var(--k-muted); }
.d-block                 { display: block !important; }

/* Mobile: stack 2-col rows to single column below 400px */
@media (max-width: 400px) {
  .col-6 { flex: 0 0 100%; }
  .row.g-2 { gap: 8px; }
}

/* ============================================================
   OTP SEND BUTTON  .otp-btn.email
   ============================================================ */
#step1 .row.g-2.mt-1 {
  display: block;
  margin-top: 8px;                   /* was 12px */
}
#step1 .row.g-2.mt-1 > .col-12 {
  width: 100% !important;
  margin: 0 !important;
}

.otp-btn.email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;                   /* was 13.5px */
  font-weight: 700;
  color: #fff;
  background: var(--k-navy);
  border: none;
  border-radius: var(--k-r);
  cursor: pointer;
  letter-spacing: .4px;              /* was .2px */
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  transition: background .18s, transform .12s;
}
.otp-btn.email:hover:not(:disabled),
.otp-btn.email.active-otp {
  background: var(--k-navy-dk);
  color: #fff;
  transform: translateY(-1px);
}
.otp-btn.email:active:not(:disabled) { transform: scale(.98); }
.otp-btn.email:disabled              { opacity: .5; cursor: not-allowed; }
.otp-btn.email .bi                   { font-size: 14px; line-height: 1; }

/* ============================================================
   OTP VERIFY BOX
   ============================================================ */
#otpVerifyBox {
  margin-top: 8px;                   /* was 12px */
  padding-top: 10px;                 /* was 14px */
  border-top: 1px solid #EEF3FA;
}

.otp-box {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 0;
}

.otpDigit {
  width: 40px;
  height: 46px;
  text-align: center;
  font-size: 19px;
  font-weight: 800;                  /* was 700 – heavier = crisper */
  color: #002a55;                    /* deeper navy */
  background: var(--k-surf);
  border: 1.5px solid var(--k-border);
  border-radius: 7px;
  outline: none;
  caret-color: var(--k-navy);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  transition: border-color .15s, background .15s;
}
.otpDigit:focus     { border-color: var(--k-navy); background: #fff; }
.otpDigit.filled    { border-color: var(--k-navy); background: #EEF5FF; }
.otpDigit.verifying { border-color: var(--k-cyan); }
.otp-shake          { animation: k-shk .4s ease; }

.otp-counter {
  font-size: 11.5px;
  color: var(--k-muted);
  text-align: center;
  margin-top: 9px;
  min-height: 17px;
  -webkit-font-smoothing: antialiased;
}

.otp-resend            { text-align: center; font-size: 12px; color: var(--k-muted); margin-top: 7px; -webkit-font-smoothing: antialiased; }
.otp-resend.hidden     { display: none; }
.otp-resend button     { background: none; border: none; color: var(--k-blue); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; -webkit-font-smoothing: antialiased; }
.otp-resend button:hover { color: var(--k-navy); }

/* ============================================================
   OTP SUCCESS BOX  #otpSuccessMsg
   ============================================================ */
.otp-success-box {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: var(--k-ok-bg);
  border: 1px solid var(--k-ok-br);
  border-radius: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: #2ea370;
  line-height: 1.5;
  animation: k-up .3s ease;
  -webkit-font-smoothing: antialiased;
}
.otp-success-box.active { display: flex; }
.otp-success-box strong {
  font-weight: 700;
  font-size: 12.5px;
  color: #1a6e44;
  display: block;
  margin-bottom: 1px;
}

/* ============================================================
   STEP 2 – zero out ALL row ::before/::after
   ============================================================ */
#step2 [class*="row"]::before,
#step2 [class*="row"]::after,
#step2 .row::before,
#step2 .row::after,
#step2 .g-2::before,
#step2 .g-2::after {
  content: none !important;
  display: none !important;
  font-size: 0 !important;
  height: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  visibility: hidden !important;
}

/* Step 2 row spacing */
#step2 .row.g-2           { margin-top: 8px; }  /* was 10px */
#step2 .row.g-2:first-child { margin-top: 0; }

/* ============================================================
   SUBMIT BUTTON  .btn.btn-cta / #submitBtn
   ============================================================ */
.btn.btn-cta,
button#submitBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--k-navy);
  border: none;
  border-radius: var(--k-r);
  cursor: pointer;
  letter-spacing: .4px;              /* was .2px */
  box-sizing: border-box;
  text-decoration: none;
  margin-top: 12px;                  /* was 16px */
  -webkit-font-smoothing: antialiased;
  transition: background .18s, transform .12s;
}
.btn.btn-cta:hover:not(:disabled),
button#submitBtn:hover:not(:disabled) {
  background: var(--k-navy-dk);
  color: #fff;
  transform: translateY(-1px);
}
.btn.btn-cta:active:not(:disabled),
button#submitBtn:active:not(:disabled) { transform: scale(.98); }
.btn.btn-cta:disabled,
button#submitBtn:disabled              { opacity: .5; cursor: not-allowed; }

/* ============================================================
   CONSENT  .form-check
   ============================================================ */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;                   /* was 12px */
}
.form-check-input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 4px;
  border: 1.5px solid #BDD0E6;
  background: #fff;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background .15s, border-color .15s;
}
.form-check-input[type="checkbox"]:checked {
  background: var(--k-navy);
  border-color: var(--k-navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M1.5 5L4 7.5L8.5 2' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px;
}
.form-check-label {
  font-size: 11px;
  color: #5a7a9a;
  line-height: 1.5;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}
.form-check-label a       { color: var(--k-blue); text-decoration: underline; }
.form-check-label a:hover { color: var(--k-navy); }

/* ============================================================
   PROGRESS BAR  #submitProgress
   ============================================================ */
.progress {
  height: 4px;
  background: #E4EEF8;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar,
.progress-bar-striped,
.progress-bar-animated {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--k-cyan), var(--k-navy));
  border-radius: 99px;
  font-size: 0;
  animation: k-bar 1.6s ease infinite;
}

/* ============================================================
   MOBILE RESPONSIVE – full audit
   ============================================================ */

/* 480px – tablet/large phone */
@media (max-width: 480px) {
  #enqForm              { padding: 16px 16px 20px; }
  .school-box #step1,
  .school-box #step2    { padding: 12px 10px; }
  .otpDigit             { width: 36px; height: 42px; font-size: 17px; }
  .otp-box              { gap: 5px; }
  .btn.btn-cta,
  button#submitBtn      { height: 44px; font-size: 13.5px; }
  .otp-btn.email        { height: 42px; font-size: 13px; }
}

/* 390px – standard iPhone */
@media (max-width: 390px) {
  #enqForm              { padding: 14px 12px 18px; }
  .school-box #step1,
  .school-box #step2    { padding: 10px 8px; border-radius: 8px; }
  .col-6                { flex: 0 0 100%; }
  .row.g-2              { gap: 8px; }
  .form-control,
  .form-select,
  .iti__tel-input       { height: 42px !important; font-size: 13px !important; }
  .otpDigit             { width: 32px; height: 40px; font-size: 16px; }
  .otp-box              { gap: 4px; }
  .btn.btn-cta,
  button#submitBtn,
  .otp-btn.email        { height: 42px; font-size: 13px; }
}

/* 360px – Android small */
@media (max-width: 360px) {
  #enqForm              { padding: 12px 10px 16px; }
  .school-box #step1,
  .school-box #step2    { padding: 10px 8px; }
  .otpDigit             { width: 28px; height: 36px; font-size: 15px; border-radius: 5px; }
  .otp-box              { gap: 3px; }
  .form-control,
  .form-select          { font-size: 12.5px !important; }
}
