/* =========================================
   CertsIQ Demo Download Feature Styles
========================================= */

/* Trigger Button (Product Page par Add to Cart ke sath) */
.demo-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    background: transparent;
    color: #0a2540; /* Deep Navy text */
    border: 2px solid #0a2540;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Open Sans', sans-serif;
}

.demo-download-btn:hover {
    background: #0a2540;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(10, 37, 64, 0.15);
}

/* WooCommerce Cart Form Alignment */
.woocommerce div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

/* Popup Overlay (Modern Blur Effect) */
.demo-popup-overlay {
    display: none; /* JS se flex hoga open hone par */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.85); /* Deep Navy Tint */
    backdrop-filter: blur(5px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

/* Popup Content Box */
.demo-popup-content {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    position: relative;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', 'Open Sans', sans-serif;
    animation: ciq-popup-fade 0.3s ease-out forwards;
}

@keyframes ciq-popup-fade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.demo-popup-content p {
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 800;
    font-size: 20px;
    color: #0a2540;
}

/* Close (X) Button */
.demo-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #aab8c5;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f6f9fc;
    line-height: 1;
}

.demo-popup-close:hover {
    color: #ffffff;
    background: #ff4d4f; /* Red on hover */
}

/* Email Input Field */
#demo-email-form input[type="email"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    background-color: #f6f9fc;
    color: #0a2540;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

#demo-email-form input[type="email"]:focus {
    border-color: #00d4ff;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* reCAPTCHA Container */
#demo-email-form .g-recaptcha {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* Submit Form Button (Tech Cyan) */
#demo-email-form .submit-btn {
    width: 100%;
    padding: 15px;
    background: #00d4ff;
    color: #0a2540;
    font-size: 16px;
    font-weight: 800;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

#demo-email-form .submit-btn:hover {
    background: #00bce6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Button Loading/Disabled State */
#demo-email-form .submit-btn:disabled {
    background: #e2e8f0;
    color: #aab8c5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}