/* ==========================================================================
   Proposal form card ("sc-" classes) — specs/hero-section-form-spec.md
   Markup: hero-form.php. Shared by the homepage hero and the top form on the
   Services-menu pages, so it lives in its own file (moved out of index3.css).
   Needs the Montserrat + Inter Google fonts on the page.

   The `html[data-theme]` prefix + !important on colors is needed because
   themes.css forces h2 / p / label / span colors with !important.
   ========================================================================== */
.sc-form-card {
    --sc-cream: #FBF8F3;
    --sc-panel: #F3E8DC;
    --sc-panel-line: #E6D7C6;
    --sc-navy: #13294B;
    --sc-navy-2: #1E3A63;
    --sc-gold: #D9A521;
    --sc-muted: #6B7385;
    width: 100%;
    max-width: 620px;
    box-sizing: border-box;
    background: var(--sc-cream);
    border-radius: 6px;
    padding: 32px 30px 30px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    font-family: 'Inter', sans-serif;
    color: var(--sc-navy);
    text-align: left;
}
.sc-form-card *,
.sc-form-card *::before,
.sc-form-card *::after {
    box-sizing: border-box;
}
html[data-theme] .sc-form-card .sc-form-title {
    font: 800 clamp(28px, 4vw, 38px)/1.05 'Montserrat', sans-serif;
    letter-spacing: -.02em;
    text-transform: none;
    color: var(--sc-navy) !important;
    margin: 0 0 8px;
}
html[data-theme] .sc-form-card .sc-form-sub {
    font: 400 14px/1.5 'Inter', sans-serif;
    color: var(--sc-muted) !important;
    margin: 0 0 22px;
}
html[data-theme] .sc-form-card .sc-form-sub a {
    color: var(--sc-navy) !important;
    font-weight: 600;
    text-decoration: underline;
}
.sc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--sc-panel);
    border-top: 1px solid var(--sc-panel-line);
}
.sc-field {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 14px 18px 16px;
    border: 0;
    border-bottom: 1px solid var(--sc-panel-line);
}
.sc-field:nth-child(odd) {
    border-right: 1px solid var(--sc-panel-line);
}
.sc-field.sc-full {
    grid-column: 1 / -1;
    border-right: 0;
}
html[data-theme] .sc-form-card .sc-field > label,
html[data-theme] .sc-form-card .sc-legend {
    display: block;
    float: none;
    width: auto;
    padding: 0;
    font: 600 10px/1.4 'Inter', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sc-navy-2) !important;
    margin: 0 0 6px;
}
html[data-theme] .sc-form-card .sc-num {
    color: var(--sc-muted) !important;
}
html[data-theme] .sc-form-card .sc-req {
    color: var(--sc-gold) !important;
}
html[data-theme] .sc-form-card .sc-field input {
    width: 100%;
    height: auto;
    margin: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    outline: none;
    font: 400 14px 'Montserrat', sans-serif;
    color: var(--sc-navy) !important;
    padding: 2px 0 8px;
}
html[data-theme] .sc-form-card .sc-field input::placeholder {
    color: #A9A39A;
    font-weight: 500;
    opacity: 1;
}
.sc-field::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 12px;
    width: 34px;
    height: 2px;
    background: var(--sc-gold);
    transition: width .25s ease;
}
/* Hover hint: the gold line grows partway (focus still takes it full width). */
.sc-field:hover::after {
    width: 40%;
}
.sc-field:focus-within::after {
    width: calc(100% - 36px);
}
.sc-field:not(.sc-services) {
    cursor: text;
}
html[data-theme] .sc-form-card .sc-field > label {
    transition: color .2s;
}
html[data-theme] .sc-form-card .sc-field:hover > label,
html[data-theme] .sc-form-card .sc-field:focus-within > label {
    color: var(--sc-navy) !important;
}
.sc-field.sc-services::after {
    display: none;
}
/* A <legend> sits on the fieldset's top edge, outside its padding, so it hugs
   the row above. Move the top padding onto the legend instead. */
.sc-field.sc-services {
    padding-top: 0;
}
html[data-theme] .sc-form-card .sc-services .sc-legend {
    padding-top: 14px;
}
.sc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
html[data-theme] .sc-form-card .sc-chip {
    position: relative;
    margin: 0;
}
html[data-theme] .sc-form-card .sc-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
html[data-theme] .sc-form-card .sc-chip span {
    display: inline-block;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    font: 500 13px/1.2 'Inter', sans-serif;
    letter-spacing: 0;
    text-transform: none;
    color: var(--sc-navy) !important;
    background: var(--sc-cream);
    border: 1px solid var(--sc-panel-line);
    border-radius: 3px;
    transition: background .15s, color .15s, border-color .15s;
}
html[data-theme] .sc-form-card .sc-chip span:hover {
    border-color: var(--sc-gold);
}
html[data-theme] .sc-form-card .sc-chip input:checked + span {
    background: var(--sc-navy);
    color: #fff !important;
    border-color: var(--sc-navy);
}
html[data-theme] .sc-form-card .sc-chip input:focus-visible + span {
    outline: 2px solid var(--sc-gold);
    outline-offset: 2px;
}
.sc-captcha {
    padding: 18px 0 4px;
}
.sc-captcha-err {
    margin-top: 6px;
    font-size: 12px;
    color: #C0392B;
}
html[data-theme] .sc-form-card .sc-submit {
    width: 100%;
    margin-top: 16px;
    border: 0;
    cursor: pointer;
    background: var(--sc-navy) !important;
    background-image: none !important;
    color: #fff !important;
    font: 700 12px 'Montserrat', sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    padding: 18px 20px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background .2s;
}
html[data-theme] .sc-form-card .sc-submit .sc-arrow {
    color: var(--sc-gold) !important;
    transition: transform .2s;
}
html[data-theme] .sc-form-card .sc-submit:hover {
    background: var(--sc-navy-2) !important;
}
html[data-theme] .sc-form-card .sc-submit:hover .sc-arrow {
    transform: translateX(4px);
}
html[data-theme] .sc-form-card .sc-submit:disabled {
    opacity: .7;
    cursor: default;
}
@media (max-width: 560px) {
    .sc-form-card {
        padding: 24px 18px;
    }
    .sc-grid {
        grid-template-columns: 1fr;
    }
    .sc-field:nth-child(odd) {
        border-right: 0;
    }
}
