/* ===============================
MODAL FLOW PREMIUM - ESTILO PREMIUM flow-afv
============================== */

/* Overlay Premium - Flow Ice Layer */
#afv-modal-flow-premium.afv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show Modal Animation */
#afv-modal-flow-premium.show {
    opacity: 1;
    visibility: visible;
}

/* Prevent scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Container Premium do Modal */
.afv-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: afv-modal-enter 0.3s ease-out;
    transform: scale(1);
    opacity: 1;
}

/* Botão de fechar modal - X no canto superior direito */
.afv-modal-close-btn {
    position: absolute;
    top: 8px;
    right: 20px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #000;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: opacity 0.2s ease;
}

.afv-modal-close-btn:hover {
    opacity: 1;
}

.afv-modal-close-btn:focus {
    outline: 2px solid #7C3AED;
    outline-offset: 2px;
    opacity: 1;
}

@keyframes afv-modal-enter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Headline - Título Principal */
.afv-modal-content h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1f1953;
    margin: 0 0 24px 0;
    line-height: 1.3;
    text-align: center;
}

/* Headline Text with Highlights */
.afv-modal-headline {
    color: #424242 !important;
}

.afv-modal-headline .highlight-word {
    color: #7C3AED !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

/* Subtítulo do Modal - Texto em Cinza com Destaques Roxos */
.afv-modal-subtitle {
    color: #424242 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    margin-top: 8px !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
}

.afv-modal-subtitle .highlight-word {
    color: #7C3AED !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* Features List - Lista de Benefícios com Emojis */
.afv-features {
    margin: 24px 0 32px 0;
    padding: 0;
    list-style: none;
}

.afv-features p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #4b5563;
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    padding: 8px 0;
}

.afv-features p:first-child {
    margin-top: 0;
}

.afv-features p:last-child {
    margin-bottom: 0;
}

/* Social Proof */
.afv-social-proof {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #059669;
    font-weight: 500;
    text-align: center;
    margin: 16px 0 24px 0;
}

/* CTA Principal - Botão Premium Flow com Gradiente */
.afv-modal-cta-primary {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #7C3AED 0%, #5A41F4 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 0;
    border-radius: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(124, 68, 237, 0.25);
    transition: all 0.2s ease;
    min-height: 54px;
    margin-bottom: 12px;
}

.afv-modal-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(124, 68, 237, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* CTA Secundário - Ghost Button */
.afv-modal-content button {
    background: transparent;
    color: #5a41f4;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-decoration: none;
    display: block;
}

.afv-modal-content button:hover {
    border-bottom-color: #5a41f4;
    transform: translateY(-1px);
}

/* Footer - Mensagem de Segurança */
.afv-modal-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
    margin-top: 16px;
}

.afv-modal-footer p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin: 0;
}

/* ===============================
// HEADER ICON - MEDALHA E PRÊMIO
============================== */

.afv-modal-header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.afv-premium-badge {
    font-size: 56px;
    margin-bottom: 8px;
    filter: drop-shadow(0 8px 16px rgba(161, 98, 7, 0.4));
    animation: afv-badge-pulse 2s ease-in-out infinite;
}

@keyframes afv-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.afv-premium-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #d97706;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: 0.5px;
}

.afv-premium-text .highlight-purple {
    font-weight: 700;
    color: #7C3AED !important;
    -webkit-text-fill-color: #7C3AED !important;
}

/* ===============================
// FOOTER SECURITY ICONS
============================== */

.afv-security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.afv-security-icon {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(5, 150, 105, 0.08);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

/* ===============================
// I-129F FORM - MOBILE-FIRST DESIGN
============================== */

/* I-129F Form Container */
.afvsp-i129f {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hero Section - Mobile First */
.afv-portal-hero {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08) 0%, rgba(196, 181, 253, 0.04) 100%);
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    border: 1px solid rgba(167, 139, 250, 0.1);
}

.afv-portal-hero-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.afv-portal-hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #7c6fa8;
    text-transform: uppercase;
    margin: 0;
}

.afv-portal-hero h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f1953;
    margin: 0;
    line-height: 1.3;
}

.afv-portal-hero-description {
    font-size: 14px;
    color: #4d4975;
    line-height: 1.5;
    margin: 0;
}

.afv-portal-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.afv-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(196, 181, 253, 0.08));
    color: #6d5b9d;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(167, 139, 250, 0.15);
}

.afv-portal-status-card {
    background: linear-gradient(135deg, #f8f7ff 0%, #fafbff 100%);
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.afv-portal-status-card.is-draft {
    border-color: rgba(167, 139, 250, 0.2);
}

.afv-portal-status-card.is-submitted {
    border-color: rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
}

.afv-portal-status-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(196, 181, 253, 0.1));
    border-radius: 10px;
}

.afv-i129f-status-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.afv-portal-status-label {
    font-size: 12px;
    font-weight: 600;
    color: #7c6fa8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

.afv-portal-status-description {
    font-size: 14px;
    font-weight: 600;
    color: #1f1953;
    margin: 0;
    line-height: 1.4;
}

.afv-portal-status-list {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #4d4975;
}

.afv-portal-status-list li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.afv-portal-status-list li::before {
    content: '→';
    color: #a78bfa;
    font-weight: 600;
}

/* Alerts */
.afv-portal-alerts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.afvsp-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    border-left: 4px solid;
}

.afvsp-alert p {
    margin: 0;
}

.afvsp-alert.success {
    background: rgba(16, 185, 129, 0.08);
    border-color: #10b981;
    color: #047857;
}

.afvsp-alert.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
    color: #b91c1c;
}

.afvsp-alert.info {
    background: rgba(59, 130, 246, 0.08);
    border-color: #3b82f6;
    color: #1e40af;
}

/* Tabs Navigation */
.afvsp-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
    overflow-x: auto;
    padding-bottom: 0;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.afvsp-tab {
    flex-shrink: 0;
    padding: 10px 14px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #7c6fa8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    border-radius: 8px 8px 0 0;
}

.afvsp-tab:hover {
    color: #a78bfa;
    border-bottom-color: rgba(167, 139, 250, 0.3);
}

.afvsp-tab.active {
    color: #a78bfa;
    border-bottom-color: #a78bfa;
    background: rgba(167, 139, 250, 0.05);
}

/* Tab Panels */
.afvsp-tab-panel {
    display: none;
    animation: fadeIn 0.2s ease;
}

.afvsp-tab-panel.active {
    display: block;
}

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

.afvsp-tab-panel h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f1953;
    margin: 0 0 20px 0;
}

/* Form Sections */
.afvsp-form-section {
    background: white;
    border: 1px solid rgba(167, 139, 250, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.afvsp-form-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1f1953;
    margin: 0 0 12px 0;
}

/* Grid Layouts - Mobile First */
.afvsp-grid-2,
.afvsp-grid-3,
.afvsp-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Form Elements */
.afvsp-form div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.afvsp-form label {
    font-size: 13px;
    font-weight: 600;
    color: #1f1953;
}

.afvsp-form input[type="text"],
.afvsp-form input[type="email"],
.afvsp-form input[type="tel"],
.afvsp-form input[type="date"],
.afvsp-form input[type="number"],
.afvsp-form select,
.afvsp-form textarea {
    padding: 12px 14px;
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 10px;
    font-size: 16px; /* Prevents iOS zoom */
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
    min-height: 44px; /* Touch target */
}

.afvsp-form input[type="text"]:focus,
.afvsp-form input[type="email"]:focus,
.afvsp-form input[type="tel"]:focus,
.afvsp-form input[type="date"]:focus,
.afvsp-form input[type="number"]:focus,
.afvsp-form select:focus,
.afvsp-form textarea:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.afvsp-form input[type="text"]:disabled,
.afvsp-form select:disabled {
    background: rgba(167, 139, 250, 0.05);
    color: #7c6fa8;
    cursor: not-allowed;
}

.afvsp-form textarea {
    min-height: 100px;
    resize: vertical;
}

.afvsp-form-help {
    font-size: 11px;
    color: #7c6fa8;
    line-height: 1.4;
    margin-top: 4px;
}

/* Form Actions */
.afvsp-form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(167, 139, 250, 0.1);
    flex-direction: column;
}

.afvsp-button-primary {
    background: linear-gradient(135deg, #a78bfa 0%, #8f73ff 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.25);
    transition: all 0.2s ease;
    width: 100%;
    min-height: 48px;
}

.afvsp-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.35);
}

.afvsp-button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.afvsp-button-secondary {
    background: white;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #a78bfa;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    min-height: 48px;
}

.afvsp-button-secondary:hover {
    background: rgba(167, 139, 250, 0.05);
    border-color: #a78bfa;
}

/* Consent & Legal */
.afv-portal-consent {
    background: white;
    border: 1px solid rgba(167, 139, 250, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.afv-portal-consent h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1f1953;
    margin: 0 0 12px 0;
}

.afv-portal-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(167, 139, 250, 0.08);
}

.afv-portal-consent-item:last-child {
    border-bottom: none;
}

.afv-portal-consent-item label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #4d4975;
    line-height: 1.5;
    flex: 1;
}

.afv-portal-consent-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 4px;
    accent-color: #a78bfa;
}

.afv-portal-legal {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
}

.afv-portal-legal p {
    margin: 0;
    font-size: 12px;
    color: #92400e;
    line-height: 1.6;
}

.afv-portal-legal strong {
    color: #b45309;
}

/* Submitted Notice */
.afvsp-submitted-notice {
    text-align: center;
    padding: 32px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
}

.afvsp-submitted-notice .dashicons {
    font-size: 40px;
    color: #10b981;
    margin-bottom: 10px;
    width: 40px;
    height: 40px;
}

.afvsp-submitted-notice h3 {
    font-size: 16px;
    font-weight: 700;
    color: #047857;
    margin: 0 0 6px 0;
}

.afvsp-submitted-notice p {
    font-size: 13px;
    color: #065f46;
    margin: 0;
}

/* Form Actions Variants */
.afvsp-actions-intermediate {
    text-align: center;
}

.afvsp-actions-intermediate p {
    font-size: 12px;
    color: #7c6fa8;
    margin-top: 10px;
}

.afvsp-actions-final {
    width: 100%;
}

.afvsp-actions-final-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
    flex-direction: column;
}

.afvsp-hint {
    font-size: 11px;
    color: #7c6fa8;
    line-height: 1.4;
    margin-top: 4px;
}

/* Lead Restricted Form - Visual Feedback */
.afv-lead-restricted {
    position: relative;
}

.afv-lead-restricted input,
.afv-lead-restricted select,
.afv-lead-restricted textarea,
.afv-lead-restricted button:not(.afvsp-tab) {
    cursor: not-allowed !important;
    opacity: 0.75 !important;
    user-select: none !important;
    pointer-events: none !important;
}

.afv-lead-restricted .afvsp-tab {
    cursor: pointer !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.afv-lead-restricted input::placeholder,
.afv-lead-restricted textarea::placeholder {
    color: #9ca3af !important;
}

.afv-lead-restricted input:disabled,
.afv-lead-restricted select:disabled,
.afv-lead-restricted textarea:disabled,
.afv-lead-restricted button:disabled {
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
}

/* ===============================
// BREAKPOINT: 640px and up (Tablet)
============================== */

@media (min-width: 640px) {
    .afv-portal-hero {
        grid-template-columns: 1fr 300px;
        gap: 24px;
        padding: 24px;
    }

    .afv-portal-hero h2 {
        font-size: 28px;
    }

    .afv-portal-hero-description {
        font-size: 15px;
    }

    .afv-portal-status-card {
        padding: 20px;
    }

    .afv-portal-status-icon {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }

    .afv-portal-status-description {
        font-size: 16px;
    }

    .afvsp-tabs {
        gap: 12px;
        margin-bottom: 24px;
    }

    .afvsp-tab {
        padding: 12px 20px;
        font-size: 14px;
    }

    .afvsp-tab-panel h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .afvsp-form-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .afvsp-form-section h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .afvsp-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .afvsp-form-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .afvsp-button-primary,
    .afvsp-button-secondary {
        width: auto;
        min-width: 140px;
    }

    .afv-portal-consent {
        padding: 20px;
    }

    .afv-portal-consent h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .afv-portal-consent-item label {
        font-size: 13px;
    }

    .afv-portal-consent-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .afvsp-submitted-notice {
        padding: 40px 20px;
    }

    .afvsp-submitted-notice .dashicons {
        font-size: 48px;
        width: 48px;
        height: 48px;
    }

    .afvsp-submitted-notice h3 {
        font-size: 18px;
    }

    .afvsp-submitted-notice p {
        font-size: 14px;
    }

    .afvsp-actions-final-buttons {
        flex-direction: row;
    }
}

/* ===============================
// BREAKPOINT: 1024px and up (Desktop)
============================== */

@media (min-width: 1024px) {
    .afv-portal-hero {
        grid-template-columns: 1fr 360px;
        gap: 32px;
        padding: 32px;
        border-radius: 20px;
    }

    .afv-portal-hero h2 {
        font-size: 32px;
    }

    .afv-portal-hero-description {
        font-size: 16px;
    }

    .afv-portal-hero-eyebrow {
        font-size: 12px;
    }

    .afv-portal-status-card {
        padding: 24px;
    }

    .afv-portal-status-icon {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }

    .afv-portal-status-description {
        font-size: 16px;
    }

    .afvsp-tabs {
        gap: 16px;
    }

    .afvsp-tab {
        padding: 12px 24px;
        font-size: 15px;
    }

    .afvsp-tab-panel h3 {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .afvsp-form-section {
        padding: 24px;
        margin-bottom: 24px;
    }

    .afvsp-form-section h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .afvsp-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .afvsp-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .afvsp-grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .afvsp-form label {
        font-size: 14px;
    }

    .afvsp-form input[type="text"],
    .afvsp-form input[type="email"],
    .afvsp-form input[type="tel"],
    .afvsp-form input[type="date"],
    .afvsp-form input[type="number"],
    .afvsp-form select,
    .afvsp-form textarea {
        font-size: 14px;
    }

    .afvsp-form-actions {
        margin-top: 32px;
        padding-top: 24px;
    }

    .afvsp-button-primary,
    .afvsp-button-secondary {
        padding: 14px 32px;
        font-size: 16px;
        min-width: 160px;
    }

    .afv-portal-consent {
        padding: 24px;
    }

    .afv-portal-consent h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .afv-portal-consent-item {
        padding: 12px 0;
    }

    .afv-portal-consent-item label {
        font-size: 14px;
    }

    .afv-portal-consent-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .afv-portal-legal {
        padding: 16px;
    }

    .afv-portal-legal p {
        font-size: 13px;
    }

    .afvsp-submitted-notice {
        padding: 48px 24px;
    }

    .afvsp-submitted-notice .dashicons {
        font-size: 56px;
        width: 56px;
        height: 56px;
    }

    .afvsp-submitted-notice h3 {
        font-size: 20px;
    }

    .afvsp-submitted-notice p {
        font-size: 15px;
    }

    .afvsp-actions-final-buttons {
        gap: 16px;
    }
}

/* ===============================
// STICKY CTA FOR MOBILE CONVERSION
============================== */

.afv-sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #7C3AED 0%, #5A41F4 100%);
    color: white;
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(90, 65, 244, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 16px 16px 0 0;
}

.afv-sticky-cta-mobile .afv-sticky-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.afv-sticky-cta-mobile .afv-sticky-cta-btn {
    background: white;
    color: #5A41F4;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    min-height: 44px;
    white-space: nowrap;
}

.afv-sticky-cta-mobile .afv-sticky-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Hide sticky CTA on larger screens */
@media (min-width: 640px) {
    .afv-sticky-cta-mobile {
        display: none !important;
    }
}

/* Add bottom padding to body when sticky CTA is present */
body.has-sticky-cta {
    padding-bottom: 80px;
}

/* ===============================
RESPONSIVIDADE MOBILE-FIRST
============================== */

@media (max-width: 768px) {
    /* Overlay mobile - sem blur */
    #afv-modal-flow-premium.afv-modal-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(15, 23, 42, 0.6);
    }

    /* Modal mobile */
    .afv-modal-content {
        width: 90%;
        max-width: 360px;
        padding: 28px 24px;
        border-radius: 12px;
    }

    /* Título menor */
    .afv-modal-content h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    /* Subtítulo mobile */
    .afv-modal-subtitle {
        font-size: 16px !important;
        margin-top: 6px !important;
        margin-bottom: 18px !important;
    }

    /* Benefícios espaçados */
    .afv-features {
        margin: 20px 0 28px 0;
    }

    .afv-features p {
        font-size: 15px;
        margin: 10px 0;
        gap: 8px;
    }

    /* Botões mobile */
    .afv-modal-cta-primary {
        min-height: 48px;
        font-size: 16px;
        margin-bottom: 8px;
    }

    /* Ícones mobile */
    .afv-modal-header-icon {
        margin-bottom: 16px;
    }

    .afv-premium-badge {
        font-size: 48px;
        margin-bottom: 6px;
    }

    .afv-premium-text {
        font-size: 13px;
    }

    /* Security badges mobile */
    .afv-security-badges {
        gap: 8px;
        margin-bottom: 10px;
    }

    .afv-security-icon {
        font-size: 12px;
        padding: 6px 8px;
    }
}

/* ===============================
ACESSIBILIDADE
============================== */

/* Focus States */
.afv-modal-cta-primary:focus-visible,
.afv-modal-content button:focus-visible {
    outline: 2px solid #5a41f4;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(90, 65, 244, 0.1);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .afv-modal-content {
        animation: none;
    }

    .afv-modal-content,
    .afv-modal-cta-primary,
    .afv-modal-content button {
        transition: none;
    }

    #afv-modal-flow-premium.afv-modal-overlay {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more), (forced-colors: active) {
    #afv-modal-flow-premium.afv-modal-overlay {
        background: rgba(0, 0, 0, 0.8);
    }

    .afv-modal-content {
        border: 2px solid #000;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    }
}
