/* CitizenFeedback.aspx - page-specific styles.
   Builds on css/application-redesign.css (.app-redesign hero, cards, form controls, buttons, palette variables).
   Everything is scoped to .cfx-page so no other page is affected.
   Revert: restore CitizenFeedback.aspx.bak-20261029-redesign (and the .cs / designer backups) and remove the link to this file. */

.cfx-page [hidden] { display: none !important; }

/* ---------- Emergency banner + steps ---------- */
.cfx-page .cfx-emergency {
    display: flex; align-items: flex-start; gap: 14px; margin: 0 0 20px; padding: 14px 20px;
    background: #fff6f5; border: 1px solid #e4b4b0; border-left: 5px solid #c9524a; border-radius: 14px; color: #6b2222; line-height: 1.55;
}
.cfx-page .cfx-emergency i { flex: none; margin-top: 3px; font-size: 20px; color: #a61e1e; }

.cfx-page .cfx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.cfx-page .cfx-steps li {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid #dbe5e0; border-radius: 14px;
    font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--green-dark);
}
.cfx-page .cfx-step-num { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #e6f1ec; color: var(--green-dark); font-size: 14px; font-weight: 800; }

/* ---------- Form ---------- */
.cfx-page .cfx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.cfx-page .cfx-span { grid-column: 1 / -1; }
.cfx-page .cfx-field { min-width: 0; }
.cfx-page .cfx-field select.form-control { padding-right: 38px; }
.cfx-page .cfx-req { color: #a61e1e; font-weight: 800; }
.cfx-page .cfx-opt { font-weight: 500; color: #566678; }
.cfx-page .cfx-hint { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #4a5a6b; }
.cfx-page .cfx-hint:empty { display: none; }
.cfx-page .cfx-hint i { margin-right: 4px; color: var(--gold); }
.cfx-page .cfx-field-error { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: #a61e1e; }
.cfx-page .form-control[aria-invalid="true"] { border-color: #c9524a !important; background: #fffafa !important; }
.cfx-page .form-control[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(201,82,74,.2) !important; }
.cfx-page textarea.cfx-textarea { min-height: 170px; }

/* Feedback type: three radio buttons drawn as a segmented choice */
.cfx-page .cfx-types { display: flex; flex-wrap: wrap; gap: 10px; }
.cfx-page .cfx-types input[type="radio"] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.cfx-page .cfx-types label {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 130px; min-height: 48px; margin: 0; padding: 11px 24px;
    border: 2px solid #b9c9c2; border-radius: 999px; background: #fff; color: var(--green-dark); font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cfx-page .cfx-types label:hover { border-color: var(--green); background: #f1f8f4; }
.cfx-page .cfx-types input:checked + label:hover { background: var(--green-dark); border-color: var(--green-dark); }
/* premiere2.css has `form label { color: var(--green-dark) !important }` and every page sits inside the form, so the state colors below need !important too */
.cfx-page .cfx-types input:checked + label { background: var(--green); border-color: var(--green); color: #fff !important; box-shadow: 0 6px 18px rgba(38,100,71,.25); }
.cfx-page .cfx-types input:checked + label::before { content: "\f00c"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome; font-weight: 900; font-size: 14px; }
.cfx-page .cfx-types input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 3px; }

.cfx-page .cfx-privacy { margin: 26px 0 0; line-height: 1.6; }
.cfx-page .cfx-error { display: none; }
.cfx-page .cfx-error:not(:empty) { display: block; margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: #fff6f5; border: 1px solid #e4b4b0; color: #6b2222; font-weight: 600; }
.cfx-page .ar-submit-bar { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e3ebe7; }
.cfx-page .ar-submit-btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Thank-you / confirmed / invalid-link cards ---------- */
.cfx-page .cfx-done .card-body { max-width: 680px; margin: 0 auto; padding-top: 40px; padding-bottom: 40px; text-align: center; }
.cfx-page .cfx-done-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: #e6f1ec; color: var(--green-dark); font-size: 30px; }
.cfx-page .cfx-done-ok .cfx-done-icon { background: #e3f4ea; color: #1c6b43; }
.cfx-page .cfx-done-warn .cfx-done-icon { background: #fff3d6; color: #8a5a00; }
.cfx-page .cfx-done h3 { margin: 0 0 10px; font-size: 26px; font-weight: 800; color: var(--green-dark); }
.cfx-page .cfx-done-lead { margin: 0 0 18px; font-size: 18px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.cfx-page .cfx-done-small { margin: 0 0 22px; font-size: 15px; color: #4a5a6b; }
.cfx-page .cfx-next { display: inline-block; max-width: 100%; margin: 0 0 18px; padding: 16px 22px 16px 40px; text-align: left; line-height: 1.6; background: var(--sand); border: 1px solid #dbe5e0; border-radius: 14px; }
.cfx-page .cfx-next li { margin: 4px 0; padding-left: 4px; }

@media (max-width: 767px) {
    .cfx-page .cfx-grid { grid-template-columns: minmax(0, 1fr); }
    .cfx-page .cfx-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .cfx-page .cfx-types label { flex: 1 1 calc(50% - 10px); min-width: 0; }
    .cfx-page .cfx-done .card-body { padding-top: 28px; padding-bottom: 28px; }
    .cfx-page .cfx-done .largeButton { width: 100%; text-align: center; }
}
