/**
 * Email Subscription Popup Styles
 */

/* Popup Container */
.authyo-nf-email-subscription-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
}

/* Overlay */
.authyo-nf-email-subscription-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

/* Popup Content */
.authyo-nf-email-subscription-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100001;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* Close Button */
.authyo-nf-email-subscription-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    z-index: 100002;
    color: #50575e;
    transition: color 0.2s ease;
}

.authyo-nf-email-subscription-close:hover {
    color: #23282d;
}

.authyo-nf-email-subscription-close .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Header */
.authyo-nf-email-subscription-header {
    padding: 24px 24px 0 24px;
}

.authyo-nf-email-subscription-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #23282d;
    line-height: 1.4;
}

/* Body */
.authyo-nf-email-subscription-body {
    padding: 20px 24px 24px 24px;
}

.authyo-nf-email-subscription-description {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #50575e;
}

/* Form */
.authyo-nf-email-subscription-field {
    margin-bottom: 20px;
}

.authyo-nf-email-subscription-field input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.authyo-nf-email-subscription-field input[type="email"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.authyo-nf-email-subscription-field input[type="email"]:invalid {
    border-color: #d63638;
}

/* Error Message */
.authyo-nf-email-subscription-error {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #d63638;
    line-height: 1.4;
}

/* Actions */
.authyo-nf-email-subscription-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.authyo-nf-email-subscription-actions .button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.authyo-nf-email-subscription-skip {
    background: #f6f7f7;
    border: 1px solid #ddd;
    color: #50575e;
}

.authyo-nf-email-subscription-skip:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
}

.authyo-nf-email-subscription-submit {
    background: #2271b1;
    border: 1px solid #2271b1;
    color: #fff;
}

.authyo-nf-email-subscription-submit:hover {
    background: #135e96;
    border-color: #135e96;
}

.authyo-nf-email-subscription-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.authyo-nf-email-subscription-footer {
    margin: 0;
    font-size: 12px;
    color: #8c8f94;
    text-align: center;
    line-height: 1.5;
}

/* Success Message */
.authyo-nf-email-subscription-success {
    padding: 20px;
    text-align: center;
    background: #f0f6fc;
    border-radius: 4px;
    margin-top: 15px;
}

.authyo-nf-email-subscription-success p {
    margin: 0;
    font-size: 15px;
    color: #2271b1;
    font-weight: 600;
}

/* Body class when popup is open */
body.authyo-nf-email-subscription-popup-open {
    overflow: hidden;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .authyo-nf-email-subscription-content {
        width: 95%;
        margin: 20px auto;
        max-height: calc(100vh - 40px);
    }

    .authyo-nf-email-subscription-header,
    .authyo-nf-email-subscription-body {
        padding: 16px;
    }

    .authyo-nf-email-subscription-actions {
        flex-direction: column;
    }

    .authyo-nf-email-subscription-actions .button {
        width: 100%;
        min-width: auto;
    }
}