/* ==========================================================================
   Bottom proposal form — specs/Free Proposal Form — Design Specs.md
   Markup: index-form.php (homepage #contact-us, Services page).
   Fonts: Oswald 500/700 + Montserrat 400–800 (Google Fonts, linked in the page head).

   `html[data-theme]` + !important on colours/borders: themes.css, main.css and
   innerpages.css style bare input/label/h2/p site-wide, some with !important.
   ========================================================================== */
.pf-card {
    --pf-navy: #0B1F33;
    --pf-cyan: #2EE0FF;
    --pf-cyan-tint: rgba(46, 224, 255, .12);
    --pf-cyan-border: rgba(46, 224, 255, .22);
    --pf-cyan-hover: rgba(46, 224, 255, .60);
    --pf-gold: #F0B429;
    --pf-text: #EAF2F8;
    --pf-text-muted: rgba(234, 242, 248, .65);
    --pf-label: rgba(234, 242, 248, .60);
    --pf-placeholder: rgba(234, 242, 248, .35);
    --pf-line: rgba(255, 255, 255, .18);
    --pf-pill-border: rgba(255, 255, 255, .20);
    --pf-pill-fill: rgba(255, 255, 255, .04);
    --pf-cta: linear-gradient(90deg, #1E63F5 0%, #6B3BEA 100%);
    --pf-ghost-border: rgba(46, 224, 255, .45);

    width: 100%;
    max-width: 640px;
    margin: 0;
    box-sizing: border-box;
    padding: 40px 40px 36px;
    background: transparent; /* no card fill/border: sits straight on the section */
    border: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--pf-text);
    text-align: left;
}
.pf-card *,
.pf-card *::before,
.pf-card *::after {
    box-sizing: border-box;
}
/* Services page: the form sits in a light panel (.banner-formbg), so it needs
   the spec's navy card back for the white text to show. */
.banner-formbg .pf-card {
    background: var(--pf-navy);
    border: 1px solid var(--pf-cyan-border);
    border-radius: 6px;
}
@media (max-width: 575px) {
    .banner-formbg .pf-card {
        padding: 28px 20px 26px;
    }
}

/* ---- Header ------------------------------------------------------------- */
html[data-theme] .pf-card .pf-eyebrow {
    margin: 0 0 12px;
    font: 700 11px/1 'Montserrat', sans-serif;
    letter-spacing: .20em;
    text-transform: uppercase;
    color: var(--pf-cyan) !important;
}
html[data-theme] .pf-card .pf-title {
    margin: 0 0 12px;
    font: 700 38px/1.05 'Oswald', sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff !important;
}
html[data-theme] .pf-card .pf-sub {
    margin: 0 0 28px;
    font: 400 14px/1.6 'Montserrat', sans-serif;
    color: var(--pf-text-muted) !important;
}

/* ---- Fields: 2-column grid like the hero form -------------------------- */
.pf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 28px;
}
.pf-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.pf-field.pf-full {
    grid-column: 1 / -1;
}
html[data-theme] .pf-card .pf-field > label,
html[data-theme] .pf-card .pf-legend {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 10px;
    padding: 0;
    font: 600 11px/1 'Montserrat', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pf-label) !important;
}
html[data-theme] .pf-card .pf-num {
    font-weight: 700;
    color: var(--pf-cyan) !important;
}
html[data-theme] .pf-card .pf-req {
    color: var(--pf-gold) !important;
}
html[data-theme] .pf-card .pf-field input {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 4px 0 10px;
    border: 0 !important;
    border-bottom: 1px solid var(--pf-line) !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    outline: none;
    font: 400 14px 'Montserrat', sans-serif;
    color: #fff !important;
    transition: border-color .2s;
}
/* Hover hint: softer cyan underline + brighter label; focus is full cyan. */
html[data-theme] .pf-card .pf-field:hover input {
    border-bottom-color: var(--pf-cyan-hover) !important;
}
html[data-theme] .pf-card .pf-field input:focus {
    border-bottom-color: var(--pf-cyan) !important;
}
html[data-theme] .pf-card .pf-field > label {
    cursor: text;
    transition: color .2s;
}
html[data-theme] .pf-card .pf-field:hover > label,
html[data-theme] .pf-card .pf-field:focus-within > label {
    color: var(--pf-text) !important;
}
html[data-theme] .pf-card .pf-field input::placeholder {
    color: var(--pf-placeholder) !important;
    opacity: 1;
}

/* ---- Service pills ------------------------------------------------------ */
.pf-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
html[data-theme] .pf-card .pf-pill {
    position: relative;
    margin: 0;
    padding: 0;
    font-size: inherit;
    text-transform: none;
    letter-spacing: 0;
}
html[data-theme] .pf-card .pf-pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
html[data-theme] .pf-card .pf-pill span {
    display: inline-block;
    padding: 10px 16px;
    cursor: pointer;
    user-select: none;
    font: 500 13px/1 'Montserrat', sans-serif;
    color: var(--pf-text) !important;
    background: var(--pf-pill-fill);
    border: 1px solid var(--pf-pill-border);
    border-radius: 999px;
    transition: background .15s, color .15s, border-color .15s;
}
html[data-theme] .pf-card .pf-pill span:hover {
    border-color: var(--pf-cyan-hover);
}
html[data-theme] .pf-card .pf-pill input:checked + span {
    font-weight: 600;
    color: var(--pf-cyan) !important;
    background: var(--pf-cyan-tint);
    border-color: var(--pf-cyan);
}
html[data-theme] .pf-card .pf-pill input:focus-visible + span {
    outline: 2px solid var(--pf-cyan);
    outline-offset: 2px;
}

/* ---- reCAPTCHA ---------------------------------------------------------- */
.pf-captcha {
    margin-top: 30px;
    text-align: left; /* some page sections centre their text */
}
.pf-captcha .g-recaptcha {
    display: block;
    width: max-content;
    margin: 0;
    padding: 0;
}
.pf-captcha-err {
    margin-top: 6px;
    font-size: 12px;
    color: #ff6b6b;
}

/* ---- Buttons ------------------------------------------------------------ */
.pf-actions {
    display: flex;
    flex-wrap: nowrap; /* keep Reset beside the submit button */
    gap: 12px;
    margin-top: 22px;
}
html[data-theme] .pf-card .pf-submit,
html[data-theme] .pf-card .pf-reset {
    margin: 0;
    padding: 18px 20px;
    white-space: nowrap;
    border-radius: 3px;
    cursor: pointer;
    font: 700 14px/1 'Montserrat', sans-serif;
    text-transform: uppercase;
    box-shadow: none;
    transition: transform .2s, box-shadow .2s, border-color .2s, opacity .2s;
}
html[data-theme] .pf-card .pf-submit {
    flex: 1 1 auto;
    min-width: 0;
    border: 0 !important;
    background: var(--pf-cta) !important;
    color: #fff !important;
    letter-spacing: .12em; /* spec .18em; tightened so Reset fits alongside */
}
html[data-theme] .pf-card .pf-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px -10px rgba(107, 59, 234, .6);
}
html[data-theme] .pf-card .pf-submit:disabled {
    opacity: .7;
    cursor: default;
    transform: none;
}
html[data-theme] .pf-card .pf-reset {
    flex: 0 0 auto;
    border: 1px solid var(--pf-ghost-border) !important;
    background: transparent !important;
    color: var(--pf-text) !important;
    font-weight: 600;
    letter-spacing: .08em;
}
html[data-theme] .pf-card .pf-reset:hover {
    border-color: var(--pf-cyan) !important;
}
html[data-theme] .pf-card .pf-submit:focus-visible,
html[data-theme] .pf-card .pf-reset:focus-visible {
    outline: 2px solid var(--pf-cyan);
    outline-offset: 3px;
}

/* ---- Mobile ------------------------------------------------------------- */
@media (max-width: 575px) {
    .pf-card {
        padding: 28px 20px 26px;
    }
    html[data-theme] .pf-card .pf-title {
        font-size: 32px;
    }
    .pf-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .pf-actions {
        flex-direction: column;
    }
}
