/* ============================================================
   Silver Hills School – Location Survey
   style.css  |  Government / Sarkari Form Style
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── ROOT VARIABLES ── */
:root {
  --blue:        #0a3d8f;
  --blue-mid:    #1557c0;
  --blue-light:  #e8f0fb;
  --gold:        #c8a84b;
  --black:       #1a1a1a;
  --grey-dark:   #444;
  --grey-mid:    #777;
  --grey-light:  #d0d0d0;
  --grey-bg:     #f4f4f4;
  --white:       #ffffff;
  --red:         #c0392b;
  --green:       #1a7a3e;
  --border:      1px solid #bebebe;
  --radius:      2px;
  --font-serif:  'Noto Serif', Georgia, serif;
  --font-sans:   'Source Sans 3', Arial, sans-serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: #dde1e7;
  font-size: 15px;
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── TOP / BOTTOM STRIP ── */
.top-strip    { height: 7px; background: linear-gradient(90deg, var(--blue) 0%, var(--blue-mid) 55%, var(--gold) 100%); }
.bottom-strip { height: 7px; background: linear-gradient(90deg, var(--gold) 0%, var(--blue-mid) 55%, var(--blue) 100%); }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Logo block */
.logo-img {
  width: 72px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: #000;
  flex-shrink: 0;
}
.logo-block { display: flex; align-items: center; gap: 14px; }

.logo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border: 3px solid gold;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text-block { display: flex; flex-direction: column; gap: 2px; }
.logo-gov    { font-size: 10px; font-weight: 600; color: var(--grey-mid); text-transform: uppercase; letter-spacing: 0.8px; }
.logo-school { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--blue); line-height: 1.1; }
.logo-sub    { font-size: 11.5px; color: #555; font-style: italic; }

/* Header meta (right side) */
.header-meta { text-align: right; flex-shrink: 0; }
.form-ref {
  font-size: 11.5px; font-weight: 700;
  color: var(--blue); border: 1.5px solid var(--blue);
  background: var(--blue-light); padding: 3px 10px;
  letter-spacing: 0.5px; margin-bottom: 4px;
  display: inline-block;
}
.form-date { font-size: 11px; color: var(--grey-mid); }

/* Title bar */
.header-title-bar {
  background: var(--blue);
  padding: 10px 24px; text-align: center;
}
.header-title-bar h1 {
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 700;
  color: var(--white); letter-spacing: 1.5px;
  text-transform: uppercase; line-height: 1.4;
}

/* ══════════════════════════════════════════
   HIGHLIGHTS BANNER
══════════════════════════════════════════ */
.highlights {
  background: linear-gradient(135deg, #0a3d8f 0%, #0d52b8 100%);
  padding: 14px 24px;
}
.highlights-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 10px 28px;
}
.hl-item {
  color: var(--white); font-size: 12.5px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.hl-item .dot { color: var(--gold); font-size: 15px; line-height: 1; }

/* ══════════════════════════════════════════
   LOCATION BAR
══════════════════════════════════════════ */
.location-bar {
  background: #fffbea;
  border-top: 1px solid #d4a017;
  border-bottom: 2px solid #d4a017;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px; color: #7a5500; font-weight: 600;
}
.chips {
  display: inline-flex; flex-wrap: wrap;
  gap: 8px; justify-content: center; margin-top: 6px;
}
.chip {
  background: var(--blue); color: var(--white);
  font-size: 12px; font-weight: 600;
  padding: 3px 16px; border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════
   NOTICE STRIP
══════════════════════════════════════════ */
.notice-strip {
  background: #f0f4ff;
  border-bottom: 1px solid #b0c4f0;
  text-align: center;
  padding: 6px 16px;
  font-size: 12px; color: #2a3a7a; font-weight: 600;
}
.notice-strip .req { color: var(--red); font-weight: 700; }

/* ══════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════ */
main { flex: 1; padding: 24px 16px 44px; }

.form-wrap {
  max-width: 820px; margin: 0 auto;
  background: var(--white);
  border: 1px solid #b8b8b8;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  padding: 30px 36px 36px;
}

/* ══════════════════════════════════════════
   SECTION LABELS
══════════════════════════════════════════ */
.sec-label {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 9px; margin-bottom: 20px;
}
.sec-gap { margin-top: 28px; }

.sec-tag {
  background: var(--blue); color: var(--white);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 1px; padding: 3px 12px;
  text-transform: uppercase; flex-shrink: 0;
}
.sec-name {
  font-family: var(--font-serif);
  font-size: 14.5px; font-weight: 700; color: var(--blue);
}

/* ══════════════════════════════════════════
   FORM ROWS & GROUPS
══════════════════════════════════════════ */
.frow { display: flex; gap: 20px; margin-bottom: 20px; }
.fgroup { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.fgroup.full { flex: 1 1 100%; }

/* ── Labels ── */
.flabel {
  font-size: 12.5px; font-weight: 700;
  color: var(--grey-dark); text-transform: uppercase; letter-spacing: 0.2px;
}
.flabel .star,
.star { color: var(--red); font-size: 14px; }

/* ── Text / Tel / Email Inputs ── */
.finput {
  width: 100%;
  padding: 10px 12px;
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14.5px; color: var(--black);
  background: #fdfdfd; outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
  appearance: none; -webkit-appearance: none;
}
.finput:focus {
  border-color: var(--blue-mid);
  background: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(21,87,192,.12);
}
.finput.err { border-color: var(--red); background: #fff5f5; }
.finput::placeholder { color: #bbb; font-style: italic; font-size: 13.5px; }

/* ── Textarea ── */
textarea.finput { resize: vertical; min-height: 100px; line-height: 1.55; }

/* ── Error messages ── */
.errmsg {
  font-size: 12px; color: var(--red);
  font-weight: 500; min-height: 15px;
  display: block; padding-left: 2px;
}

/* ══════════════════════════════════════════
   CHECKBOX / RADIO GRID
══════════════════════════════════════════ */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
  font-size: 14px; color: #222; font-weight: 500;
}
.check-item:hover { border-color: var(--blue-mid); background: var(--blue-light); }
.check-item.selected { border-color: var(--blue); background: var(--blue-light); }

.check-item input[type="radio"],
.check-item input[type="checkbox"] {
  width: 17px; height: 17px; margin: 0;
  accent-color: var(--blue);
  cursor: pointer; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   CONTACT BAR
══════════════════════════════════════════ */
.contact-bar {
  background: var(--blue); color: var(--white);
  text-align: center; padding: 10px 16px;
  font-size: 13.5px; font-weight: 600;
  margin-bottom: 20px; border-radius: var(--radius);
  letter-spacing: 0.3px;
}
.contact-bar a { color: var(--gold); text-decoration: none; font-size: 15px; font-weight: 700; }
.contact-bar a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   DECLARATION BOX
══════════════════════════════════════════ */
.decl {
  background: var(--grey-bg);
  border: 1px solid #ddd;
  border-left: 4px solid var(--blue);
  padding: 13px 16px; margin: 0 0 20px;
  font-size: 12.5px; color: #555; line-height: 1.65;
}
.decl strong { color: var(--blue); }

/* ══════════════════════════════════════════
   SUBMIT BUTTON
══════════════════════════════════════════ */
.submit-row { display: flex; justify-content: center; margin-top: 8px; }

.submit-btn {
  background: var(--blue); color: var(--white);
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 14px 56px; border: none;
  border-radius: var(--radius); cursor: pointer;
  min-width: 260px;
  display: flex; align-items: center;
  justify-content: center; gap: 10px;
  box-shadow: 0 4px 14px rgba(10,61,143,.30);
  transition: background .18s, transform .1s, box-shadow .18s;
}
.submit-btn:hover:not(:disabled) {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10,61,143,.38);
}
.submit-btn:active:not(:disabled) { transform: translateY(0); }
.submit-btn:disabled               { background: #aaa; cursor: not-allowed; box-shadow: none; }
.submit-btn.done                   { background: var(--green) !important; cursor: default; }

/* Spinner inside button */
#btnLoader {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%; display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* hidden utility */
.hidden { display: none !important; }

/* ══════════════════════════════════════════
   SUCCESS BOX
══════════════════════════════════════════ */
.success-box {
  display: flex; align-items: center; gap: 14px;
  background: #eaf7ef;
  border: 1.5px solid #27ae60;
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 20px; margin-top: 22px;
}
.success-icon {
  width: 44px; height: 44px;
  background: var(--green); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.success-text { font-size: 14.5px; color: #1a5c33; line-height: 1.65; }
.success-text strong { display: block; font-size: 16px; margin-bottom: 3px; }
.success-contact { font-size: 12.5px; color: #3a7a5a; margin-top: 4px; display: block; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--blue);
  color: rgba(255,255,255,.75);
  font-size: 12.5px; padding: 12px 24px;
}
.footer-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 6px;
}
footer strong { color: var(--white); }

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════ */
@media (max-width: 640px) {
  .header-inner       { flex-direction: column; align-items: flex-start; }
  .header-meta        { text-align: left; }
  .header-title-bar h1 { font-size: 12px; letter-spacing: .6px; }
  .form-wrap          { padding: 18px 14px 28px; }
  .submit-btn         { width: 100%; padding: 14px 20px; min-width: unset; }
  .footer-inner       { flex-direction: column; text-align: center; }
  .check-grid         { grid-template-columns: repeat(2, 1fr); }
  .highlights-inner   { gap: 8px 16px; }
  .hl-item            { font-size: 12px; }
}

@media (max-width: 400px) {
  .logo-school        { font-size: 17px; }
  .header-title-bar h1 { font-size: 11px; }
}


