
/* ForestHill / TranscendSurvey public survey style (scoped, leaves admin unchanged). */
:root { --fh-ink:#263047; --fh-muted:#65728b; --fh-violet:#7548c8; --fh-violet-dark:#6232b5; --fh-stroke:#e4e6f0; --fh-surface:#fff; }
body { background:#f4f4f9; color:var(--fh-ink); }
.content .container-fluid > .row > .offset-lg-2.col-lg-8 { max-width:920px; flex:0 0 100%; margin:0 auto; padding-left:18px; padding-right:18px; }
#intro.card { background:#fff; border:1px solid var(--fh-stroke); border-radius:18px; box-shadow:0 7px 20px rgba(26,32,58,.06); overflow:hidden; }
#intro .card-header { padding:24px 28px 18px; background:#fff!important; border-bottom:1px solid var(--fh-stroke); }
#intro .card-title { font-weight:700; letter-spacing:-.025em; color:var(--fh-ink)!important; }
#intro .card-body { padding:20px 28px 24px; line-height:1.7; overflow-wrap:anywhere; }
#survey-form { padding:8px 0 32px; }
#survey-form .card { background:#fff; border:1px solid var(--fh-stroke); border-radius:16px; box-shadow:0 5px 18px rgba(34,42,75,.05); margin:0 0 18px; overflow:visible; }
#survey-form .card .card-body { padding:26px 30px 28px; }
#survey-form .form-group { margin:0; }
#survey-form .fh-question-label, #survey-form .control-label { display:block; margin:0 0 17px; font-size:16px; font-weight:600; letter-spacing:-.01em; line-height:1.55; color:var(--fh-ink); white-space:pre-line; overflow-wrap:anywhere; }
#survey-form .fh-required { color:#ba2787; font-weight:700; margin-left:2px; }
#survey-form .fh-option-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; width:100%; }
#survey-form .fh-option { display:flex; align-items:flex-start; gap:12px; padding:15px 16px; min-height:55px; margin:0; border:1.5px solid var(--fh-stroke); border-radius:12px; background:#fff; font-size:14px; line-height:1.5; font-weight:400; color:var(--fh-ink); cursor:pointer; overflow-wrap:anywhere; transition:background .15s,border-color .15s,box-shadow .15s; }
#survey-form .fh-option:hover { border-color:#c6b4ef; background:#faf8ff; }
#survey-form .fh-option:has(.fh-choice-input:checked) { background:#f7f2ff; border-color:#9978dd; box-shadow:inset 0 0 0 1px #c4abf2; }
#survey-form .fh-option:focus-within { outline:3px solid #d7c7fa; outline-offset:2px; }
#survey-form input.fh-choice-input[type="radio"], #survey-form input.fh-choice-input[type="checkbox"] { display:block!important; position:static!important; float:none!important; margin:2px 0 0!important; padding:0!important; width:18px!important; height:18px!important; min-width:18px!important; border:initial!important; background:initial!important; visibility:visible!important; opacity:1!important; pointer-events:auto!important; box-shadow:none!important; -webkit-appearance:auto!important; appearance:auto!important; accent-color:var(--fh-violet); }
#survey-form input.fh-choice-input + span { flex:1; min-width:0; color:inherit; }
#survey-form .fh-text-input.form-control, #survey-form .fh-textarea.form-control, #survey-form .fh-select.form-control, #survey-form .fh-other-wrapper .form-control { display:block; width:100%; height:auto!important; color:var(--fh-ink); font-size:15px; background:#fbfcff!important; background-image:none!important; border:1.5px solid #dce0eb!important; border-radius:11px!important; padding:13px 15px!important; box-shadow:none!important; line-height:1.6!important; }
#survey-form .fh-text-input.form-control { min-height:50px!important; }
#survey-form .fh-textarea.form-control { min-height:135px!important; resize:vertical; white-space:pre-wrap; overflow-wrap:break-word; }
#survey-form .fh-textarea.form-control:focus, #survey-form .fh-text-input.form-control:focus, #survey-form .fh-select.form-control:focus { background:#fff!important; border-color:#9571dd!important; outline:3px solid #efe8ff!important; box-shadow:none!important; }
#survey-form .fh-textarea.form-control::placeholder, #survey-form .fh-text-input.form-control::placeholder { color:#9aa2b3; opacity:1; }
#survey-form .fh-other-wrapper { margin-top:12px; }
#survey-form .fh-file-hint { font-size:13px; line-height:1.6; color:var(--fh-muted); margin:-8px 0 16px; }
#survey-form .fh-upload-list { display:grid; gap:10px; }
#survey-form .fh-upload-slot[hidden] { display:none!important; }
#survey-form .fh-upload-control { display:flex; align-items:center; gap:13px; flex-wrap:wrap; border:1.5px dashed #b4a2dd; border-radius:13px; background:#faf8ff; padding:16px; }
#survey-form .fh-upload-input { position:absolute!important; width:1px!important; height:1px!important; opacity:0!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; }
#survey-form .fh-upload-button { display:inline-flex; align-items:center; gap:9px; padding:11px 17px; border-radius:9px; background:var(--fh-violet); color:#fff!important; font-size:14px; font-weight:600; margin:0; cursor:pointer; white-space:nowrap; box-shadow:0 2px 7px rgba(90,50,165,.18); }
#survey-form .fh-upload-button:hover { background:var(--fh-violet-dark); }
#survey-form .fh-upload-control:focus-within { outline:3px solid #d7c7fa; outline-offset:1px; }
#survey-form .fh-upload-filename { font-size:13px; color:var(--fh-muted); overflow-wrap:anywhere; min-width:0; flex:1; }
#survey-form .fh-clear-file { flex:0 0 auto; font-size:13px; color:#a73953; font-weight:600; background:transparent; padding:5px 7px; border:0; cursor:pointer; }
#survey-form .fh-clear-file[hidden] { display:none!important; }
#survey-form .fh-clear-file:hover { text-decoration:underline; }
#survey-form .fh-add-file { margin:12px 0 2px; display:inline-flex; align-items:center; gap:8px; padding:8px 0; border:0; background:transparent; color:var(--fh-violet); font-size:14px; font-weight:600; cursor:pointer; }
#survey-form .fh-add-file:hover { color:var(--fh-violet-dark); text-decoration:underline; }
#survey-form .fh-file-error { color:#b42336; font-size:13px; font-weight:500; }
#survey-form .fh-privacy-note { margin-top:13px; font-size:12px; line-height:1.6; color:#7b5a32; }
#survey-form .text-center > button[type="submit"] { border:0; background:var(--fh-violet)!important; padding:15px 34px; min-height:50px; font-size:14px; font-weight:700; letter-spacing:.02em; text-transform:none; border-radius:11px; box-shadow:0 6px 15px rgba(97,59,168,.2); }
#survey-form .text-center > button[type="submit"]:hover { background:var(--fh-violet-dark)!important; }
#survey-form .form-check { margin:0; }
#survey-form .checkbox-radios .form-check-label { white-space:normal; overflow-wrap:anywhere; line-height:1.55; }
#survey-form .form-group label.error { display:block; margin-top:8px; font-size:13px; color:#b42336; }
@media (max-width:767px) {
  #survey-form .fh-option-grid { grid-template-columns:1fr; }
  #survey-form .card .card-body { padding:20px 18px 22px; }
  #survey-form .fh-option { min-height:50px; padding:12px 14px; }
  #survey-form .fh-upload-control { align-items:stretch; gap:12px; }
  #survey-form .fh-upload-filename { flex-basis:100%; }
  #intro .card-header, #intro .card-body { padding-left:18px; padding-right:18px; }
}

/* 2026-11-02d: Keep field headings above their controls.
   Bootstrap Material Design automatically adds bmd-label-static to labels
   within .form-group, positioning them on top of the input. */
#survey-form .fh-text-question {
    display: block;
    width: 100%;
}
#survey-form .fh-text-question > label.fh-question-label {
    display: block !important;
    position: static !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    float: none !important;
    pointer-events: auto !important;
    width: auto !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: var(--fh-ink) !important;
    white-space: normal;
    overflow-wrap: anywhere;
}
#survey-form .fh-text-question > .fh-input-field,
#survey-form .fh-text-question > .fh-input-field.bmd-form-group {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}
#survey-form .fh-text-question .fh-input-field > .form-control {
    display: block;
    position: static;
    margin: 0 !important;
}
/* The built-in age/department/etc. prompts also need normal label flow. */
#survey-form .form-group > label.control-label {
    display: block !important;
    position: static !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    pointer-events: auto !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    white-space: normal !important;
}
@media (max-width: 767px) {
    #survey-form .fh-text-question > label.fh-question-label,
    #survey-form .form-group > label.control-label {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
}
