html.scf-page-active,
body.scf-page-active {
    overflow: hidden !important;
}

.scf-shell,
.scf-shell * {
    box-sizing: border-box;
}

.scf-shell {
    --scf-primary: #142f55;
    --scf-accent: #1f4d85;
    --scf-button: #142f55;
    --scf-text: #172b45;
    --scf-panel-alpha: .92;
    --scf-bg-alpha: .65;
    --scf-bg-image: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: var(--scf-primary) !important;
    color: var(--scf-text) !important;
    font-family: Poppins, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    padding: clamp(24px, 4vw, 58px) !important;
    line-height: 1.45 !important;
}

.scf-shell button,
.scf-shell input,
.scf-shell textarea,
.scf-shell select {
    font-family: inherit !important;
}

.scf-bg-shape {
    position: fixed;
    inset: 28px 7vw;
    background-image: var(--scf-bg-image);
    background-size: cover;
    background-position: center;
    clip-path: polygon(8% 18%, 63% 0, 98% 31%, 83% 88%, 18% 100%, 0 60%);
    opacity: .98;
    filter: saturate(1.04);
    z-index: 0;
}

.scf-soft-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 43, 79, var(--scf-bg-alpha));
    z-index: 1;
}

.scf-brand-panel {
    position: fixed;
    z-index: 3;
    top: clamp(28px, 6vw, 72px);
    left: clamp(26px, 6vw, 110px);
    width: clamp(140px, 14vw, 250px);
    min-height: clamp(130px, 16vw, 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scf-brand-panel img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,.18));
}

.scf-logo-fallback {
    width: 100%;
    padding: 24px 18px;
    background: rgba(255,255,255,.95);
    border: 12px solid #fff;
    color: var(--scf-primary);
    text-align: center;
    border-radius: 6px;
    font-size: clamp(20px, 2vw, 32px);
    font-weight: 900;
    line-height: 1.1;
    box-shadow: 0 20px 40px rgba(0,0,0,.16);
}

.scf-contact-strip {
    position: fixed;
    z-index: 3;
    left: clamp(26px, 6vw, 112px);
    bottom: clamp(32px, 6vw, 78px);
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    color: #fff;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    pointer-events: none;
}

.scf-contact-strip strong,
.scf-contact-strip span {
    display: inline-block;
    background: var(--scf-accent);
    padding: 8px 18px;
    font-size: clamp(16px, 1.9vw, 30px);
    line-height: 1.1;
    width: fit-content;
}

.scf-form {
    position: relative;
    z-index: 4;
    min-height: calc(100dvh - clamp(48px, 8vw, 116px));
}

.scf-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.scf-step {
    display: none !important;
}

.scf-step-active {
    display: block !important;
    animation: scfFadeUp .22s ease-out both;
}

.scf-intro-step {
    min-height: calc(100dvh - clamp(48px, 8vw, 116px));
}

.scf-intro-card,
.scf-question-panel {
    background: rgba(255, 255, 255, var(--scf-panel-alpha));
    border: 1px solid rgba(255,255,255,.52);
    box-shadow: 0 24px 80px rgba(12, 24, 44, .22);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.scf-intro-card {
    position: absolute;
    right: clamp(25px, 5vw, 90px);
    top: 50%;
    transform: translateY(-50%);
    width: min(44vw, 620px);
    min-height: min(64vh, 570px);
    border-radius: 7px;
    padding: clamp(42px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}

.scf-thank-you-card {
    position: relative;
    z-index: 4;
    margin-left: auto;
    margin-top: 15vh;
}

.scf-intro-card h1 {
    color: var(--scf-primary);
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.05;
    letter-spacing: -.05em;
    font-weight: 500;
}

.scf-intro-meta {
    display: grid;
    gap: 4px;
    margin-top: 36px;
}

.scf-intro-meta strong,
.scf-intro-meta span {
    color: var(--scf-primary);
    font-size: clamp(18px, 1.8vw, 28px);
    font-weight: 900;
    line-height: 1.1;
}

.scf-intro-card p {
    margin: 0;
    color: var(--scf-primary);
    font-size: clamp(16px, 1.3vw, 22px);
}

.scf-question-panel {
    position: relative;
    width: min(1120px, 78vw);
    min-height: 650px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 52px) clamp(28px, 5vw, 64px);
    border-radius: 14px;
}

.scf-information-panel {
    margin-top: clamp(12px, 2.5vw, 32px);
    padding-bottom: clamp(48px, 7vw, 96px);
}

@keyframes scfFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.scf-information-panel h1 {
    margin: 0 0 26px;
    color: #171717;
    font-size: clamp(28px, 2.7vw, 42px);
    font-weight: 800;
    line-height: 1.08;
}

.scf-information-panel h2,
.scf-question-panel h2 {
    margin: 0 0 26px;
    color: var(--scf-primary);
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.14;
    font-weight: 500;
}

.scf-intro-notice {
    margin: 0 0 24px;
    color: #171717;
    font-size: 15px;
    line-height: 1.5;
}

.scf-info-copy {
    max-width: 1000px;
    color: #171717;
    font-size: 16px;
    line-height: 1.5;
}

.scf-info-copy p {
    margin: 0 0 18px;
}

.scf-panel-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding-right: 54px;
}

.scf-required-note {
    font-size: 14px;
    color: #111827;
}

.scf-required-note b,
.scf-question-label b {
    color: #c91921;
}

.scf-progress {
    flex: 0 0 170px;
    height: 8px;
    background: rgba(20, 47, 85, .12);
    border-radius: 999px;
    overflow: hidden;
}

.scf-progress span {
    display: block;
    height: 100%;
    background: var(--scf-button);
    border-radius: 999px;
}

.scf-section-description {
    margin: -16px 0 28px;
    color: rgba(23, 43, 69, .78);
    font-size: 16px;
}

.scf-field {
    margin-bottom: 34px;
}

.scf-question-label {
    display: block;
    margin: 0 0 16px;
    color: #171717;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
}

.scf-question-label span {
    margin-right: 6px;
}

.scf-field input[type="text"],
.scf-field input[type="email"],
.scf-field input[type="tel"],
.scf-field input[type="number"],
.scf-field input[type="date"],
.scf-field textarea,
.scf-field select {
    width: 100% !important;
    min-height: 46px;
    border: 0 !important;
    border-radius: 4px;
    background: #fff !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .05) !important;
    padding: 12px 15px !important;
    color: #172033 !important;
    font-size: 16px !important;
    font-family: inherit !important;
}

.scf-field textarea {
    min-height: 90px;
    resize: vertical;
}

.scf-field input:focus,
.scf-field textarea:focus,
.scf-field select:focus {
    outline: 3px solid rgba(31, 77, 133, .20) !important;
    box-shadow: 0 0 0 1px var(--scf-accent) !important;
}

.scf-options {
    display: grid;
    gap: 20px;
}

.scf-option {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    cursor: pointer;
    line-height: 1.6;
    color: #171717;
    font-size: 15px;
}

.scf-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.scf-option span {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(23, 32, 51, .45);
    border-radius: 50%;
    background: transparent;
    margin-top: 4px;
    position: relative;
}

.scf-option input[type="checkbox"] + span {
    border-radius: 7px;
}

.scf-option input:checked + span {
    border-color: var(--scf-button);
    background: var(--scf-button);
}

.scf-option input:checked + span:after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    background: #fff;
}

.scf-option em {
    font-style: normal;
}

.scf-button-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 42px;
}

.scf-button {
    appearance: none !important;
    border: 0 !important;
    background: var(--scf-button) !important;
    color: #fff !important;
    border-radius: 8px !important;
    min-height: 54px;
    padding: 0 26px !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    font-family: inherit !important;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(12, 24, 44, .16);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.scf-button:hover,
.scf-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(12, 24, 44, .24);
}

.scf-button-light {
    background: #fff !important;
    color: #171717 !important;
    box-shadow: none;
}

.scf-password-note {
    margin: 18px 0 0;
    color: #333;
    font-size: 12px;
}

.scf-field-error {
    margin: 8px 0 0;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.scf-field.scf-field-invalid input,
.scf-field.scf-field-invalid textarea,
.scf-field.scf-field-invalid select {
    box-shadow: 0 0 0 2px #d92d20 !important;
}

.scf-field.scf-field-invalid .scf-option span {
    border-color: #d92d20;
}

.scf-menu-button {
    position: fixed;
    right: clamp(18px, 3vw, 46px);
    top: clamp(16px, 2vw, 34px);
    z-index: 10;
    border: 0 !important;
    background: rgba(20, 47, 85, .92) !important;
    color: #fff !important;
    width: 42px;
    height: 42px;
    border-radius: 7px;
    font-size: 0 !important;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.scf-menu-button:before {
    content: "•••";
    font-size: 18px;
    letter-spacing: 2px;
}

.scf-form-menu {
    position: fixed;
    right: clamp(18px, 3vw, 46px);
    top: calc(clamp(16px, 2vw, 34px) + 48px);
    z-index: 10;
    width: 260px;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(12, 24, 44, .18);
}

.scf-form-menu button {
    display: block;
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    text-align: left;
    border-radius: 10px;
    padding: 10px 12px !important;
    cursor: pointer;
    color: var(--scf-primary) !important;
    font-weight: 700;
    font-size: 14px;
}

.scf-form-menu button:hover {
    background: rgba(20, 47, 85, .08) !important;
}

@media (max-width: 1180px) {
    .scf-question-panel {
        width: min(940px, 82vw);
    }

    .scf-intro-card {
        width: min(52vw, 620px);
    }
}

@media (max-width: 980px) {
    .scf-shell {
        min-height: 100dvh !important;
        height: 100dvh !important;
        padding: 18px !important;
    }

    .scf-bg-shape {
        inset: 24px;
        clip-path: none;
        border-radius: 28px;
    }

    .scf-brand-panel,
    .scf-contact-strip {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: min(190px, 48vw);
        min-height: 0;
        margin: 0 auto 18px;
    }

    .scf-contact-strip {
        display: flex;
        align-items: center;
        width: 100%;
        margin: 18px auto 0;
        text-align: center;
    }

    .scf-contact-strip strong,
    .scf-contact-strip span {
        font-size: 16px;
    }

    .scf-form,
    .scf-intro-step {
        min-height: auto;
    }

    .scf-intro-card {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: min(100%, 720px);
        min-height: auto;
        margin: 0 auto;
        padding: 34px;
        border-radius: 16px;
    }

    .scf-thank-you-card {
        margin-top: 0;
    }

    .scf-question-panel {
        width: min(100%, 760px);
        min-height: auto;
        padding: 34px 22px;
    }

    .scf-panel-topline {
        align-items: flex-start;
        flex-direction: column;
        padding-right: 50px;
    }

    .scf-progress {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 560px) {
    .scf-shell {
        padding: 14px !important;
    }

    .scf-intro-card,
    .scf-question-panel {
        padding: 26px 18px;
    }

    .scf-intro-card h1 {
        font-size: 34px;
    }

    .scf-information-panel h1,
    .scf-question-panel h2 {
        font-size: 24px;
    }

    .scf-question-label {
        font-size: 16px;
    }

    .scf-button-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 28px;
    }

    .scf-button {
        width: 100%;
    }

    .scf-option {
        grid-template-columns: 24px minmax(0, 1fr);
        font-size: 14px;
    }
}

/* v1.2 fixes: force the form to sit over WordPress/Elementor and keep the chosen background visible. */
html.scf-page-active,
body.scf-page-active {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
}

html.scf-page-active #wpadminbar,
body.scf-page-active #wpadminbar {
    display: none !important;
}

body.admin-bar .scf-shell,
.scf-shell {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    isolation: isolate !important;
}

.scf-bg-shape {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
}
