/**
 * Email Download Protect - Popup Styles
 * Light Theme (white background with dark text)
 */

/* Overlay */
.edp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Prevent body scroll when popup is open */
body.edp-no-scroll {
    overflow: hidden;
}

/* Popup Container */
.edp-popup-container {
    background-color: #fff;
    max-width: 500px;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0px 0px 100px rgba(0, 0, 0, 0.3);
    padding: 40px 35px;
    position: relative;
    animation: edpSlideIn 0.3s ease;
}

@keyframes edpSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.edp-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.edp-popup-close:hover {
    opacity: 1;
    transform: scale(1.1);
    color: #000;
}

/* Title */
.edp-popup-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.85);
    margin: 0 0 25px 0;
    padding-right: 30px;
}

/* Form */
.edp-popup-form {
    font-family: 'Open Sans', sans-serif;
}

/* Form Groups */
.edp-form-group {
    margin-bottom: 20px;
}

.edp-form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.75);
    margin-bottom: 8px;
}

.edp-form-group label .required {
    color: #ff6b6b;
}

/* Email Input */
.edp-form-group input[type="email"] {
    width: 100%;
    padding: 15px 12px;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.edp-form-group input[type="email"]:focus {
    outline: none;
    border-color: #2c77dd;
    box-shadow: 0 0 0 3px rgba(44, 119, 221, 0.1);
}

.edp-form-group input[type="email"]::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Checkbox Group */
.edp-checkbox-group {
    margin-bottom: 25px;
}

.edp-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.5;
}

.edp-checkbox-label input[type="checkbox"] {
    margin: 3px 10px 0 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.edp-privacy-text {
    flex: 1;
}

.edp-privacy-text a {
    color: #2c77dd;
    text-decoration: underline;
    transition: color 0.3s ease;
    display: block;
    margin-top: 5px;
}

.edp-privacy-text a:hover {
    color: #4a8fe7;
}

/* Error Message */
.edp-error-message {
    background-color: #fff3f3;
    border-left: 4px solid #ff6b6b;
    color: #d63031;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* Submit Button */
.edp-submit-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 0.96rem;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.edp-submit-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}

.edp-submit-btn:active {
    transform: translateY(0);
}

.edp-submit-btn:disabled {
    background-color: #4a4a4a;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive - Mobile */
@media screen and (max-width: 767px) {
    .edp-popup-container {
        padding: 30px 25px;
        max-width: 100%;
    }

    .edp-popup-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .edp-form-group input[type="email"] {
        padding: 12px 10px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .edp-submit-btn {
        padding: 13px 18px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 454px) {
    .edp-popup-overlay {
        padding: 15px;
    }

    .edp-popup-container {
        padding: 25px 20px;
    }

    .edp-popup-title {
        font-size: 1.35rem;
    }

    .edp-checkbox-label {
        font-size: 0.85rem;
    }
}
