/* DaVinci Contact Funnel — frontend styles
   Palette synced to site (Kit ID 14):
     primary:  #2877A6
     deep:     #03346D
     accent:   #0796D6
*/

/* ------------------------------------------------------------------------ */
/* Full-bleed section: fills page width, blue gradient as background        */
/* ------------------------------------------------------------------------ */
.dvcf-section {
    --dvcf-primary: #2877A6;
    --dvcf-deep:    #03346D;
    --dvcf-accent:  #0796D6;
    --dvcf-text:    #FFFFFF;
    --dvcf-bg:      #EFFAFF;
    --dvcf-border:  rgba(255,255,255,0.55);
    --dvcf-error:   #ff8b8b;
    --dvcf-hint:    rgba(255,255,255,0.72);

    /* Break out of parent container constraints — full viewport width */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    background: radial-gradient(ellipse at top, #2877A6 0%, #03346D 60%, #021f44 100%);
    padding: 80px 24px 100px;
    /* No min-height: 100vh anymore — page footer needs to be visible below */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dvcf-text);
    font-family: 'Inter', 'Source Sans Pro', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}
.dvcf-section * { box-sizing: border-box; }

/* Decorative subtle pattern */
.dvcf-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(7,150,214,0.18) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(7,150,214,0.15) 0, transparent 45%);
    opacity: 0.9;
}

/* Hide the WordPress page-title h1 (Hello Elementor's entry-title) on pages
   that render the funnel — it would appear as a black heading above the blue
   section and looks unprofessional. */
body.has-dvcf-funnel .entry-title,
body.has-dvcf-funnel .page-title,
body.has-dvcf-funnel header.page-header h1,
body.has-dvcf-funnel .elementor-widget-theme-post-title {
    display: none !important;
}

/* Force every text element inside the section to be white — overrides the site's
   global H1/H2/H3 colors (Kit 14 sets primary = #2F2F2F).
   Using !important + doubled-class specificity because Hello Elementor + kit CSS
   load AFTER plugin CSS and use selectors like ".elementor-widget h2". */
.dvcf-section.dvcf-section,
.dvcf-section.dvcf-section h1,
.dvcf-section.dvcf-section h2,
.dvcf-section.dvcf-section h3,
.dvcf-section.dvcf-section h4,
.dvcf-section.dvcf-section h5,
.dvcf-section.dvcf-section h6,
.dvcf-section.dvcf-section p,
.dvcf-section.dvcf-section label,
.dvcf-section.dvcf-section span,
.dvcf-section.dvcf-section a,
.dvcf-section.dvcf-section small,
.dvcf-section.dvcf-section em,
.dvcf-section.dvcf-section strong,
.dvcf-section.dvcf-section div,
.dvcf-section.dvcf-section li {
    color: #FFFFFF !important;
}
.dvcf-section.dvcf-section .dvcf-hint,
.dvcf-section.dvcf-section .dvcf-hint * {
    color: rgba(255,255,255,0.72) !important;
}
.dvcf-section.dvcf-section .dvcf-microconsent,
.dvcf-section.dvcf-section .dvcf-microconsent * {
    color: rgba(255,255,255,0.65) !important;
}
.dvcf-section.dvcf-section .dvcf-field-label,
.dvcf-section.dvcf-section .dvcf-field-label * {
    color: #FFFFFF !important;
}
.dvcf-section.dvcf-section .dvcf-field-label small {
    color: rgba(255,255,255,0.65) !important;
}

/* Text inside <input>, <textarea>, <select> — make sure typed text is white */
.dvcf-section.dvcf-section input[type="text"],
.dvcf-section.dvcf-section input[type="email"],
.dvcf-section.dvcf-section input[type="tel"],
.dvcf-section.dvcf-section input[type="number"],
.dvcf-section.dvcf-section input[type="search"],
.dvcf-section.dvcf-section textarea,
.dvcf-section.dvcf-section select,
.dvcf-section.dvcf-section select option {
    color: #FFFFFF !important;
    caret-color: #FFFFFF;
}

/* Select OPTION rendering — they show in browser native dropdown, which uses
   system colors. Force a dark BG + white text via background-color on option. */
.dvcf-section.dvcf-section select option {
    background-color: #03346D !important;
    color: #FFFFFF !important;
}

/* Placeholder text — semi-transparent white */
.dvcf-section.dvcf-section ::placeholder {
    color: rgba(255,255,255,0.55) !important;
    opacity: 1;
}
.dvcf-section.dvcf-section ::-webkit-input-placeholder { color: rgba(255,255,255,0.55) !important; }
.dvcf-section.dvcf-section :-ms-input-placeholder      { color: rgba(255,255,255,0.55) !important; }
.dvcf-section.dvcf-section ::-moz-placeholder          { color: rgba(255,255,255,0.55) !important; opacity: 1; }

/* Chrome / Safari / Edge AUTOFILL — by default they paint inputs yellow with
   dark text. Override using the autofill-specific selector trick. */
.dvcf-section.dvcf-section input:-webkit-autofill,
.dvcf-section.dvcf-section input:-webkit-autofill:hover,
.dvcf-section.dvcf-section input:-webkit-autofill:focus,
.dvcf-section.dvcf-section input:-webkit-autofill:active {
    -webkit-text-fill-color: #FFFFFF !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.10) inset !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #FFFFFF !important;
}

/* Buttons that look "dark text on white" by design (Weiter / Senden / Schließen)
   need their dark color preserved — these have their own explicit rules later. */

/* ------------------------------------------------------------------------ */
/* Inner card                                                                */
/* ------------------------------------------------------------------------ */
.dvcf-funnel {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.dvcf-header {
    padding: 0 16px 28px;
    text-align: center;
}
.dvcf-section .dvcf-title,
.dvcf-section h2.dvcf-title {
    font-family: 'Inter', 'Source Sans Pro', 'Roboto', sans-serif !important;
    font-size: clamp(28px, 4vw, 44px) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 14px !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.dvcf-section .dvcf-subtitle,
.dvcf-section p.dvcf-subtitle {
    font-size: clamp(15px, 1.6vw, 18px) !important;
    opacity: 0.92;
    margin: 0 0 28px !important;
    color: #FFFFFF !important;
    font-weight: 400 !important;
}
.dvcf-section .dvcf-question,
.dvcf-section h3.dvcf-question {
    color: #FFFFFF !important;
}

.dvcf-progress {
    height: 6px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    overflow: hidden;
}
.dvcf-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--dvcf-accent), #FFFFFF);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 12px rgba(7,150,214,0.6);
}

/* ------------------------------------------------------------------------ */
/* Form + slides                                                             */
/* ------------------------------------------------------------------------ */
.dvcf-form {
    padding: 36px 16px 24px;
    position: relative;
    min-height: 260px;
}

.dvcf-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important; height: 1px !important;
    overflow: hidden !important;
}

.dvcf-slide {
    display: none;
    animation: dvcfSlide 0.45s cubic-bezier(.4,0,.2,1);
}
.dvcf-slide.is-active { display: block; }
@keyframes dvcfSlide {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

.dvcf-question {
    font-family: 'Inter', 'Source Sans Pro', 'Roboto', sans-serif;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 700;
    text-align: center;
    margin: 0 auto 28px;
    line-height: 1.35;
    color: var(--dvcf-text);
    max-width: 640px;
}
.dvcf-hint {
    text-align: center;
    color: var(--dvcf-hint);
    font-size: 14px;
    margin: -18px auto 22px;
    max-width: 520px;
}
.dvcf-microconsent {
    font-size: 12.5px;
    color: rgba(255,255,255,0.65);
    margin: 18px auto 0;
    max-width: 480px;
    text-align: center;
    line-height: 1.55;
}
.dvcf-req {
    color: var(--dvcf-accent);
    margin-left: 4px;
    font-weight: 600;
}

/* ------------------------------------------------------------------------ */
/* Option buttons                                                            */
/* ------------------------------------------------------------------------ */
.dvcf-options {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.dvcf-options--two .dvcf-opt   { flex: 1 1 180px; max-width: 240px; }
.dvcf-options--three .dvcf-opt { flex: 0 1 auto; }
.dvcf-options--six             { gap: 12px; }

.dvcf-section .dvcf-opt,
.dvcf-section button.dvcf-opt {
    background: rgba(255,255,255,0.08) !important;
    border: 2px solid rgba(255,255,255,0.55) !important;
    color: #FFFFFF !important;
    border-radius: 999px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(.4,0,.2,1);
    text-align: center;
    font-family: inherit;
    line-height: 1.2;
    min-height: 56px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: none !important;
}
.dvcf-section .dvcf-opt:hover,
.dvcf-section .dvcf-opt:focus-visible {
    background: rgba(7,150,214,0.35) !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.dvcf-section .dvcf-opt.is-selected {
    background: #0796D6 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 8px 28px rgba(7,150,214,0.55);
}

.dvcf-opt--circle {
    width: 80px;
    height: 80px;
    min-width: 80px;
    padding: 0;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    flex: 0 0 auto;
}
.dvcf-opt--pill {
    padding: 0 28px;
    height: 80px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 700;
    min-width: 100px;
}

/* ------------------------------------------------------------------------ */
/* Inputs                                                                    */
/* ------------------------------------------------------------------------ */
.dvcf-input-wrap {
    display: flex;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.dvcf-input-wrap input,
.dvcf-input-wrap select,
.dvcf-form textarea {
    flex: 1 1 240px;
    background: rgba(255,255,255,0.10);
    color: var(--dvcf-text);
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 17px;
    font-family: inherit;
    transition: all 0.2s ease;
    min-height: 56px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.dvcf-input-wrap input::placeholder,
.dvcf-form textarea::placeholder {
    color: rgba(255,255,255,0.55);
}
.dvcf-input-wrap input:focus,
.dvcf-input-wrap select:focus,
.dvcf-form textarea:focus {
    outline: none;
    border-color: var(--dvcf-text);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 4px rgba(7,150,214,0.35);
}
/* Native dropdown arrow visibility on dark bg */
.dvcf-input-wrap select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23FFFFFF' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}
.dvcf-input-wrap select option {
    color: #1a2a3e;
    background: #FFFFFF;
}
.dvcf-form textarea {
    width: 100%;
    max-width: 560px;
    display: block;
    margin: 0 auto 18px;
    resize: vertical;
    min-height: 120px;
}

/* Compound slides (2 fields on one slide) */
.dvcf-compound {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}
.dvcf-compound-field { display: flex; flex-direction: column; gap: 8px; }
.dvcf-compound-field input {
    width: 100%;
    background: rgba(255,255,255,0.10);
    color: #FFFFFF;
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 17px;
    font-family: inherit;
    min-height: 56px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}
.dvcf-compound-field input::placeholder { color: rgba(255,255,255,0.55); }
.dvcf-compound-field input:focus {
    outline: none;
    border-color: #FFFFFF;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 4px rgba(7,150,214,0.35);
}
.dvcf-section .dvcf-field-label {
    display: block;
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    text-align: left;
}
.dvcf-section .dvcf-field-label small {
    color: rgba(255,255,255,0.6) !important;
    font-weight: 400;
}
@media (max-width: 640px) {
    .dvcf-compound { grid-template-columns: 1fr; gap: 14px; }
}

/* High specificity to win over theme button overrides */
.dvcf-section .dvcf-next,
.dvcf-section .dvcf-submit,
.dvcf-section button.dvcf-next,
.dvcf-section button.dvcf-submit {
    background: linear-gradient(135deg, #FFFFFF, #EFFAFF) !important;
    color: #03346D !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
    min-height: 56px;
    flex: 0 0 auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    text-shadow: none !important;
}
.dvcf-next:hover,
.dvcf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(7,150,214,0.4);
}
.dvcf-submit {
    width: 100%;
    max-width: 560px;
    margin: 8px auto 0;
    display: block;
    padding: 20px 32px;
    font-size: 18px;
}
.dvcf-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* ------------------------------------------------------------------------ */
/* Consent + errors + success                                                */
/* ------------------------------------------------------------------------ */
.dvcf-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.55;
    margin: 10px auto 22px;
    color: rgba(255,255,255,0.92);
    max-width: 560px;
    text-align: left;
}
.dvcf-consent input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--dvcf-accent);
}
.dvcf-consent a {
    color: var(--dvcf-text);
    text-decoration: underline;
}

.dvcf-section .dvcf-error,
.dvcf-section.dvcf-section .dvcf-error,
.dvcf-section.dvcf-section p.dvcf-error {
    color: #FFD3D3 !important;
    background: rgba(214, 58, 58, 0.55) !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    margin: 14px auto 0 !important;
    max-width: 520px !important;
    text-align: center !important;
    border: 1px solid rgba(255,140,140,0.6) !important;
    font-weight: 600 !important;
}

.dvcf-success {
    text-align: center;
    padding: 36px 16px;
}
.dvcf-success-logo {
    display: block;
    margin: 0 auto 28px;
    max-width: 260px;
    width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.dvcf-success h3 {
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(26px, 3vw, 36px);
    margin: 0 0 16px;
    color: var(--dvcf-text);
    font-weight: 800;
}
.dvcf-success p {
    font-size: 17px;
    opacity: 0.95;
    color: var(--dvcf-text);
    margin: 0 auto;
    max-width: 480px;
}
.dvcf-section .dvcf-success-close {
    margin-top: 24px;
    background: linear-gradient(135deg, #FFFFFF, #EFFAFF) !important;
    color: #03346D !important;
    border: none;
    border-radius: 999px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.dvcf-section .dvcf-success-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7,150,214,0.3);
}

.dvcf-back-wrap {
    text-align: center;
    padding: 8px 24px 0;
}
.dvcf-back {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    cursor: pointer;
    padding: 10px 16px;
    font-family: inherit;
    transition: color 0.2s ease;
}
.dvcf-back:hover { color: var(--dvcf-text); }

/* ------------------------------------------------------------------------ */
/* Tablet                                                                    */
/* ------------------------------------------------------------------------ */
@media (max-width: 900px) {
    /* WP header is sticky/transparent and overlays the section.
       Pushing content well below to ensure clearance regardless of header height. */
    .dvcf-section.dvcf-section {
        padding-top:    180px;
        padding-right:  20px;
        padding-bottom: 80px;
        padding-left:   20px;
    }
}

/* ------------------------------------------------------------------------ */
/* Mobile                                                                    */
/* ------------------------------------------------------------------------ */
@media (max-width: 640px) {
    .dvcf-section.dvcf-section {
        padding-top:    220px;
        padding-right:  16px;
        padding-bottom: 60px;
        padding-left:   16px;
    }
    .dvcf-header  { padding: 0 8px 20px; }
    /* Title and question stay BIG on mobile — only top spacing changes */
    .dvcf-form    { padding: 24px 4px 16px; min-height: 220px; }
    .dvcf-section .dvcf-question { margin-bottom: 24px !important; }
    .dvcf-options { gap: 10px; }
    .dvcf-opt { padding: 12px 18px; font-size: 14.5px; min-height: 48px; }
    .dvcf-opt--circle { width: 60px; height: 60px; min-width: 60px; font-size: 17px; }
    .dvcf-opt--pill { height: 60px; font-size: 16px; padding: 0 20px; }
    .dvcf-input-wrap { flex-direction: column; }
    .dvcf-input-wrap .dvcf-next,
    .dvcf-input-wrap input,
    .dvcf-input-wrap select { width: 100%; flex: 1 1 100%; }
    .dvcf-submit { padding: 17px 24px; font-size: 16px; }
}

/* Very small phones — header eats more relative space */
@media (max-width: 420px) {
    .dvcf-section.dvcf-section {
        padding-top: 240px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dvcf-slide, .dvcf-progress__bar, .dvcf-opt, .dvcf-next, .dvcf-submit {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================================
   TRIGGER BUTTON (CTA that opens the modal)
   ============================================================================ */
.dvcf-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #2877A6, #03346D);
    color: #FFFFFF !important;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 6px 20px rgba(3,52,109,0.35);
    line-height: 1.2;
    min-height: 48px;
}
.dvcf-trigger:hover,
.dvcf-trigger:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(7,150,214,0.45);
    background: linear-gradient(135deg, #0796D6, #03346D);
    outline: none;
}
.dvcf-trigger:active { transform: translateY(0); }
.dvcf-trigger--small  { padding: 10px 22px; font-size: 14px; min-height: 40px; }
.dvcf-trigger--large  { padding: 18px 40px; font-size: 18px; min-height: 56px; }
.dvcf-trigger--outline {
    background: transparent;
    color: #03346D !important;
    border: 2px solid #03346D;
    box-shadow: none;
}
.dvcf-trigger--outline:hover {
    background: #03346D;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(3,52,109,0.3);
}
.dvcf-trigger__icon { font-size: 1.2em; line-height: 1; }

/* ============================================================================
   MODAL OVERLAY
   ============================================================================ */
.dvcf-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.dvcf-modal-overlay.is-open { display: flex; }
.dvcf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 31, 68, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: dvcfFadeIn 0.25s ease;
}
@keyframes dvcfFadeIn { from { opacity: 0; } to { opacity: 1; } }

.dvcf-modal-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
    animation: dvcfModalIn 0.32s cubic-bezier(.16,1,.3,1);
    display: flex;
    flex-direction: column;
}
@keyframes dvcfModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dvcf-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #FFFFFF !important;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    padding: 0;
}
.dvcf-modal-close:hover {
    background: rgba(255,255,255,0.32);
    transform: scale(1.08);
}

.dvcf-modal-body {
    overflow-y: auto;
    max-height: 92vh;
    -webkit-overflow-scrolling: touch;
}

/* When the funnel renders inside a modal, kill the full-bleed + 100vh tricks */
.dvcf-section--modal {
    width: auto !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    min-height: auto !important;
    padding: 36px 28px 32px !important;
    border-radius: 18px;
}
.dvcf-section--modal::before { display: none; }

/* Disable the JS header-clearance logic inside modals (sticky header isn't an issue here) */
.dvcf-section--modal[style*="padding-top"] {
    /* JS will set inline padding-top; we want to override it for modal */
}

/* Body scroll lock when modal is open (added by JS) */
body.dvcf-modal-open { overflow: hidden; }

/* Mobile modal: full-screen */
@media (max-width: 640px) {
    .dvcf-modal-overlay { padding: 0; }
    .dvcf-modal-frame { max-width: 100%; max-height: 100vh; border-radius: 0; height: 100vh; }
    .dvcf-modal-body { max-height: 100vh; }
    .dvcf-section--modal { padding: 60px 16px 24px !important; }
}
