/* ==========================================================================
   ACTIVE CAMPAIGN FORM 33 - MOBILE FIXES
   Responsive fixes for mobile devices
   ========================================================================== */

/* Mobile popup fixes - make it scrollable and fit screen */
@media (max-width: 768px) {
    /* Popup overlay - allow scrolling */
    .popup-overlay {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 1rem !important;
        align-items: flex-start !important;
    }

    /* Popup container - adjust size and padding */
    .popup-overlay .popup-container {
        max-width: 100% !important;
        width: calc(100% - 2rem) !important;
        padding: 2rem 1.5rem !important;
        margin: 1rem auto !important;
        max-height: none !important;
        border-radius: 16px !important;
    }

    /* Close button - make it more accessible on mobile */
    .popup-overlay .popup-close {
        top: 0.5rem !important;
        right: 0.5rem !important;
        font-size: 1.75rem !important;
        padding: 0.5rem !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Header badges and titles */
    .popup-overlay h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .popup-overlay p {
        font-size: 0.95rem !important;
    }

    /* Form inputs - ensure they're touch-friendly */
    #_form_33_ input[type="text"],
    #_form_33_ input#fullname,
    #_form_33_ input#email {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 0.875rem !important;
        margin-bottom: 0.875rem !important;
    }

    /* Submit button - make it more compact on mobile */
    #_form_33_ ._submit,
    #_form_33_ button._submit {
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
        gap: 0.5rem !important;
    }

    #_form_33_ ._submit svg,
    #_form_33_ button._submit svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Checkbox labels - make them more readable */
    .ac-form-checkbox-wrapper label {
        font-size: 0.8125rem !important;
        line-height: 1.5 !important;
    }

    /* Social proof text */
    .ac-form-social-proof {
        font-size: 0.7rem !important;
    }

    /* 100% DARMOWE badge */
    .popup-overlay div[style*="background: var(--warmth-primary)"] {
        font-size: 0.75rem !important;
        padding: 6px 16px !important;
    }
}

/* Very small phones (< 375px) */
@media (max-width: 374px) {
    .popup-overlay .popup-container {
        padding: 1.5rem 1rem !important;
    }

    .popup-overlay h2 {
        font-size: 1.35rem !important;
    }

    #_form_33_ ._submit,
    #_form_33_ button._submit {
        font-size: 0.95rem !important;
        padding: 0.75rem 1.25rem !important;
    }
}
