/**
 * YIDRO Lead Magnet Popup — Premium Styles.
 * Identity: Inter + #00A6D1 (Turquesa) + Dark Glass.
 */

/* ─── Overlay ───────────────────────────────── */
#yidro-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#yidro-popup-overlay.yidro-popup-visible {
    opacity: 1;
    visibility: visible;
}

/* ─── Modal ─────────────────────────────────── */
#yidro-popup-modal {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px 32px 32px;
    max-width: 420px;
    width: 92%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.yidro-popup-visible #yidro-popup-modal {
    transform: translateY(0) scale(1);
}

/* ─── Close Button ──────────────────────────── */
#yidro-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #9CA3AF;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}

#yidro-popup-close:hover {
    color: #111827;
}

/* ─── Badge ─────────────────────────────────── */
#yidro-popup-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00A6D1 0%, #0052FF 100%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

/* ─── Title ─────────────────────────────────── */
#yidro-popup-title {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.2;
}

#yidro-popup-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ─── Form Fields ───────────────────────────── */
.yidro-popup-field {
    margin-bottom: 12px;
}

.yidro-popup-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.yidro-popup-field input:focus {
    border-color: #00A6D1;
    box-shadow: 0 0 0 3px rgba(0, 166, 209, 0.15);
}

.yidro-popup-field input::placeholder {
    color: #9CA3AF;
}

/* ─── Consent ───────────────────────────────── */
.yidro-popup-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0;
    cursor: pointer;
    font-size: 12px;
    color: #6B7280;
    line-height: 1.4;
}

.yidro-popup-consent input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #00A6D1;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ─── Submit Button ─────────────────────────── */
#yidro-popup-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00A6D1 0%, #0088B0 100%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0, 166, 209, 0.35);
}

#yidro-popup-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 166, 209, 0.45);
}

#yidro-popup-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ─── Error ─────────────────────────────────── */
#yidro-popup-error {
    color: #EF4444;
    font-size: 13px;
    margin: 12px 0 0;
    text-align: center;
}

/* ─── Step 2: Confirmation ──────────────────── */
#yidro-popup-step2 {
    text-align: center;
}

#yidro-popup-success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

#yidro-popup-step2 h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
}

#yidro-popup-step2 p {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ─── Coupon Display ────────────────────────── */
#yidro-popup-coupon-display {
    margin: 16px 0;
}

.yidro-coupon-code {
    display: inline-block;
    background: #F0FDFA;
    border: 2px dashed #00A6D1;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 22px;
    font-weight: 800;
    color: #00A6D1;
    letter-spacing: 2px;
}

/* ─── WhatsApp Button ───────────────────────── */
#yidro-popup-wa-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    background-color: #25D366;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.15s;
    margin-bottom: 12px;
    box-sizing: border-box;
}

#yidro-popup-wa-btn:hover {
    transform: translateY(-1px);
    color: #FFFFFF;
}

/* ─── Continue Button ───────────────────────── */
#yidro-popup-continue {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: transparent;
    color: #6B7280;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

#yidro-popup-continue:hover {
    border-color: #00A6D1;
    color: #00A6D1;
}

/* ─── Mobile Responsive ─────────────────────── */
@media (max-width: 480px) {
    #yidro-popup-modal {
        padding: 32px 20px 24px;
        border-radius: 16px;
        width: 95%;
    }

    #yidro-popup-title {
        font-size: 22px;
    }

    .yidro-popup-field input {
        padding: 12px 14px;
        font-size: 14px;
    }
}