/* ==========================================================================
   Helpum Core — frontend styles
   Design tokens follow the Helpum brand pass: deep navy + brass/gold accent.
   Scoped under .helpum-form-wrap so nothing leaks into the parent theme.
   ========================================================================== */

.helpum-form-wrap {
    --helpum-ink: #10233F;
    --helpum-ink-2: #173764;
    --helpum-gold: #B7862C;
    --helpum-gold-deep: #8A6220;
    --helpum-paper: #F6F4EF;
    --helpum-text: #1B2433;
    --helpum-muted: #5B6472;
    --helpum-line: #E1DFD6;
    --helpum-muted-navy: rgba(255, 255, 255, 0.72);
    --helpum-line-navy: rgba(255, 255, 255, 0.18);

    margin: 0 0 30px;
}

.helpum-form h3:empty {
    display: none;
}

.helpum-form h3 {
    margin: 0 0 20px;
    color: var(--helpum-ink);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.helpum-hp {
    left: -9999px;
    position: absolute;
    top: auto;
}

.helpum-form-message {
    border-radius: 4px;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.helpum-form-success {
    background: #e8f5ec;
    border: 1px solid #b9dfc4;
    color: #1e6f35;
}

.helpum-form-error {
    background: #fff0f0;
    border: 1px solid #f0b8b8;
    color: #9f1d1d;
}

/* ------------------------------ consents -------------------------------- */

.helpum-consents {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.helpum-file-label,
.helpum-consent {
    display: block;
    margin-bottom: 12px;
}

.helpum-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--helpum-muted);
}

.helpum-consent input {
    margin: 3px 0 0;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    accent-color: var(--helpum-gold);
}

.helpum-consent--compact {
    font-size: 11px;
    color: var(--helpum-muted-navy);
}

/* ------------------------------ dropzone -------------------------------- */

.helpum-dropzone {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1.5px dashed #C7B79A;
    border-radius: 9px;
    background: #FBFAF6;
    padding: 16px 18px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.helpum-dropzone.is-dragover {
    border-color: var(--helpum-gold);
    background: #F4ECDC;
}

.helpum-dropzone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.helpum-dropzone__button {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--helpum-ink);
    background: #EFEAE0;
    border: 1px solid var(--helpum-line);
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    white-space: nowrap;
}

.helpum-dropzone__button:hover {
    background: #E7E1D3;
}

.helpum-dropzone__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: var(--helpum-text);
}

.helpum-dropzone__text small {
    color: var(--helpum-muted);
    font-size: 11.5px;
}

.helpum-dropzone__files {
    color: var(--helpum-gold-deep) !important;
    font-weight: 500;
}

/* -------------------------- trust sidebar layout ------------------------- */

.helpum-form-wrap.has-sidebar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--helpum-paper);
    border-radius: 10px;
    overflow: hidden;
}

.helpum-form-wrap.has-sidebar .helpum-form-main {
    flex: 1 1 60%;
    padding: 40px;
}

.helpum-form-side {
    flex: 0 0 320px;
    background: linear-gradient(175deg, var(--helpum-ink), var(--helpum-ink-2) 65%, #173764);
    color: #fff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.helpum-form-side h4 {
    margin: 0;
    font-size: 19px;
    color: #fff;
}

.helpum-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: helpum-step;
}

.helpum-steps li {
    position: relative;
    padding-left: 38px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--helpum-muted-navy);
    counter-increment: helpum-step;
}

.helpum-steps li strong {
    color: #fff;
    font-weight: 600;
}

.helpum-steps li::before {
    content: counter(helpum-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--helpum-line-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.helpum-stats {
    display: flex;
    gap: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--helpum-line-navy);
}

.helpum-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.helpum-stat__num {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}

.helpum-stat__label {
    font-size: 11.5px;
    color: var(--helpum-muted-navy);
}

.helpum-side-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--helpum-muted-navy);
}

@media (max-width: 782px) {
    .helpum-form-wrap.has-sidebar {
        flex-direction: column;
    }

    .helpum-form-side {
        flex-basis: auto;
    }
}

/* --------------------------- quick phone form ---------------------------- */

.helpum-quick-form-wrap .helpum-quick-form {
    background: linear-gradient(160deg, var(--helpum-ink), var(--helpum-ink-2));
    border-radius: 10px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.helpum-quick-form__heading h4 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #fff;
}

.helpum-quick-form__heading p {
    margin: 0;
    font-size: 12.5px;
    color: var(--helpum-muted-navy);
}

.helpum-quick-form__row {
    display: flex;
    gap: 10px;
}

.helpum-quick-form__row input {
    flex: 1 1 auto;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 12px 14px;
}

.helpum-quick-form__row button {
    white-space: nowrap;
}

/* ----------------------------- calculator -------------------------------- */

.helpum-calc-badge {
    background: var(--helpum-ink) !important;
    border-radius: 9px;
}

.helpum-calculator .helpum-form-wrap {
    margin: 0;
}

.helpum-calculator .helpum-form h3:empty {
    display: none;
}
