/* NEET Notes Hub - suggestion + contact form styles (suggestions feature).
   Palette only: the design.css variables (black, yellow, red, white, grey,
   green). No new colours. Loaded after design.css, so the base button and
   input rules there still apply; this file only adds the form layout. */

/* The per-section box. clear:both keeps it below a floated figure in a
   has-fig section. No fixed width anywhere: everything is max-width 100%
   with border-box, so nothing overflows at 360px. */
.suggest-box{clear:both;max-width:100%;box-sizing:border-box;margin:16px 0 0;border:0;background:none;padding:0}
.suggest-box[open] .suggest-btn{background:#0B0B0B;color:var(--yellow)}

/* The toggle: the same yellow button language as .fig-practice
   (yellow background, black text, uppercase, 13px). A <summary> so the
   form opens with no JS at all. */
.suggest-btn{display:inline-block;max-width:100%;box-sizing:border-box;padding:9px 16px;background:var(--yellow);color:#0B0B0B;border:2px solid #0B0B0B;border-radius:6px;font-weight:700;text-transform:uppercase;text-decoration:none;font-size:13px;letter-spacing:.02em;line-height:1.4;cursor:pointer;list-style:none;white-space:normal;text-align:left}
.suggest-btn::-webkit-details-marker{display:none}
.suggest-btn::marker{display:none}
.suggest-btn:hover{background:#0B0B0B;color:var(--yellow)}
.suggest-btn:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}

/* The form panel: same bordered panel language as .practice-block. */
.suggest-form,.contact-form{max-width:100%;box-sizing:border-box;border:2px solid var(--rule2);background:var(--panel);padding:16px;margin:12px 0 0}
.suggest-form p,.contact-form p{margin:0 0 12px}
.suggest-form p:last-child,.contact-form p:last-child{margin-bottom:0}
.suggest-form label,.contact-form label{display:block;color:var(--yellow);font-weight:600;text-transform:uppercase;font-size:13px;letter-spacing:.06em;margin-bottom:6px}
.suggest-form select,.contact-form select{width:100%;max-width:100%;box-sizing:border-box;padding:10px 12px;border:2px solid var(--rule2);border-radius:0;background:var(--panel);color:var(--ink);font:inherit}
.suggest-form select:focus,.contact-form select:focus{outline:none;border-color:var(--yellow)}
.suggest-form input[type="email"],.contact-form input[type="email"]{width:100%;max-width:100%;box-sizing:border-box;padding:10px 12px;border:2px solid var(--rule2);border-radius:0;background:var(--panel);color:var(--ink);font:inherit}
.suggest-form input[type="email"]:focus,.contact-form input[type="email"]:focus{outline:none;border-color:var(--yellow)}
.suggest-form input[type="file"]{width:100%;max-width:100%;box-sizing:border-box;color:var(--ink);font:inherit;font-size:14px}
.suggest-form input[type="text"],.suggest-form textarea,.contact-form input[type="text"],.contact-form textarea{box-sizing:border-box}
.suggest-form .small,.contact-form .small{display:block;margin-top:6px}

/* reCAPTCHA widget: only spacing, so it sits in the form flow like the
   other rows. The widget itself is Google's own element and is not
   restyled. Standard widget width is 304px, which fits the 360px form. */
.suggest-form .g-recaptcha,.contact-form .g-recaptcha{margin:0 0 12px;max-width:100%}

/* Honeypot: off-screen, never display:none (bots can detect that), never
   visible to a human. aria-hidden and tabindex=-1 are set in the markup. */
.honeypot{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;margin:0;padding:0;border:0}

/* Live character count and privacy line. */
.char-count{color:var(--grey);font-size:13px;text-align:right;margin:-6px 0 12px}
.form-privacy{color:var(--grey);font-size:13px}

/* Client-side status area (compression notes and errors). Hidden until
   the JS has something to say. Red border for errors, green for ok. */
.form-status{border:2px solid var(--red);background:var(--panel2);padding:10px 12px;font-size:14px}
.form-status.ok{border-color:var(--green);color:var(--green)}
.form-status.err{border-color:var(--red);color:var(--ink)}

/* The single chapter-end box (audit fix, 24 Nov 2026): the toggle is a
   subtle outline button, not the bright yellow per-section button. */
.suggest-single{margin:32px 0 8px}
.suggest-single .suggest-btn{background:var(--panel);color:var(--ink);border:2px solid var(--rule2)}
.suggest-single .suggest-btn:hover{background:var(--panel2);color:var(--yellow);border-color:var(--yellow)}
.suggest-single .suggest-box[open] .suggest-btn{background:var(--panel2);color:var(--yellow)}

@media(max-width:360px){
  .suggest-form,.contact-form{padding:12px}
  .suggest-btn{padding:9px 12px;font-size:12px}
}
