/* ===== Popup Overlay ===== */
#pdf-lead-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#pdf-lead-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Popup Box ===== */
#pdf-lead-popup {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: fadeIn 0.4s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

/* Fade animation */
@keyframes fadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== Close Button ===== */
.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* ===== Popup Form Fields ===== */
#pdf-lead-form input,
#pdf-lead-form button {
    width: 100%;
    margin: 10px 0;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#pdf-lead-form input:focus {
    border-color: #2f396e;
    outline: none;
}

/* ===== Download Button ===== */
.pdf-download-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #2f396e !important;
    background-size: 300% 300%;
    transition: background-position 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdf-download-button:hover,
.pdf-download-button:focus {
    background-position: right center;
    transform: scale(1.03);
    background: #3f4c94 !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ===== Icon and Divider in Button ===== */
.pdf-icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.4);
    margin-right: 12px;
}

/* ===== Ripple Effect ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.5);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== Animated Icon inside Button ===== */
.animated-icon {
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pdf-download-button:hover .animated-icon {
    animation: iconPulse 1s ease infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== Dotted HR ===== */
.dotted-hr {
    border: none;
    border-top: 2px dotted #3d3d3d;
    width: 100%;
}
