/* ==========================================================================
   SHARED EMAIL MODAL STYLES
   ========================================================================== */

.email-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    /* High z-index to stay on top */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-modal.active {
    display: flex;
    opacity: 1;
}

.email-modal-content {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.email-modal.active .email-modal-content {
    transform: scale(1);
}

.email-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(93, 82, 118, 0.2);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #5D5276;
}

.email-modal-close:hover {
    background: rgba(93, 82, 118, 0.1);
    border-color: #7A6E94;
}

.modal-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    background-color: rgba(122, 110, 148, 0.1);
}

.modal-icon {
    width: 2rem;
    height: 2rem;
    color: #7A6E94;
}

.modal-title {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #3F678E;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: #5D5276;
}

.email-form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1.5px solid rgba(93, 82, 118, 0.2);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #F8F8FA;
    color: #3F678E;
}

.email-form-input:focus {
    outline: none;
    border-color: #7A6E94;
    background: white;
    box-shadow: 0 0 0 3px rgba(122, 110, 148, 0.1);
}

.email-form-submit {
    width: 100%;
    padding: 1rem;
    background: #7A6E94;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.email-form-submit:hover:not(:disabled) {
    background: #6A5E82;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(122, 110, 148, 0.3);
}

.email-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.email-form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    display: none;
}

.email-form-message.success {
    display: block;
    background: rgba(152, 221, 200, 0.2);
    color: #3F678E;
    border: 1px solid rgba(152, 221, 200, 0.4);
}

.email-form-message.error {
    display: block;
    background: rgba(214, 167, 177, 0.2);
    color: #3F678E;
    border: 1px solid rgba(214, 167, 177, 0.4);
}

.recaptcha-notice {
    font-size: 10px;
    text-align: center;
    margin-top: 1rem;
    opacity: 0.5;
    color: #5D5276;
}

.recaptcha-link {
    text-decoration: underline;
}

.recaptcha-link:hover {
    color: #7A6E94;
}

/* Mobile Adjustments for Modal */
@media (max-width: 768px) {
    .email-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 1rem;
    }

}

/* Hide reCAPTCHA badge (branding guidelines allow this if you mention it in the form) */
.grecaptcha-badge {
    visibility: hidden;
}