/* Email Confirmation Modal Styles */

.email-confirmation-popup-wrapper {
    display: none;
}

.email-confirmation-popup-wrapper.active {
    display: block;
}

.email-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.email-confirmation-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-in-out;
}

.email-confirmation-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-confirmation-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    flex: 1;
}

.btn-email-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease-in-out;
}

.btn-email-close:hover {
    color: #333;
}

.email-confirmation-body {
    padding: 24px;
}

.email-confirmation-body p {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.email-confirmation-body p:last-of-type {
    margin-bottom: 0;
    font-size: 14px;
    color: #888;
}

.email-confirmation-field-group {
    margin: 20px 0 16px 0;
}

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

.email-confirmation-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd!important;
    background-color: #FEFAE7;
    border-radius: 6px;
    font-size: 16px!important;
    font-family: inherit;
    transition: border-color 0.2s ease-in-out;
    box-sizing: border-box;
    text-align: center;
}

.email-confirmation-input:focus {
    outline: none;
    border-color: #04A86B;
    box-shadow: 0 0 0 3px rgba(4, 168, 107, 0.1);
}

.email-confirmation-input::placeholder {
    color: #aaa;
}

.email-confirmation-subtext {
    font-size: 14px !important;
    color: #888 !important;
    text-align: center;
    margin-top: 12px !important;
}

.email-confirmation-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-email-no,
.btn-email-yes {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-width: 120px;
}

.btn-email-no {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-email-no:hover {
    background-color: #efefef;
    border-color: #ccc;
}

.btn-email-no:active {
    background-color: #e8e8e8;
}

.btn-email-yes {
    background-color: #04A86B;
    color: white;
}

.btn-email-yes:hover {
    background-color: #03915d;
}

.btn-email-yes:active {
    background-color: #027a4e;
}

/* Focus highlight for email field */
input.focus-highlight {
    outline: 3px solid #04A86B !important;
    outline-offset: 2px !important;
    border-color: #04A86B !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive design */
@media (max-width: 600px) {
    .email-confirmation-modal {
        width: 95%;
        border-radius: 8px;
    }

    .email-confirmation-header {
        padding: 20px 16px 12px;
    }

    .email-confirmation-header h2 {
        font-size: 18px;
    }

    .email-confirmation-body {
        padding: 16px;
    }

    .email-confirmation-footer {
        padding: 12px 16px 16px;
        flex-direction: column;
    }

    .btn-email-no,
    .btn-email-yes {
        width: 100%;
        min-width: unset;
    }
}
