/* Support form (tech_service.php). Uses the site's palette and components from css5/newstyles.css:
   BC blue #234075, text #474341, tint blue #b5daec, tint teal #c7e7df. */

.support-form-page .container > * { max-width: 62rem; }
.support-form-page h2 { margin: 0 0 0.75rem; }
.support-form-page h3 { margin: 1.75rem 0 0.75rem; }

.support-intro { margin-bottom: 1.5rem; }

/* Where they are: Start › A certificate › ... */
.guide-trail { font-size: 14px; color: #474341; margin-bottom: 1rem; }
.guide-trail a, .guide-trail .btn-link { font-size: 14px; color: #1a5a96; text-decoration: underline; vertical-align: baseline; }
.guide-trail .sep { margin: 0 0.3rem; }

.guide-lead { max-width: 52rem; margin: -0.25rem 0 1rem; }
.guide-lead p { margin-bottom: 0.5rem; }
.guide-question:focus, .guide-answer:focus, .support-intro h2:focus { outline: none; }

/* Choices: like the cards on the support home page */
.guide-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.guide-options-top { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767px) { .guide-options, .guide-options-top { grid-template-columns: 1fr; } }
.guide-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 4rem;
    padding: 0.75rem 1.25rem;
    border: 3px solid #b5daec;
    border-radius: 0.375rem;
    background: #fff;
    color: #234075;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    transition: border-color 0.15s, background-color 0.15s;
}
.guide-option:hover { border-color: #306BA0; background: #f5fafd; }
.guide-option:focus-visible { outline: 3px solid #FCBA19; outline-offset: 2px; }
.guide-option-other { border-color: #dee2e6; color: #474341; font-weight: 400; }

/* A warning switched on in the editor (e.g. delays) */
.guide-notice {
    max-width: 52rem;
    background: #fef1d8;
    border-left: 4px solid #fcba19;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    color: #474341;
}
.guide-notice > :last-child { margin-bottom: 0; }

/* The answer: same heading as a question, the text in a site callout, the next step below it */
.guide-answer-body {
    max-width: 52rem;
    background: #f5fafd;
    border-left: 4px solid #b5daec;
    padding: 1.25rem 1.5rem;
    line-height: 1.6;
}
.guide-answer-body > :last-child { margin-bottom: 0; }
.guide-answer-body p { margin-bottom: 0.75rem; }
.guide-answer-body ul, .guide-answer-body ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.guide-answer-body li { margin-bottom: 0.6rem; }
.guide-answer-body li:last-child { margin-bottom: 0; }
.guide-answer-body b, .guide-answer-body strong { font-weight: 600; color: #234075; }
.guide-answer-body img { max-width: 100%; height: auto; }
.guide-helped { margin-top: 1.5rem; }
.guide-helped p { font-size: 18px; font-weight: 500; color: #234075; margin-bottom: 0.75rem; }
.guide-helped .btn { margin: 0 0.5rem 0.5rem 0; }

/* Contact fields */
.support-topic {
    background: #f5fafd;
    border-left: 4px solid #b5daec;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}
.support-topic p { margin: 0; }
.support-note { margin: 0.35rem 0 0.25rem; }
.support-step { border: 0; padding: 0; margin: 0; }
.support-step legend { float: none; width: auto; font-size: 20px; font-weight: 500; color: #234075; margin: 1.75rem 0 0.75rem; }
.support-form-page .form-label { font-weight: 500; margin-bottom: 0.25rem; color: #474341; }
.form-hint { color: #474341; font-size: 14px; margin-bottom: 0.35rem; }
.req, .opt { font-weight: 400; color: #6c757d; font-size: 14px; }
.field-error { color: #b00020; font-weight: 500; margin: 0.35rem 0 0; }
.email-typo { margin: 0.35rem 0 0; font-size: 14px; }
.support-submit { margin-top: 1.5rem; }

/* Hidden field for catching bots */
.support-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Confirmation */
.support-done {
    border: 3px solid #c7e7df;
    border-radius: 0.375rem;
    padding: 1.5rem;
}
.support-done h2 i { color: #24787C; }

/* Buttons in BC blue (the site only restyles .btn-primary's resting state) */
.support-form-page .btn-primary {
    --bs-btn-bg: #234075; --bs-btn-border-color: #234075;
    --bs-btn-hover-bg: #1b3160; --bs-btn-hover-border-color: #1b3160;
    --bs-btn-active-bg: #16284f; --bs-btn-active-border-color: #16284f;
}
.support-form-page .btn-outline-primary {
    --bs-btn-color: #234075; --bs-btn-border-color: #234075;
    --bs-btn-hover-bg: #234075; --bs-btn-hover-border-color: #234075; --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #234075; --bs-btn-active-border-color: #234075; --bs-btn-active-color: #fff;
}
.support-form-page .btn-link { color: #1a5a96; }
.support-form-page .btn-link:hover { color: #2378c7; }

/* One question at a time (form.js adds .wiz-on; without JavaScript every step shows) */
.wiz-step { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.wiz-q { display: block; float: none; width: auto; font-size: 20px; font-weight: 500; color: #234075; margin: 0 0 0.35rem; padding: 0; }
.wiz-on .wiz-step { display: none; }
.wiz-on .wiz-step.wiz-current { display: block; }
.wiz-on .wiz-step.wiz-current .form-control, .wiz-on .wiz-step.wiz-current .form-select { max-width: 36rem; }
.wiz-on .wiz-step.wiz-current textarea.form-control { max-width: 48rem; }
.wiz-progress { font-size: 14px; color: #474341; margin: 1.25rem 0 0.75rem; }
.wiz-bar { display: block; height: 6px; max-width: 20rem; margin-top: 0.4rem; background: #e3e8ee; border-radius: 3px; overflow: hidden; }
.wiz-bar span { display: block; height: 100%; background: #234075; border-radius: 3px; }
.wiz-review { margin: 0.5rem 0 1rem; max-width: 48rem; border-top: 1px solid #dee2e6; }
.wiz-review-row { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid #dee2e6; }
.wiz-review dt { font-weight: 500; color: #474341; }
.wiz-review dd { margin: 0; overflow-wrap: anywhere; }
.wiz-none { color: #6c757d; font-style: italic; }
.wiz-change { font-size: 14px; margin-left: 0.5rem; vertical-align: baseline; }
.support-submit .btn { margin-right: 0.5rem; }
/* Cancel: first in the row, with a wider gap before Back/Next */
.support-submit #support-cancel { padding-left: 0; margin-right: 1.5rem; }
@media (max-width: 575px) { .wiz-review-row { grid-template-columns: 1fr; gap: 0.15rem; } }
