/* ============================================================
   Apply Now form (register / login / OTP) + privacy notice
   Taken from management-admission2/css/style.css, scoped so it
   does not clash with bootstrap 3 / style-1.css on this page.
   ============================================================ */
.hero-form,
.privacy-modal {
  --navy: #161a55;
  --red: #d3202a;
  --red-dark: #b0141d;
  --yellow: #f6b81a;
  --text: #2b2f45;
  --muted: #646a82;
  --white: #fff;
  --ease: cubic-bezier(.22, .9, .3, 1);
}

.hero-form *,
.privacy-modal * { box-sizing: border-box; font-family: "Poppins", system-ui, sans-serif; }

.slider-bottom-form-box-inner { background: transparent !important; }

.hero-form {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #e3e6f0;
  border-radius: 12px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  color: var(--text);
  text-align: left;
}

.hero-form h3 {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 8px;
}

.hero-form h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
  transform: translateX(-50%);
}

.hero-form form { margin: 0; }

.hero-form input:not([type="checkbox"]),
.hero-form select {
  display: block;
  width: 100%;
  height: 38px;
  border: 1px solid #cfd3e3;
  border-radius: 6px;
  padding: 0 10px;
  margin: 0 0 9px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  box-shadow: none;
  transition: border-color .25s, box-shadow .25s;
}

.hero-form input:focus,
.hero-form select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(246, 184, 26, .3); }
.hero-form .invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(211, 32, 42, .25) !important; }

.hero-form .phone-row { display: flex; gap: 8px; }
.hero-form .phone-row .isd { width: 58px; flex: none; text-align: center; background: #eef0f7; }
.hero-form .select-row { display: flex; gap: 8px; }
.hero-form .select-row select { min-width: 0; }

/* buttons */
.hero-form .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.hero-form .btn:hover { transform: translateY(-2px); }
.hero-form .btn-red { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(211, 32, 42, .35); }
.hero-form .btn-red:hover { background: var(--red-dark); color: var(--white); }
.hero-form .btn-block { width: 100%; }
.hero-form .btn[disabled] { opacity: .7; cursor: wait; }

/* consent */
.hero-form .consent-block { margin: 2px 0 12px; }
.hero-form .consent-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .72rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--text);
  cursor: pointer;
}
.hero-form .consent-row input { width: 14px; height: 14px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.hero-form .consent-row a,
.hero-form .consent-note a { color: var(--red); font-weight: 600; text-decoration: underline; }
.hero-form .consent-row b { color: var(--red); }
.hero-form .consent-tag { font-style: normal; font-size: .62rem; font-weight: 600; padding: 1px 7px; border-radius: 20px; background: #eceef6; color: var(--muted); white-space: nowrap; }
.hero-form .consent-note { text-align: center; font-size: .7rem; color: var(--muted); margin: 10px 0 0; }

.hero-form .form-msg { font-size: .78rem; text-align: center; margin: 8px 0 0; min-height: 1em; }
.hero-form .form-msg.ok { color: #1a8a47; }
.hero-form .form-msg.err { color: var(--red); }

/* login / OTP panels */
.hero-form .form-panel.hidden,
.hero-form #otpVerifyRow.hidden,
.hero-form .otp-sent-msg.hidden { display: none !important; }
.hero-form label:not(.consent-row) { display: block; font-size: .78rem; font-weight: 500; margin: 0 0 5px; color: var(--navy); }
.hero-form .form-sub { font-size: .78rem; line-height: 1.5; text-align: center; color: var(--muted); margin: 0 0 12px; }
.hero-form .password-field { position: relative; margin: 0 0 9px; }
.hero-form .password-field input { padding-right: 44px; margin: 0 !important; }
.hero-form .pw-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 30px; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer;
}
.hero-form .pw-toggle:hover { background: #eef0f7; }
.hero-form .pw-toggle:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; }
.hero-form .otp-sent-msg { font-size: .78rem; text-align: center; color: #1a8a47; margin: 8px 0 0; }
.hero-form .form-link { display: block; text-align: center; margin-top: 10px; font-size: .8rem; font-weight: 600; color: var(--navy); text-decoration: underline; }
.hero-form .form-link:hover { color: var(--red); }

/* privacy notice modal */
.privacy-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 18, 64, .8); }
.privacy-modal[hidden] { display: none; }
.privacy-box { background: var(--white); width: 100%; max-width: 720px; max-height: 88vh; overflow-y: auto; border-radius: 14px; padding: 24px; color: var(--text); text-align: left; }
.privacy-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.privacy-head h2 { font-size: 1.3rem; font-weight: 600; margin: 0; color: var(--navy); }
.privacy-close { border: 0; background: #eef0f7; border-radius: 8px; padding: 8px 12px; font-size: 14px; cursor: pointer; }
.privacy-box h3 { font-size: .95rem; font-weight: 600; margin: 20px 0 4px; color: var(--navy); }
.privacy-box ul { list-style: disc; padding-left: 22px; margin: 6px 0; }
.privacy-box p,
.privacy-box li { font-size: .82rem; line-height: 1.65; color: var(--muted); margin: 0 0 6px; }
.privacy-box .btn { display: block; width: 100%; border: 0; border-radius: 8px; padding: 12px; font-size: 1rem; font-weight: 600; background: var(--red); color: var(--white); cursor: pointer; }

@media (max-width: 480px) {
  .hero-form { padding: 18px 14px 14px; }
  .hero-form .consent-tag { white-space: normal; }
}
