/* Public questionnaire page (F13c). Theme tokens only; long content wraps and images are capped by site.css. */
.take-head{margin-bottom:1.5rem;}
.take-head h1{overflow-wrap:anywhere;}
/* The description spans the column (no 56ch cap from .lede), small and italic. */
.take-head .lede{margin-top:.75rem;max-width:none;font-size:14.5px;font-style:italic;overflow-wrap:anywhere;}
.take .page-cover{width:100%;height:auto;margin-bottom:1.25rem;border-radius:var(--radius-m);}
.take-form{display:flex;flex-direction:column;gap:1.5rem;}
.take-question{
  padding:1.25rem 0;
  border-bottom:1px solid var(--color-line);
  overflow-wrap:anywhere;
}
.take-question fieldset{border:0;margin:0;padding:0;min-width:0;}
.take-question legend{float:none;width:100%;padding:0;margin:0 0 .5rem;font-size:inherit;}
.take-question__title{font-weight:600;color:var(--color-text);}
.take-question__head{display:flex;flex-wrap:wrap;gap:.5rem;align-items:baseline;margin-bottom:.5rem;}
.take-question__secondary{color:var(--color-text-muted);margin:.25rem 0 .5rem;}
.take-question__content{margin:.5rem 0 .75rem;}
/* A red asterisk; the "Bắt buộc" beside it is for screen readers only. */
.take-required{
  display:inline-block;
  margin-left:.2rem;
  font-weight:700;
  color:var(--color-danger-text);
}
.take-optional{margin-left:.4rem;font-size:12.5px;color:var(--color-text-muted);}
.take-hint{font-size:13px;color:var(--color-text-muted);margin:.25rem 0 .5rem;}
.take-note{font-size:13px;color:var(--color-text-muted);margin:.5rem 0 0;}
.take-contact textarea{resize:vertical;min-height:6.5rem;}
.take-options{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem;}
.take-options li{display:flex;gap:.6rem;align-items:flex-start;}
.take-options input{margin-top:.35rem;flex:0 0 auto;width:1.1rem;height:1.1rem;}
.take-options label{flex:1 1 auto;min-width:0;}
.take-control{
  display:block;
  width:100%;
  padding:11px 13px;
  border:1px solid var(--color-input-border);
  border-radius:var(--radius-s);
  background:var(--color-surface);
  color:var(--color-text);
  font-family:'Inter',sans-serif;
  font-size:14.5px;
}
.take-control:focus{outline:2px solid var(--color-focus-ring);outline-offset:1px;}
.take-contact{padding:0;}
.take-contact h2{margin-bottom:1rem;}
.take-consent{display:flex;gap:.6rem;align-items:flex-start;margin-bottom:1rem;}
.take-consent input{margin-top:.35rem;flex:0 0 auto;width:1.1rem;height:1.1rem;}
.take-consent label{flex:1 1 auto;min-width:0;font-size:14px;}
.take-submit{align-self:flex-start;}
@media (max-width:480px){ .take-submit{align-self:stretch;width:100%;} }

/* Progress bar and unanswered highlighting (F13f). The bar and the status lines stay hidden until questionnaire-take.js shows them. */
/* One header offset: site.css's --header-h (the header is one height at every width). 5rem clears the sticky bar below it. */
.take-question,.take-contact .field,.take-consent-field,.take-error{scroll-margin-top:calc(var(--header-h,66px) + 5rem);}
.take-progress{
  position:sticky;
  top:var(--header-h,66px);
  z-index:40;
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.6rem .75rem;
  background:var(--color-surface);
  border:1px solid var(--color-line);
  border-radius:var(--radius-s);
}
.take-progress[hidden]{display:none;}
.take-progress__bar{flex:1 1 auto;min-width:0;height:.6rem;accent-color:var(--color-gold-fill);}
.take-progress__count{margin:0;flex:0 0 auto;font-weight:600;color:var(--color-text);font-variant-numeric:tabular-nums;}
.take-question__status{margin:0 0 .5rem;font-size:13.5px;font-weight:600;color:var(--color-text);}
.take-question__status[hidden]{display:none;}
.take-question__status-icon::before{content:"\26A0";margin-right:.4rem;}
.take-question--missed-required{
  padding-left:.75rem;
  border-left:4px solid var(--color-gold-fill);
}
.take-question--missed-optional{
  padding-left:.75rem;
  border-left:4px dashed var(--color-line);
}
.take-question--missed-optional .take-question__status{font-weight:400;color:var(--color-text-muted);}
.take-question--missed-optional .take-question__status-icon::before{content:"\25CB";}
.take-visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* F25: share button. From 960px the floating button sits in the page margin as on other pages (no rule). */
/* 576-959.98px: the button floats; the column keeps 72px free on the right (56px button + 24px offset - 16px gutter + 8px clearance). */
@media (min-width:576px) and (max-width:959.98px){
  .wrap.take{padding-right:calc(var(--layout-gutter) + 72px);}
}
/* Under 576px: the button sits in the page under the description instead of floating, so it never covers a control. */
@media (max-width:575.98px){
  .take-share{margin-top:.75rem;}
  .take-share .fab{position:relative;top:auto;right:auto;bottom:auto;left:auto;max-height:none;z-index:30;}
  .take-share .fab.fab--open{z-index:45;} /* above the sticky progress bar (40) so the open menu is not covered, below header.nav (50) */
  .take-share .fab__actions{position:absolute;top:calc(100% + 8px);right:0;}
}
