@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.lzq_modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    animation: fadeIn 0.3s ease-in-out;
}

.lzq_modal-overlay.lzq_show {
    display: block;
}

.lzq_modal-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-in-out;
    isolation: isolate;
    pointer-events: auto;
}

.lzq_modal-container.lzq_show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.lzq_card {
    background: white;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgb(229 231 235 / 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    isolation: isolate;
}

/* Bloquear anúncios e iframes não autorizados */
.lzq_modal-container iframe:not([data-lzq-allowed]),
.lzq_modal-container ins,
.lzq_modal-container [class*="ad-"],
.lzq_modal-container [class*="ads-"],
.lzq_modal-container [id*="ad-"],
.lzq_modal-container [id*="ads-"],
.lzq_modal-container [class*="google-ad"],
.lzq_modal-container [id*="google-ad"],
.lzq_card iframe:not([data-lzq-allowed]),
.lzq_card ins,
.lzq_card [class*="ad-"],
.lzq_card [class*="ads-"],
.lzq_card [id*="ad-"],
.lzq_card [id*="ads-"],
.lzq_card [class*="google-ad"],
.lzq_card [id*="google-ad"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

.lzq_h1 {
    margin-top: 0 !important;
    color: var(--text-dark);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.lzq_subtitle {
    color: var(--text-grey);
    font-size: 16px;
    margin-bottom: 30px;
}

.lzq_progress-container {
    width: 100%;
    background-color: #e2e8f0;
    height: 12px;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.lzq_progress-bar {
    height: 100%;
    background-color: var(--gridmidia-theme);
    width: 2%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.lzq_step-content {
    display: none;
    animation: fadeIn 0.5s;
    text-align: center;
}

.lzq_step-content p {
    text-align: center;
}

.lzq_step-content.lzq_active {
    display: block;
}

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

.lzq_card h2 {
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 25px;
}

/* --lzq-columns é definido via inline style no elemento pelo block.php */
.lzq_options-grid {
    display: grid;
    grid-template-columns: var(--lzq-columns, 1fr);
    gap: 20px;
}

.lzq_option-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-family: inherit;
}

.lzq_option-btn:hover {
    border-color: var(--gridmidia-theme);
    background-color: var(--gridmidia-light-theme);
    color: var(--gridmidia-dark-theme);
}

.lzq_form-group {
    text-align: left;
    margin-bottom: 20px;
}

.lzq_card label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 16px;
}

.lzq_card input[type="text"],
.lzq_card input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #94a3b8;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    outline: none;
}

.lzq_card input::placeholder {
    color: #94a3b8;
}

.lzq_card input:focus {
    border-color: var(--gridmidia-theme);
}

.lzq_checkbox-group {
    display: flex;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 25px;
    gap: 10px;
}

.lzq_checkbox-group input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.lzq_checkbox-group span {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
}

.lzq_cta-btn {
    background-color: var(--gridmidia-theme);
    border: 2px solid var(--gridmidia-theme) !important;
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.2s;
}

.lzq_cta-btn:hover {
    background-color: var(--gridmidia-light-theme);
    color: var(--gridmidia-dark-theme);
}

.lzq_cta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lzq_skip-link {
    color: #3b82f6;
    text-decoration: underline;
    font-size: 15px;
    cursor: pointer;
}

.lzq_email-suggestions {
    position: relative;
}

.lzq_suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.lzq_suggestions-list.lzq_show {
    display: block;
}

.lzq_suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 16px;
    color: var(--text-dark);
}

.lzq_suggestion-item:hover {
    background-color: var(--gridmidia-light-theme);
    color: var(--gridmidia-dark-theme);
}

.lzq_error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.lzq_error-message.lzq_show {
    display: block;
}

.lzq_form-group.lzq_error input {
    border-color: #ef4444;
}

.lzq_checkbox-group.lzq_error {
    border: 2px solid #ef4444;
    padding: 10px;
    border-radius: 6px;
    background-color: #fef2f2;
}

.lzq_checkbox-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.lzq_checkbox-error.lzq_show {
    display: block;
}

.lzq_btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lzq_spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: none;
}

.lzq_spinner.lzq_show {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 500px) {
    .lzq_options-grid {
        grid-template-columns: 1fr;
    }

    .lzq_card {
        padding: 25px 20px;
    }

    .lzq_h1 {
        font-size: 26px;
    }

    .lzq_modal-container {
        width: 95%;
        max-height: 95vh;
    }
}
