/* ==========================================================================
   THE INQUIRY FORM, at the top of every page's footer (user, 2026-11-22):
   "Ask a question" or "Book a tour", name, email, phone (optional) and a
   message, emailed to hr@thehudaacademy.org by the huda-contact service
   (tools/contact-server, behind /api/ on staging and production).
   Markup: SHELL:FOOTER in index.html. Behaviour: assets/js/inquiry.js.
   Colours are the footer's own cream-on-dark, at partial alpha over the
   ground, so every seasonal footer (moonlight blue, plum, kiswah black,
   chalkboard) keeps its contrast without a theme rule.
   ========================================================================== */
.inq{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.75fr);gap:clamp(1.6rem,4.5vw,4.5rem);
  align-items:start;padding-bottom:clamp(2.4rem,6vh,3.4rem);margin-bottom:clamp(2.4rem,6vh,3.4rem);
  border-bottom:1px solid rgba(244,238,228,.14)}
.inq__kicker{margin:0 0 .7rem;font-size:.74rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
.footer .inq__h{margin:0 0 .9rem;font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;
  font-size:clamp(2rem,3.3vw,2.75rem);line-height:1.06;letter-spacing:0;text-transform:none;color:#FBF7F1}
.inq__lead{margin:0 0 1.1rem;max-width:24rem;font-size:.98rem;line-height:1.6;color:rgba(244,238,228,.78)}
.inq__alt{margin:0;font-size:.88rem;line-height:1.6;color:rgba(244,238,228,.62)}
.inq__alt a{color:rgba(244,238,228,.92);text-underline-offset:3px}
.inq__alt a:hover{color:#FFFFFF}

/* the two kinds: a segmented switch made of real radio buttons, so it works without the script */
.inq__kind{display:inline-flex;gap:4px;margin:0 0 1.25rem;padding:4px;border:1px solid rgba(244,238,228,.28);border-radius:999px}
.inq__kind legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.inq__kind label{position:relative;cursor:pointer}
.inq__kind input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.inq__kind span{display:block;padding:.6rem 1.2rem;border-radius:999px;font-size:.88rem;font-weight:600;line-height:1.2;
  white-space:nowrap;color:rgba(244,238,228,.82);transition:background-color .2s ease,color .2s ease}
.inq__kind label:hover span{color:#FFFFFF}
.inq__kind input:checked + span{background:#FBF7F1;color:#2C1F17}
.inq__kind input:focus-visible + span{outline:2px solid var(--gold);outline-offset:2px}

.inq__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem 1.1rem}
.inq__f{display:flex;flex-direction:column;gap:.42rem;min-width:0;margin:0}
.inq__f--wide{grid-column:1/-1}
.inq__f > span{font-size:.8rem;font-weight:600;letter-spacing:.03em;color:rgba(244,238,228,.86)}
.inq__f em{font-style:normal;font-weight:400;color:rgba(244,238,228,.56)}
.inq__f input,.inq__f textarea{box-sizing:border-box;width:100%;min-height:48px;margin:0;padding:.78rem .9rem;
  font:inherit;font-size:1rem;line-height:1.4;color:#FBF7F1;background:rgba(244,238,228,.06);
  border:1px solid rgba(244,238,228,.26);border-radius:6px;transition:border-color .2s ease,background-color .2s ease}
.inq__f textarea{min-height:7.5rem;line-height:1.55;resize:vertical}
.inq__f input::placeholder,.inq__f textarea::placeholder{color:rgba(244,238,228,.4);opacity:1}
.inq__f input:hover,.inq__f textarea:hover{border-color:rgba(244,238,228,.42)}
.inq__f input:focus,.inq__f textarea:focus{outline:none;border-color:var(--gold);background:rgba(244,238,228,.1)}
.inq__f [aria-invalid="true"]{border-color:#F08A7A}
/* the honeypot: off screen, out of the tab order, read by no one */
.inq__hp{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

.inq__foot{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.4rem;margin-top:1.25rem}
.inq__send{min-width:9.5rem;justify-content:center;border:0;cursor:pointer;font-family:inherit}
.inq__send[disabled]{opacity:.7;cursor:progress}
.inq__status{flex:1 1 16rem;margin:0;font-size:.9rem;line-height:1.5;color:rgba(244,238,228,.82)}
.inq__status:empty{display:none}
.inq__status.is-err{color:#F7B9AD}
.inq__status a{color:inherit;text-underline-offset:3px}

/* sent: the form steps aside for a thank-you that says what happens next */
.inq__done{padding:1.6rem 1.7rem;border:1px solid rgba(244,238,228,.2);border-radius:10px;background:rgba(244,238,228,.05)}
.inq__done[hidden]{display:none}
.footer .inq__done-h{margin:0 0 .5rem;font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:1.7rem;line-height:1.15;color:#FBF7F1}
.inq__done p{margin:0 0 1.1rem;color:rgba(244,238,228,.8);line-height:1.6}
.inq__again{padding:0;border:0;background:none;font:inherit;font-size:.9rem;font-weight:600;color:var(--gold);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.inq__again:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:2px}

@media (max-width:980px){
  .inq{grid-template-columns:1fr}
  .inq__lead{max-width:34rem}
}
@media (max-width:640px){
  .inq__grid{grid-template-columns:1fr}
  .inq__kind{display:flex}
  .inq__kind label{flex:1 1 0;text-align:center}
  .inq__kind span{padding:.6rem .5rem}
  .inq__send{width:100%}
}
@media (prefers-reduced-motion:reduce){ .inq__kind span,.inq__f input,.inq__f textarea{transition:none} }
