/* ============================================
   NESA POWER — Quote Form & Thank You Styling
   ============================================ */

/* --- Page wrappers --- */
.nesa-quote-section {
    background: linear-gradient(180deg, #070B19 0%, #0D1233 100%);
    position: relative;
    overflow: hidden;
}
.nesa-quote-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(11,55,255,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(122,226,124,0.03) 0%, transparent 50%);
    pointer-events: none;
}
.nesa-quote-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 160px 24px 80px;
    position: relative;
    z-index: 1;
}
@media (max-width: 767px) {
    .nesa-quote-inner { padding: 120px 16px 60px; }
}

/* Intro */
.nesa-quote-intro {
    text-align: center;
    margin-bottom: 32px;
}
.nesa-badge {
    display: inline-block;
    background: rgba(11,55,255,0.12);
    border: 1px solid rgba(11,55,255,0.25);
    border-radius: 100px;
    padding: 6px 20px;
    margin-bottom: 20px;
}
.nesa-badge span {
    color: #7AE27C;
    font-family: 'Switzer', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.nesa-quote-intro h1 {
    color: #FFFFFF;
    font-family: 'Switzer', sans-serif;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    line-height: 1.15;
}
.nesa-quote-intro p {
    color: rgba(255,255,255,0.5);
    font-family: 'Switzer', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    max-width: 520px;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .nesa-quote-intro h1 { font-size: 32px; }
}

/* Glass card */
.nesa-form-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ---- METFORM OVERRIDES ---- */

/* Kill all default spacing Elementor/MetForm adds */
.metform-form-content .elementor-widget {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.metform-form-content .mf-input-wrapper {
    margin-bottom: 0 !important;
}
.metform-form-content .elementor-element {
    margin-bottom: 0 !important;
}

/* Step containers - vertical spacing between field groups */
.metform-form-content .e-con.e-child {
    --gap: 20px !important;
    --row-gap: 20px !important;
    --column-gap: 20px !important;
   padding: 8px 12px !important;
}

@media (max-width: 767px) {
    .metform-form-content .e-con.e-child {
        padding: 20px 16px !important;
    }
}
/* Root/parent wrapper - no gap, no padding */
.metform-form-content .e-con.e-parent {
    --gap: 0px !important;
    --row-gap: 0px !important;
    padding: 0 !important;
}
/* Grid containers - tight row-gap, keep column-gap */
.metform-form-content .e-con[data-settings*="grid"] {
    --column-gap: 16px !important;
    --row-gap: 20px !important;
    padding: 0 !important;
}

/* ---- Multi-step nav bar ---- */
.metform-form-content .metform-multistep-navs {
    background: #eef5fd !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    padding: 12px 20px !important;
    border-radius: 16px 16px 0 0 !important;
    display: flex !important;
    gap: 8px !important;
}
.metform-form-content .metform-multistep-nav {
    color: #000 !important;
    font-family: 'Switzer', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 8px 20px !important;
    border-radius: 10px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.metform-form-content .metform-multistep-nav.active,
.metform-form-content .metform-multistep-nav.current,
.metform-form-content .metform-multistep-nav:hover {
    color: #FFFFFF !important;
    background: rgba(11,55,255,0.20) !important;
}

/* ---- Headings ---- */
.metform-form-content .elementor-heading-title {
    color: #000000 !important;
    font-family: 'Switzer', sans-serif !important;
}
.metform-form-content h3.elementor-heading-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}
.metform-form-content h4.elementor-heading-title {
    font-size: 17px !important;
    font-weight: 500 !important;
    margin-top: 8px !important;
}
.metform-form-content p.elementor-heading-title {
    color: #000000 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin-bottom: 4px !important;
}

/* ---- Labels ---- */
.metform-form-content .mf-input-label,
.metform-form-content label {
    color: rgba(0,0,0,0.75) !important;
    font-family: 'Switzer', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 0px !important;
    display: block !important;
}
.metform-form-content .mf-input-required-indicator {
    color: #0a36fe !important;
}

/* ---- Text / Email / Tel inputs ---- */
.metform-form-content input[type="text"],
.metform-form-content input[type="email"],
.metform-form-content input[type="tel"],
.metform-form-content input[type="number"],
.metform-form-content input[type="url"],
.metform-form-content textarea,
.metform-form-content .mf-input,
.metform-form-content .iti input {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid #bcc0c6 !important;
    border-radius: 12px !important;
    color: #111827 !important;
    font-family: 'Switzer', sans-serif !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
}
.metform-form-content input:focus,
.metform-form-content select:focus,
.metform-form-content .mf-input:focus {
    border-color: #bcc0c6 !important;
    background: rgba(255,255,255,0.07) !important;
    box-shadow: 0 0 0 3px rgba(11,55,255,0.1) !important;
}
.metform-form-content input::placeholder,
.metform-form-content textarea::placeholder {
    color: #98A2B3 !important;
}

/* ---- Select / Dropdown ---- */
.metform-form-content select,
.metform-form-content .mf-input-select {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid #bcc0c6 !important;
    border-radius: 12px !important;
    color: #111827 !important;
    font-family: 'Switzer', sans-serif !important;
    font-size: 15px !important;
    padding: 12px 40px 12px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    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 d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='2' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    cursor: pointer !important;
}

/* Dropdown options — dark theme */
.metform-form-content select option {
    background: #141830 !important;
    color: #111827 !important;
    padding: 10px !important;
}

/* ---- Radio buttons — circle style ---- */
.metform-form-content .mf-radio-option {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #111827 !important;
    font-family: 'Switzer', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 10px 18px !important;
    margin: 3px 6px 3px 0 !important;
    border-radius: 10px !important;
    border: 1px solid #bcc0c6 !important;
    background: rgba(255,255,255,0.03) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
}
.metform-form-content .mf-radio-option:hover {
    background: rgba(11,55,255,0.08) !important;
    border-color: #bcc0c6 !important;
}
.metform-form-content .mf-radio-option.active {
    background: rgba(11,55,255,0.12) !important;
    border-color: #bcc0c6 !important;
    color: #111827 !important;
}

/* Force circle radio appearance */
.metform-form-content input[type="radio"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 2px solid #bcc0c6 !important;
    border-radius: 50% !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    flex-shrink: 0 !important;
}
.metform-form-content input[type="radio"]:checked {
    border-color: #0B37FF !important;
    background: transparent !important;
}
.metform-form-content input[type="radio"]:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 8px !important;
    height: 8px !important;
    background: #0B37FF !important;
    border-radius: 50% !important;
}

/* Label-to-options gap for radio/checkbox */
.metform-form-content .mf-radio-option:first-of-type,
.metform-form-content .mf-checkbox-option:first-of-type {
    margin-top: 8px !important;
}

/* ---- Checkboxes ---- */
.metform-form-content .mf-checkbox-option {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #111827 !important;
    font-family: 'Switzer', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 10px 18px !important;
    margin: 3px 6px 3px 0 !important;
    border-radius: 10px !important;
    border: 1px solid #bcc0c6 !important;
    background: rgba(255,255,255,0.03) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
}
.metform-form-content .mf-checkbox-option:hover {
    background: rgba(11,55,255,0.08) !important;
    border-color: #bcc0c6 !important;
}
.metform-form-content .mf-checkbox-option.active {
    background: rgba(11,55,255,0.12) !important;
    border-color: #bcc0c6 !important;
    color: #111827 !important;
}

/* Custom checkbox appearance */
.metform-form-content input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 2px solid #bcc0c6 !important;
    border-radius: 4px !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    flex-shrink: 0 !important;
}
.metform-form-content input[type="checkbox"]:checked {
    border-color: #bcc0c6 !important;
    background: #0B37FF !important;
}
.metform-form-content input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 1px !important;
    left: 4px !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #bcc0c6 !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* ---- Buttons ---- */
.metform-form-content .metform-btn,
.metform-form-content button[type="submit"],
.metform-form-content .mf-btn,
.metform-form-content [class*="mf-btn"] button,
.metform-form-content .metform-submit-btn {
    font-family: 'Switzer', sans-serif !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    border: none !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
}

/* Primary (Next, Submit) */
.metform-form-content .mf-btn-next button,
.metform-form-content button[type="submit"],
.metform-form-content .metform-submit-btn,
.metform-form-content .elementor-widget-mf-next-step button,
.metform-form-content .elementor-widget-mf-button button {
    background: #0B37FF !important;
    color: #FFFFFF !important;
}
.metform-form-content .mf-btn-next button:hover,
.metform-form-content button[type="submit"]:hover,
.metform-form-content .elementor-widget-mf-next-step button:hover,
.metform-form-content .elementor-widget-mf-button button:hover {
    background: #7AE27C !important;
    color: #071770 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 20px rgba(122,226,124,0.25) !important;
}

/* Back/Prev button */
.metform-form-content .mf-btn-prev button,
.metform-form-content .elementor-widget-mf-prev-step button {
    background: transparent !important;
    color: #121215 !important;
    border: 1px solid rgba(18,18,21,0.2) !important;
}
.metform-form-content .mf-btn-prev button:hover,
.metform-form-content .elementor-widget-mf-prev-step button:hover {
    background: rgba(255,255,255,0.06) !important;
    color: #121215 !important;
    border-color: rgba(255,255,255,0.35) !important;
}

/* ---- THANK YOU PAGE ---- */
.nesa-thankyou-section {
    background: linear-gradient(180deg, #070B19 0%, #0D1233 100%);
    position: relative;
    overflow: hidden;
}
.nesa-thankyou-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(122,226,124,0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 70%, rgba(11,55,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.nesa-thankyou-inner {
    max-width: 650px;
    margin: 0 auto;
    padding: 160px 24px 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.nesa-thankyou-icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: rgba(122,226,124,0.12);
    border: 2px solid rgba(122,226,124,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}
.nesa-thankyou-inner h2 {
    color: #FFFFFF;
    font-family: 'Switzer', sans-serif;
    font-size: 42px;
    font-weight: 600;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.nesa-thankyou-inner .nesa-subtitle {
    color: rgba(255,255,255,0.5);
    font-family: 'Switzer', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    max-width: 460px;
    margin: 0 auto 40px;
}
.nesa-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 0 0 40px;
}
.nesa-thankyou-inner h3 {
    color: #FFFFFF;
    font-family: 'Switzer', sans-serif;
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 10px;
}
.nesa-thankyou-inner .nesa-schedule-desc {
    color: rgba(255,255,255,0.45);
    font-family: 'Switzer', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px;
}
.nesa-schedule-placeholder {
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 48px 30px;
    margin: 0 0 40px;
}
.nesa-schedule-placeholder p {
    color: rgba(255,255,255,0.3);
    font-family: 'Switzer', sans-serif;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}
.nesa-schedule-placeholder .nesa-sub { font-size: 12px; opacity: 0.7; }
.nesa-cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.nesa-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    background: #0B37FF; color: #FFFFFF;
    text-decoration: none; border-radius: 12px;
    font-family: 'Switzer', sans-serif;
    font-weight: 500; font-size: 15px;
    transition: all 0.25s ease;
}
.nesa-btn-primary:hover {
    background: #7AE27C; color: #071770;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(122,226,124,0.25);
}
.nesa-btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    background: transparent; color: rgba(255,255,255,0.75);
    text-decoration: none; border-radius: 12px;
    font-family: 'Switzer', sans-serif;
    font-weight: 500; font-size: 15px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.25s ease;
}
.nesa-btn-outline:hover {
    background: rgba(255,255,255,0.06);
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.3);
}
@media (max-width: 767px) {
    .nesa-thankyou-inner { padding: 120px 16px 60px; }
    .nesa-thankyou-inner h2 { font-size: 32px; }
    .nesa-cta-row { flex-direction: column; align-items: center; }
}
/* ---- Multistep Navigation (JS-driven) ---- */
.nesa-step-nav {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    background: #EBEBEB;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px 14px 0 0;
}
.nesa-step-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: rgba(11,55,255,0.45);
    color: #ffffff;
    font-family: 'Switzer', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.nesa-step-btn:hover {
    color: rgba(255,255,255,0.9);
    background: #0a36fe;
}
.nesa-step-btn.active {
    color: #FFFFFF;
    background: #0a36fe;
}
.nesa-step-btn.completed {
    color: #7AE27C;
}
.nesa-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.nesa-step-btn.active .nesa-step-num {
    background: rgba(255,255,255,0.08);
    color: #FFFFFF;
}
.nesa-step-btn.completed .nesa-step-num {
    background: rgba(122,226,124,0.15);
    color: #7AE27C;
}
@media (max-width: 767px) {
    .nesa-step-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 6px;
        padding: 10px;
    }
    .nesa-step-btn {
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
        padding: 8px 8px;
        font-size: 12px;
        gap: 6px;
    }
    .nesa-step-num {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

/* ---- Fallback selectors for MetForm Preact/HTM rendering ---- */
/* MetForm uses className= which Preact converts to class= at runtime.
   These selectors target the rendered form after Preact hydration. */

/* Hide all MetForm's built-in multistep navs (we use our own) */
.metform-multistep-navs,
[class*='metform-multistep-nav'] {
    display: none !important;
}

/* Ensure the form wrapper gets full-width treatment */
.mf-form-shortcode,
.mf-form-wrapper {
    width: 100%;
}

/* MetForm form content - apply dark theme */
.mf-form-wrapper form,
.metform-form-content {
    background: transparent !important;
}
/* ==============================================
   FORM SPACING FIX - Nuclear overrides
   Targets every possible selector for the gap.
   ============================================== */

/* All containers inside the MetForm form wrapper */
.mf-form-wrapper .e-con,
.mf-form-wrapper .e-con.e-child,
.mf-form-wrapper .e-con.e-parent,
.mf-form-shortcode .e-con,
.mf-form-shortcode .e-con.e-child,
.mf-form-shortcode .e-con.e-parent,
.elementor-widget-metform .e-con,
.elementor-widget-metform .e-con.e-child,
.elementor-widget-metform .e-con.e-parent,
[data-elementor-post-type='metform-form'] .e-con,
[data-elementor-post-type='metform-form'] .e-con.e-child,
[data-elementor-post-type='metform-form'] .e-con.e-parent {
    --gap: 16px 16px !important;
    --row-gap: 16px !important;
    --column-gap: 16px !important;
    gap: 16px !important;
    row-gap: 16px !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

/* Root form container - no padding, no gap */
[data-elementor-post-type='metform-form'] > .e-con.e-parent,
.mf-form-wrapper > div > .e-con.e-parent {
    --gap: 0 !important;
    --row-gap: 0 !important;
    --column-gap: 0 !important;
    gap: 0 !important;
    row-gap: 0 !important;
    padding: 0 !important;
}

/* Grid sub-containers inside the form - NO outer padding, tight row gap */
[data-elementor-post-type='metform-form'] .e-con > .e-con,
.mf-form-wrapper .e-con > .e-con {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Kill all widget bottom margins */
.mf-form-wrapper .elementor-widget,
.mf-form-shortcode .elementor-widget,
.elementor-widget-metform .elementor-widget,
[data-elementor-post-type='metform-form'] .elementor-widget {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Kill MetForm input wrapper margins */
.mf-form-wrapper .mf-input-wrapper,
[data-elementor-post-type='metform-form'] .mf-input-wrapper {
    margin-bottom: 0 !important;
}

/* Kill any elementor-element margin */
[data-elementor-post-type='metform-form'] .elementor-element {
    margin-bottom: 0 !important;
}



/* Refined Button Styles based on user request */
.metform-form-content .mf-btn-wraper,
.metform-form-content .elementor-widget-mf-button .elementor-widget-container,
.metform-form-content .elementor-widget-mf-next-step .elementor-widget-container {
    margin-top: 32px !important;
}

.metform-form-content .mf-btn-next button,
.metform-form-content button[type="submit"],
.metform-form-content .metform-submit-btn,
.metform-form-content .elementor-widget-mf-next-step button,
.metform-form-content .elementor-widget-mf-button button {
    box-shadow: none !important;
    border-radius: 99px !important;
    padding: 18px 48px !important;
}

.metform-form-content .mf-btn-next button:hover,
.metform-form-content button[type="submit"]:hover,
.metform-form-content .metform-submit-btn:hover,
.metform-form-content .elementor-widget-mf-next-step button:hover,
.metform-form-content .elementor-widget-mf-button button:hover {
    box-shadow: none !important;
}

/* Fix for Select Dropdown Text Color when Focused/Selected */
.mf-form-wrapper .mf_select__control--is-focused .mf_select__single-value,
.mf-form-wrapper .mf_select__single-value,
.mf-form-wrapper .mf-input-select .mf_select__single-value,
[data-elementor-post-type='metform-form'] .mf_select__single-value {
    color: #000000 !important;
}

/* Ensure selected text is bright white when something is actually selected vs placeholder */
.mf-form-wrapper .mf_select__control--is-focused .mf_select__single-value {
    color: #000000 !important;
}

.nesa-step-error {
    background: rgba(180, 40, 40, 0.18);
    border: 1px solid rgba(255, 90, 90, 0.45);
    color: #ffd6d6;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 18px;
    font-family: 'Switzer', sans-serif;
    font-size: 14px;
}
.nesa-inline-error {
    color: #ff8a8a;
    font-size: 12px;
    margin-top: 6px;
    font-family: 'Switzer', sans-serif;
}
.nesa-field-error .mf-input,
.nesa-field-error .mf_select__control,
.nesa-field-error input[type="text"],
.nesa-field-error input[type="email"],
.nesa-field-error input[type="tel"] {
    border-color: rgba(255, 90, 90, 0.7) !important;
}

/* Mobile: keep steps side-by-side and reduce form padding */
@media (max-width: 767px) {
    .mf-form-wrapper .e-con,
    .mf-form-wrapper .e-con.e-child,
    .mf-form-wrapper .e-con.e-parent,
    .mf-form-shortcode .e-con,
    .mf-form-shortcode .e-con.e-child,
    .mf-form-shortcode .e-con.e-parent,
    .elementor-widget-metform .e-con,
    .elementor-widget-metform .e-con.e-child,
    .elementor-widget-metform .e-con.e-parent,
    [data-elementor-post-type='metform-form'] .e-con,
    [data-elementor-post-type='metform-form'] .e-con.e-child,
    [data-elementor-post-type='metform-form'] .e-con.e-parent,
    .metform-form-content .e-con.e-child {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    [data-elementor-post-type='metform-form'] .e-con > .e-con,
    .mf-form-wrapper .e-con > .e-con,
    .elementor-widget-metform .e-con > .e-con,
    .metform-form-content .e-con > .e-con {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .metform-form-content .e-con.e-child {
        padding: 20px 20px !important;
    }

    /* Nested field groups: don't stack extra padding on top of flex gap */
    .metform-form-content .e-con > .e-con,
    [data-elementor-post-type='metform-form'] .e-con > .e-con,
    .mf-form-wrapper .e-con > .e-con,
    .elementor-widget-metform .e-con > .e-con {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .metform-form-content .mf-btn-wraper,
    .metform-form-content .elementor-widget-mf-button .elementor-widget-container,
    .metform-form-content .elementor-widget-mf-next-step .elementor-widget-container {
        margin-top: 16px !important;
    }

    .metform-form-content .mf-btn-next button,
    .metform-form-content button[type="submit"],
    .metform-form-content .metform-submit-btn,
    .metform-form-content .elementor-widget-mf-next-step button,
    .metform-form-content .elementor-widget-mf-button button {
        width: 100%;
        padding: 16px 24px !important;
        box-sizing: border-box !important;
    }

    .metform-form-content .mf-radio-option,
    .metform-form-content .mf-checkbox-option {
        width: 100%;
        margin: 4px 0 !important;
    }
}
