/* Popup Email Capture Modal - Hugo Sites */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.popup-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.popup-overlay.active .popup-modal {
    transform: translateY(0);
}

.popup-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.popup-header h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
}

.popup-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
    line-height: 1.4;
}

.popup-body {
    padding: 30px;
}

.popup-form-group {
    margin-bottom: 20px;
}

.popup-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.popup-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.popup-form-group input:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.popup-submit-btn {
    width: 100%;
    padding: 16px;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.popup-submit-btn:hover {
    background: #2d4a7c;
}

.popup-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.popup-privacy {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 15px;
    line-height: 1.4;
}

.popup-success {
    text-align: center;
    padding: 30px;
}

.popup-success h4 {
    color: #1a365d;
    font-size: 20px;
    margin-bottom: 10px;
}

.popup-success p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.popup-download-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #1a365d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}

.popup-download-btn:hover {
    background: #2d4a7c;
    color: white;
}

.popup-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.popup-close:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .popup-modal {
        width: 95%;
        margin: 20px;
    }
    
    .popup-header {
        padding: 20px 25px;
    }
    
    .popup-body {
        padding: 25px;
    }
    
    .popup-header h3 {
        font-size: 20px;
    }
}