/* Mahapragya Gurukul — site styles (v11) */
:root {
  --ink: #0f1c14;
  --ink-soft: #1d3a28;
  --ink-mute: #5a6b60;
  --cream: #f6f1e3;
  --paper: #ffffff;
  --gold: #b9914e;
  --gold-soft: #d6b97f;
  --green: #2d5a3d;
  --green-deep: #1d3a28;
  --green-tint: rgba(45, 90, 61, 0.08);
  --line: rgba(15, 28, 20, 0.12);
  --line-strong: rgba(246, 241, 227, 0.55);
  --shadow-sm: 0 1px 2px rgba(15, 28, 20, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 28, 20, 0.08);
  --field-bg: #faf8f1;
  --field-bg-soft: #f3efe2;
}
* , *::before , *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-image:
    linear-gradient(180deg, rgba(8,18,12,0.42) 0%, rgba(8,18,12,0.58) 55%, rgba(8,18,12,0.82) 100%),
    url('/campus-hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 28px 56px;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 80% 110%, rgba(185, 145, 78, 0.16), transparent 70%),
              radial-gradient(700px 400px at 0% 0%, rgba(45, 90, 61, 0.22), transparent 65%);
}
.hero__inner {
  position: relative; max-width: 980px; width: 100%; text-align: center; z-index: 1;
  animation: rise 900ms cubic-bezier(.2,.7,.2,1) both;
}
.hero__logo {
  width: 170px; height: 170px; margin: 0 auto 14px; display: block; object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.45));
}
.wordmark { text-align: center; margin: 0 0 22px; }
.wordmark__name {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1.15;
}
.wordmark__sub {
  margin: 8px 0 0;
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.hero__rule { width: 56px; height: 1px; background: var(--gold-soft); margin: 22px auto 26px; opacity: 0.85; }
.hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
  margin: 0 0 28px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
.hero__title em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.hero__intro {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1rem, 1.18vw, 1.08rem);
  line-height: 1.78;
  max-width: 720px;
  margin: 0 auto 18px;
  color: rgba(255,255,255,0.92);
}
.hero__intro + .hero__intro { color: rgba(255,255,255,0.92); }
.hero__cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

/* ===== BUTTONS ===== */
.btn {
  --bg: transparent; --fg: #fff; --bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 0.86rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  cursor: pointer; border-radius: 0;
  transition: background 380ms ease, color 380ms ease, border-color 380ms ease, transform 380ms ease, box-shadow 380ms ease;
}
.btn .btn__arrow { display: inline-block; width: 18px; transition: transform 380ms cubic-bezier(.2,.7,.2,1); }
.btn:hover .btn__arrow { transform: translateX(6px); }
.btn--cream { --bg: var(--cream); --fg: var(--green-deep); --bd: var(--cream); }
.btn--cream:hover { --bg: var(--gold-soft); --bd: var(--gold-soft); box-shadow: 0 10px 30px rgba(0,0,0,0.25); transform: translateY(-2px); }
.btn--ghost { --bg: rgba(255,255,255,0.04); --fg: #fff; --bd: rgba(255,255,255,0.6); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: rgba(255,255,255,0.14); --bd: #fff; transform: translateY(-2px); }
.btn--solid { --bg: var(--green-deep); --fg: var(--cream); --bd: var(--green-deep); }
.btn--solid:hover { --bg: #0f2a1c; --bd: #0f2a1c; box-shadow: 0 12px 28px rgba(15, 42, 28, 0.25); transform: translateY(-2px); }
.btn--link {
  background: transparent; border: none; color: var(--ink-soft);
  padding: 6px 0; letter-spacing: 0.2em; border-bottom: 1px solid var(--ink-soft); border-radius: 0;
}
.btn--link:hover { color: var(--gold); border-color: var(--gold); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ===== PAGE LAYOUT ===== */
.page {
  min-height: 100vh;
  padding: 22px 28px 80px;
  background: linear-gradient(180deg, #f7f8fa 0%, #eceef2 100%);
  color: var(--ink);
}
.page__wrap { max-width: 1180px; margin: 0 auto; }
.page__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
  margin-bottom: 18px;
  transition: color 240ms ease, gap 240ms ease;
}
.page__back:hover { color: var(--gold); gap: 12px; }
.page__brand {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 0 0 24px; text-align: center;
}
.page__brand img { width: 110px; height: 110px; object-fit: contain; }
.page__brand-text { line-height: 1.25; }
.page__brand-name {
  display: block;
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.page__brand-sub {
  display: block;
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}
.page__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  margin: 8px 0 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-align: center;
}
.page__title em { color: var(--gold); font-style: italic; }
.divider { width: 56px; height: 1px; background: var(--gold); margin: 0 auto 32px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }

/* ===== CARD ===== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

/* ===== FORM (sectioned + floating labels) ===== */
.form { display: flex; flex-direction: column; gap: 38px; }
.form__section { display: flex; flex-direction: column; gap: 22px; }
.form__section-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px dashed rgba(185, 145, 78, 0.36);
}
.form__section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-tint); color: var(--green-deep);
  font-family: 'Poppins', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em;
}
.form__section-title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem; font-weight: 600;
  color: var(--green-deep);
  letter-spacing: -0.005em;
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; align-items: start; }
.form__grid--single { grid-template-columns: 1fr; }

.field { position: relative; display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }

/* Inputs / selects / textareas */
.field > input:not([type="file"]),
.field > select,
.field > textarea {
  width: 100%;
  padding: 20px 14px 7px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  color: var(--ink);
  font-family: inherit; font-size: 0.97rem;
  outline: none;
  border-radius: 10px;
  transition: border-color 200ms, background 200ms, box-shadow 200ms;
}
.field > textarea { resize: vertical; min-height: 96px; max-height: 260px; padding-top: 24px; }
.field > input:not([type="file"]):focus,
.field > select:focus,
.field > textarea:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(45, 90, 61, 0.10);
}
.field > input:not([type="file"]):hover,
.field > select:hover,
.field > textarea:hover { border-color: rgba(45, 90, 61, 0.40); }
.field > input::placeholder, .field > textarea::placeholder { color: transparent; }
.field > input[aria-invalid="true"],
.field > select[aria-invalid="true"],
.field > textarea[aria-invalid="true"] {
  border-color: #8a2a2a; background: #fff7f7;
  box-shadow: 0 0 0 4px rgba(138,42,42,0.08);
}

/* Floating label (excludes the CV upload zone label) */
.field > label:not(.upload__zone) {
  position: absolute; top: 15px; left: 14px;
  max-width: calc(100% - 28px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 400;
  color: var(--ink-mute);
  pointer-events: none; background: transparent;
  transition: top 180ms, font-size 180ms, color 180ms, letter-spacing 180ms;
}
.field > label:not(.upload__zone) .req { color: var(--gold); margin-left: 2px; }
.field > label:not(.upload__zone) .opt { color: var(--ink-mute); font-weight: 400; font-size: 0.78rem; }
.field > input:focus + label:not(.upload__zone),
.field > input:not(:placeholder-shown) + label:not(.upload__zone),
.field > textarea:focus + label:not(.upload__zone),
.field > textarea:not(:placeholder-shown) + label:not(.upload__zone),
.field > select:focus + label:not(.upload__zone),
.field.is-filled > label:not(.upload__zone) {
  top: 5px;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
}
.field > input[aria-invalid="true"] + label:not(.upload__zone),
.field > select[aria-invalid="true"] + label:not(.upload__zone),
.field > textarea[aria-invalid="true"] + label:not(.upload__zone) { color: #8a2a2a; }

/* Select chevron + empty-state */
.field > select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231d3a28' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 38px;
  cursor: pointer;
}
.field > select:required:invalid { color: transparent; }
.field > select option { color: var(--ink); }

/* "Other" follow-up textbox below select */
.field__other {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  border-radius: 10px;
  font-family: inherit; font-size: 0.95rem;
  color: var(--ink); outline: none;
  transition: border-color 200ms, box-shadow 200ms, background 200ms;
}
.field__other:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(45,90,61,0.10); }

/* Phone input with prefix + floating label */
.phone-input {
  display: flex; align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--field-bg);
  transition: border-color 200ms, background 200ms, box-shadow 200ms;
}
.phone-input:focus-within {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(45, 90, 61, 0.10);
}
.phone-input[aria-invalid="true"] { border-color: #8a2a2a; background: #fff7f7; box-shadow: 0 0 0 4px rgba(138,42,42,0.08); }
.phone-input__prefix {
  padding: 16px 14px;
  background: var(--green-tint);
  color: var(--green-deep);
  font-weight: 600; font-size: 0.95rem;
  border-right: 1px solid var(--line);
  display: inline-flex; align-items: center;
}
.phone-input__field { position: relative; flex: 1; min-width: 0; }
.phone-input__field input {
  border: none !important; background: transparent !important; box-shadow: none !important;
  width: 100%;
  padding: 20px 14px 7px 12px !important;
  font-family: inherit; font-size: 0.97rem;
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
  outline: none; color: var(--ink);
}
.phone-input__field input::placeholder { color: transparent; }
.phone-input__field label {
  position: absolute; top: 15px; left: 12px;
  max-width: calc(100% - 24px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 0.95rem; color: var(--ink-mute);
  pointer-events: none;
  transition: top 180ms, font-size 180ms, color 180ms, letter-spacing 180ms;
}
.phone-input__field label .req { color: var(--gold); margin-left: 2px; }
.phone-input__field input:focus + label,
.phone-input__field input:not(:placeholder-shown) + label {
  top: 5px; font-size: 0.64rem;
  letter-spacing: 0.12em; color: var(--green);
  font-weight: 600; text-transform: uppercase;
}

/* File upload (CV) */
.upload__zone {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  padding: 30px 18px;
  border: 1.5px dashed rgba(45, 90, 61, 0.40);
  border-radius: 12px;
  background: rgba(45, 90, 61, 0.05);
  color: var(--ink-soft);
  cursor: pointer; text-align: center;
  transition: background 200ms, border-color 200ms;
}
.upload__zone:hover { background: rgba(45, 90, 61, 0.09); border-color: var(--green); }
.upload__zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__zone svg { width: 26px; height: 26px; color: var(--green); }
.upload__zone-title { font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; }
.upload__hint { font-size: 0.8rem; color: var(--ink-mute); }
.upload__file {
  margin-top: 12px; display: none; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--green-tint); color: var(--green-deep);
  border-radius: 8px; font-size: 0.9rem;
  align-self: flex-start;
}
.upload__file.is-visible { display: inline-flex; }
.upload__file button { background: none; border: none; color: var(--green-deep); font-size: 1.1rem; cursor: pointer; padding: 0 2px; line-height: 1; }

/* Error message */
.field__error {
  display: none; font-size: 0.78rem; color: #8a2a2a;
  margin-top: 6px; padding-left: 4px;
}
.field__error.is-visible { display: block; }

/* Form status / actions */
.form__status {
  padding: 12px 16px;
  border: 1px solid var(--green-deep);
  background: rgba(45, 90, 61, 0.08);
  color: var(--green-deep);
  font-size: 0.92rem; border-radius: 10px;
  display: none;
}
.form__status.is-error { border-color: #8a2a2a; background: rgba(138, 42, 42, 0.08); color: #8a2a2a; }
.form__status.is-visible { display: block; }

.form__actions {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; margin-top: 6px;
}
.form__note { font-size: 0.82rem; color: var(--ink-mute); line-height: 1.55; max-width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form__note a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.form__note a:hover { color: var(--gold); }

/* Sidebar */
.aside { display: flex; flex-direction: column; gap: 20px; }
.aside__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600; font-size: 1.3rem;
  margin: 0 0 16px; color: var(--ink);
}
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-row:first-of-type { border-top: none; padding-top: 0; }
.contact-icon {
  flex: 0 0 38px; width: 38px; height: 38px;
  border-radius: 10px; background: var(--green-tint);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green-deep);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-text { line-height: 1.45; min-width: 0; flex: 1; }
.contact-text__label { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 2px; }
.contact-text__value { font-size: 0.95rem; color: var(--ink); margin: 0; word-break: normal; overflow-wrap: anywhere; }
.contact-text__value a { text-decoration: none; }
.contact-text__value a:hover { color: var(--gold); }
.contact-text__value a[href^="mailto:"] { font-size: 0.84rem; letter-spacing: -0.01em; white-space: nowrap; display: inline-block; }

.map-card { padding: 0; overflow: hidden; }
.map-card iframe { width: 100%; height: 240px; border: 0; display: block; }
.map-open {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; color: var(--green-deep);
  background: var(--paper); border-top: 1px solid var(--line);
  transition: background 200ms, color 200ms, gap 200ms;
}
.map-open:hover { background: var(--green-tint); color: var(--gold); gap: 12px; }
.map-open svg { width: 14px; height: 14px; }

.thanks { display: none; padding: 36px 0; }
.thanks.is-visible { display: block; }
.thanks h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 12px; color: var(--green-deep);
}
.thanks h2 em { color: var(--gold); font-style: italic; }
.thanks p { color: var(--ink-mute); margin: 0 0 24px; max-width: 540px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .aside { order: 2; }
}

/* ===== MOBILE (<= 720px) ===== */
@media (max-width: 720px) {
  .hero { padding: 24px 22px 56px; }
  .hero__logo { width: 92px; height: 92px; margin: 0 auto 12px; }
  .wordmark { margin: 0 0 16px; }
  .wordmark__name { font-size: 1.05rem; letter-spacing: 0.18em; line-height: 1.2; }
  .wordmark__sub { font-size: 0.92rem; letter-spacing: 0.16em; margin-top: 6px; }
  .hero__rule { width: 40px; margin: 16px auto 20px; }
  .hero__title { font-size: 1.9rem; line-height: 1.15; margin: 0 0 22px; padding: 0 4px; }
  .hero__intro { font-size: 0.92rem; line-height: 1.68; margin: 0 auto 16px; padding: 0 2px; }
  .hero__intro + .hero__intro { font-size: 0.92rem; }
  .hero__cta { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 18px; }
  .hero__cta .btn { width: 100%; justify-content: center; padding: 14px 18px; font-size: 0.78rem; letter-spacing: 0.16em; }

  .page { padding: 14px 16px 56px; }
  .page__back { margin-bottom: 14px; font-size: 0.7rem; }
  .page__brand { margin: 0 0 18px; gap: 8px; }
  .page__brand img { width: 80px; height: 80px; }
  .page__brand-name { font-size: 1rem; letter-spacing: 0.18em; }
  .page__brand-sub { font-size: 0.88rem; letter-spacing: 0.16em; margin-top: 4px; }
  .page__title { font-size: 1.7rem; line-height: 1.1; margin: 6px 0 10px; }
  .divider { margin-bottom: 22px; }
  .layout { gap: 24px; }
  .card { padding: 20px 18px; border-radius: 14px; }

  .form { gap: 28px; }
  .form__section { gap: 18px; }
  .form__section-head { gap: 10px; padding-bottom: 10px; }
  .form__section-num { width: 24px; height: 24px; font-size: 0.65rem; }
  .form__section-title { font-size: 1.1rem; }
  .form__grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .form__grid--single { grid-template-columns: 1fr; }
  .field > input:not([type="file"]),
  .field > select,
  .field > textarea {
    font-size: 0.92rem;
    padding: 18px 10px 6px;
  }
  .field > label:not(.upload__zone) { font-size: 0.88rem; left: 10px; top: 13px; }
  .phone-input__prefix { padding: 14px 10px; font-size: 0.88rem; }
  .phone-input__field input { padding: 18px 10px 6px 10px !important; font-size: 0.92rem; }
  .phone-input__field label { left: 10px; top: 13px; font-size: 0.88rem; }
  .upload__zone { padding: 22px 14px; }
  .form__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .form__note { max-width: 100%; text-align: center; font-size: 0.78rem; white-space: normal; }
  .form__actions .btn { width: 100%; justify-content: center; padding: 14px 18px; font-size: 0.78rem; letter-spacing: 0.16em; }
  .aside__title { font-size: 1.1rem; margin-bottom: 12px; }
  .map-card iframe { height: 200px; }
  .contact-text__value a[href^="mailto:"] { font-size: 0.8rem; }
}
@media (max-width: 380px) {
  .hero { padding: 18px 18px 48px; }
  .hero__logo { width: 80px; height: 80px; }
  .hero__title { font-size: 1.6rem; }
  .page { padding: 12px 14px 50px; }
  .page__brand img { width: 72px; height: 72px; }
  .page__title { font-size: 1.5rem; }
  .card { padding: 18px 14px; }
  .form__grid { grid-template-columns: 1fr; gap: 14px; }
}
