/* =========================================================================
   Inline CTA Banner � Form Styling
   ========================================================================= */

/* --- Gravity Forms Reset --- */
.fc-banner-form-wrap .gform_wrapper { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
.fc-banner-form-wrap .gform_heading, 
.fc-banner-form-wrap .gfield_description, 
.fc-banner-form-wrap .gform_validation_errors,
.fc-banner-form-wrap .validation_error,
.fc-banner-form-wrap .gform_required_legend { display: none !important; }

/* Nuclear asterisk kill � every specificity GF throws */
.fc-banner-form-wrap .gfield_required,
.fc-banner-form-wrap .gfield_label .gfield_required,
.fc-banner-form-wrap .gform-field-label .gfield_required,
.fc-banner-form-wrap .gform_wrapper .gfield_label .gfield_required,
.fc-banner-form-wrap .gform_wrapper .gform-field-label .gfield_required,
.fc-banner-form-wrap .gform_wrapper .gfield_label .gfield_required.gfield_required_asterisk,
.fc-banner-form-wrap .gform_wrapper .gform-field-label .gfield_required.gfield_required_asterisk,
.fc-banner-form-wrap .gform_wrapper .gfield_label .gfield_required_text,
.fc-banner-form-wrap .gfield_label span.gfield_required,
.fc-banner-form-wrap .gform-field-label span.gfield_required,
.fc-banner-form-wrap .gfield_required_custom,
.fc-banner-form-wrap .gfield_required_text { 
    display: none !important;
    visibility: hidden !important;
    font-size: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* --- Grid Layout --- */
.fc-banner-form-wrap .gform_body { width: 100% !important; margin: 0 !important; }
.fc-banner-form-wrap .gform_fields { 
    display: grid !important; 
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important; 
    gap: 1.5rem !important; 
    list-style: none !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}

@media (min-width: 768px) {
    .fc-banner-form-wrap .gform_fields { 
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
        gap: 1rem 2rem !important;
    }
    .fc-banner-form-wrap .gfield { grid-column: span 1 !important; width: 100% !important; }
    
    /* Full-width: textarea, marked fields, html blocks, and :has fallback */
    .fc-banner-form-wrap .gfield.gfield_textarea,
    .fc-banner-form-wrap .gfield.full-width,
    .fc-banner-form-wrap .gfield:has(textarea),
    .fc-banner-form-wrap .gfield_html { grid-column: span 2 !important; }
}

/* --- Labels � Consistent uppercase treatment --- */
.fc-banner-form-wrap .gfield_label,
.fc-banner-form-wrap .gform-field-label { 
    display: block !important; 
    margin-bottom: 0.625rem !important; 
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.7rem !important; 
    font-weight: 800 !important; 
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: inherit !important; 
}

/* --- Input / Textarea / Select --- */
.fc-banner-form-wrap input:not([type="submit"]):not([type="button"]):not([type="image"]),
.fc-banner-form-wrap textarea,
.fc-banner-form-wrap select {
    width: 100% !important;
    min-width: 100% !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    outline: none !important;
}

/* Baseline focus ring — outline is stripped above, and only the dark/primary
   themes define their own :focus styles, so every other theme needs this
   fallback to keep a visible keyboard focus indicator (WCAG 2.4.7). */
.fc-banner-form-wrap input:not([type="submit"]):not([type="button"]):not([type="image"]):focus,
.fc-banner-form-wrap textarea:focus,
.fc-banner-form-wrap select:focus {
    box-shadow: 0 0 0 2px #047857 !important;
}

.fc-banner-form-wrap textarea {
    min-height: 120px !important;
    height: auto !important;
    resize: vertical !important;
}

/* --- Placeholder --- */
.fc-banner-form-wrap ::placeholder { color: #64748b !important; opacity: 1 !important; }


/* =========================================================================
   DARK THEME
   ========================================================================= */

/* --- Placeholder --- */
.fc-theme-cta-dark .fc-banner-form-wrap ::placeholder { color: #a1aec2 !important; opacity: 1 !important; }


/* Labels */
.fc-theme-cta-dark .fc-banner-form-wrap .gfield_label,
.fc-theme-cta-dark .fc-banner-form-wrap .gform-field-label { color: #64748b !important; }

/* Inputs � idle: subtle inset depth + soft border */
.fc-theme-cta-dark .fc-banner-form-wrap input:not([type="submit"]):not([type="button"]),
.fc-theme-cta-dark .fc-banner-form-wrap textarea,
.fc-theme-cta-dark .fc-banner-form-wrap select { 
    background: #020617 !important; 
    color: #ffffff !important; 
    border: 1px solid rgba(100,116,139,0.42) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3) !important;
}

/* Inputs � focus: emerald ring */
.fc-theme-cta-dark .fc-banner-form-wrap input:not([type="submit"]):not([type="button"]):focus,
.fc-theme-cta-dark .fc-banner-form-wrap textarea:focus,
.fc-theme-cta-dark .fc-banner-form-wrap select:focus { 
    border-color: #13ec80 !important; 
    box-shadow: 0 0 0 1px #13ec80, inset 0 1px 3px rgba(0,0,0,0.3) !important; 
}

/* Drawer container � recessed panel depth */
.fc-theme-cta-dark .js-dropdown-form-pane,
.fc-theme-cta-dark .js-dropdown-grid-view {
    background: rgba(2,6,23,0.6) !important;
    border-color: rgba(255,255,255,0.06) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,0,0,0.2) !important;
}

/* Dropdown cards � elevated hover + icon treatment */
.fc-theme-cta-dark .js-dropdown-grid-view a,
.fc-theme-cta-dark .js-dropdown-grid-view button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 1.25rem 1.5rem !important;
}
.fc-theme-cta-dark .js-dropdown-grid-view a:hover,
.fc-theme-cta-dark .js-dropdown-grid-view button:hover {
    border-color: rgba(19,236,128,0.25) !important;
    box-shadow: 0 0 20px rgba(19,236,128,0.06), inset 0 1px 0 rgba(255,255,255,0.04) !important;
    transform: translateY(-1px);
}
.fc-theme-cta-dark .js-dropdown-grid-view .material-symbols-outlined {
    font-size: 1.25rem !important;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    transition: all 0.3s ease !important;
}
.fc-theme-cta-dark .js-dropdown-grid-view a:hover .material-symbols-outlined,
.fc-theme-cta-dark .js-dropdown-grid-view button:hover .material-symbols-outlined {
    background: rgba(19,236,128,0.1);
    border-color: rgba(19,236,128,0.2);
}

/* Back button � pill treatment (scoped to section, button is outside .fc-banner-form-wrap) */
.fc-theme-cta-dark .js-back-to-grid {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    padding: 0.5rem 1.125rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
}
.fc-theme-cta-dark .js-back-to-grid:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(19,236,128,0.3) !important;
    color: #13ec80 !important;
}

/* Submit � emerald */
.fc-theme-cta-dark .fc-banner-form-wrap input[type="submit"],
.fc-theme-cta-dark .fc-banner-form-wrap button[type="submit"],
.fc-theme-cta-dark .fc-banner-form-wrap .gform_button { 
    background: #13ec80 !important; 
    color: #0f172a !important; 
    box-shadow: 0 4px 14px 0 rgba(19, 236, 128, 0.3) !important;
}
.fc-theme-cta-dark .fc-banner-form-wrap input[type="submit"]:hover,
.fc-theme-cta-dark .fc-banner-form-wrap button[type="submit"]:hover,
.fc-theme-cta-dark .fc-banner-form-wrap .gform_button:hover { 
    background: #34d399 !important; 
    transform: translateY(-2px) !important; 
    box-shadow: 0 6px 22px rgba(19, 236, 128, 0.45) !important;
}


/* =========================================================================
   LIGHT THEME
   ========================================================================= */

.fc-theme-cta-light .fc-banner-form-wrap input[type="submit"],
.fc-theme-cta-light .fc-banner-form-wrap button[type="submit"],
.fc-theme-cta-light .fc-banner-form-wrap .gform_button { 
    background: #2563eb !important; 
    color: #ffffff !important; 
}

/* Light drawer depth */
.fc-theme-cta-light .js-dropdown-form-pane,
.fc-theme-cta-light .js-dropdown-grid-view {
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04) !important;
}

/* Light dropdown cards � hover polish */
.fc-theme-cta-light .js-dropdown-grid-view a,
.fc-theme-cta-light .js-dropdown-grid-view button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 1.25rem 1.5rem !important;
}
.fc-theme-cta-light .js-dropdown-grid-view a:hover,
.fc-theme-cta-light .js-dropdown-grid-view button:hover {
    border-color: rgba(37,99,235,0.3) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    transform: translateY(-1px);
}
.fc-theme-cta-light .js-dropdown-grid-view .material-symbols-outlined {
    font-size: 1.25rem !important;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: rgba(37,99,235,0.06);
    border: 1px solid rgba(37,99,235,0.1);
    flex-shrink: 0;
    transition: all 0.3s ease !important;
}

/* Primary theme back button */
.fc-theme-cta-primary .js-back-to-grid {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    padding: 0.5rem 1.125rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: rgba(255,255,255,0.8) !important;
    font-weight: 700 !important;
}
.fc-theme-cta-primary .js-back-to-grid:hover {
    background: rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
}

/* Primary theme � labels */
.fc-theme-cta-primary .fc-banner-form-wrap .gfield_label,
.fc-theme-cta-primary .fc-banner-form-wrap .gform-field-label { color: rgba(255,255,255,0.7) !important; }

/* Primary theme � inputs */
.fc-theme-cta-primary .fc-banner-form-wrap input:not([type="submit"]):not([type="button"]),
.fc-theme-cta-primary .fc-banner-form-wrap textarea,
.fc-theme-cta-primary .fc-banner-form-wrap select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}
.fc-theme-cta-primary .fc-banner-form-wrap input:not([type="submit"]):not([type="button"]):focus,
.fc-theme-cta-primary .fc-banner-form-wrap textarea:focus,
.fc-theme-cta-primary .fc-banner-form-wrap select:focus {
    box-shadow: 0 0 0 2px #1d4ed8, 0 1px 3px rgba(0,0,0,0.1) !important;
}
.fc-theme-cta-primary .fc-banner-form-wrap ::placeholder { color: #94a3b8 !important; opacity: 1 !important; }

/* Primary theme � submit */
.fc-theme-cta-primary .fc-banner-form-wrap input[type="submit"],
.fc-theme-cta-primary .fc-banner-form-wrap button[type="submit"],
.fc-theme-cta-primary .fc-banner-form-wrap .gform_button {
    background: #ffffff !important;
    color: #2563eb !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15) !important;
}
.fc-theme-cta-primary .fc-banner-form-wrap input[type="submit"]:hover,
.fc-theme-cta-primary .fc-banner-form-wrap button[type="submit"]:hover,
.fc-theme-cta-primary .fc-banner-form-wrap .gform_button:hover {
    background: #f1f5f9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(0,0,0,0.2) !important;
}

/* Primary theme � drawer depth */
.fc-theme-cta-primary .js-dropdown-form-pane,
.fc-theme-cta-primary .js-dropdown-grid-view {
    background: rgba(0,0,0,0.12) !important;
    border-color: rgba(255,255,255,0.12) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05) !important;
}

/* Primary theme � dropdown cards */
.fc-theme-cta-primary .js-dropdown-grid-view a,
.fc-theme-cta-primary .js-dropdown-grid-view button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 1.25rem 1.5rem !important;
}
.fc-theme-cta-primary .js-dropdown-grid-view a:hover,
.fc-theme-cta-primary .js-dropdown-grid-view button:hover {
    background: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.3) !important;
    transform: translateY(-1px);
}
.fc-theme-cta-primary .js-dropdown-grid-view .material-symbols-outlined {
    font-size: 1.25rem !important;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
    transition: all 0.3s ease !important;
}
.fc-theme-cta-primary .js-dropdown-grid-view a:hover .material-symbols-outlined,
.fc-theme-cta-primary .js-dropdown-grid-view button:hover .material-symbols-outlined {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* Light back button */
.fc-theme-cta-light .js-back-to-grid {
    background: rgba(0,0,0,0.04) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    padding: 0.5rem 1.125rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #64748b !important;
    font-weight: 700 !important;
}
.fc-theme-cta-light .js-back-to-grid:hover {
    background: rgba(0,0,0,0.07) !important;
    border-color: rgba(37,99,235,0.3) !important;
    color: #2563eb !important;
}


/* =========================================================================
   SUBMIT BUTTON � Shared base
   ========================================================================= */

.fc-banner-form-wrap .gform_footer { 
    margin-top: 2.5rem !important; 
    padding: 0 !important; 
    display: flex !important;
    justify-content: flex-end !important;
}

.fc-banner-form-wrap input[type="submit"],
.fc-banner-form-wrap button[type="submit"],
.fc-banner-form-wrap .gform_button,
.fc-banner-form-wrap .gform_next_button,
.fc-banner-form-wrap .gform_page_footer input {
    padding: 1.125rem 3.5rem !important;
    border-radius: 0.75rem !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.125rem !important;
    letter-spacing: -0.01em !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (min-width: 640px) {
    .fc-banner-form-wrap input[type="submit"],
    .fc-banner-form-wrap button[type="submit"],
    .fc-banner-form-wrap .gform_button { 
        width: auto !important; 
        min-width: 220px !important;
        padding: 1.125rem 3rem !important;
    }
}
