/* Email Modal Styles */
.modal-overlay{
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,.5);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
    padding:20px;
}

.modal-overlay.active{
    display:flex;
}

.modal-content{
    position:relative;
    background:var(--surface);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    max-width:500px;
    width:100%;
    padding:40px 32px;
    animation:slideUp .4s cubic-bezier(.16,1,.3,1);
}

@keyframes slideUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.modal-close{
    position:absolute;
    top:16px;
    right:16px;
    background:none;
    border:none;
    font-size:28px;
    color:var(--muted);
    cursor:pointer;
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    transition:background .25s ease,color .25s ease;
}

.modal-close:hover{
    background:rgba(48,40,35,.08);
    color:var(--text);
}

.modal-header{
    text-align:center;
    margin-bottom:24px;
}

.modal-header h2{
    font-size:1.75rem;
    margin:0 0 8px;
    color:var(--text);
}

.modal-header p{
    color:var(--muted);
    margin:0;
    font-size:.95rem;
}

.email-modal-form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.email-input{
    padding:14px 16px;
    font-size:16px;
    border:1px solid var(--border);
    border-radius:var(--radius);
    background:var(--surface);
    color:var(--text);
    font-family:inherit;
    transition:border-color .25s ease,box-shadow .25s ease;
}

.email-input:focus{
    outline:none;
    border-color:var(--accent-2);
    box-shadow:0 0 0 3px rgba(53,108,100,.1);
}

.email-input::placeholder{
    color:var(--muted);
}

.checkbox-group{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.checkbox-label{
    display:flex;
    gap:12px;
    align-items:flex-start;
    cursor:pointer;
    user-select:none;
}

.consent-checkbox{
    width:20px;
    height:20px;
    margin-top:2px;
    cursor:pointer;
    accent-color:var(--accent-2);
    flex-shrink:0;
}

.checkbox-text{
    font-size:13px;
    line-height:1.5;
    color:var(--text);
}

.error-message{
    color:#d32f2f;
    font-size:13px;
    padding:8px 12px;
    background-color:#ffebee;
    border-left:3px solid #d32f2f;
    border-radius:4px;
    animation:shake .3s ease-in-out;
}

@keyframes shake{
    0%,100%{transform:translateX(0);}
    25%{transform:translateX(-4px);}
    75%{transform:translateX(4px);}
}

.btn-modal-submit{
    padding:14px 24px;
    font-size:15px;
    font-weight:600;
    border:none;
    border-radius:var(--radius);
    background:var(--accent-2);
    color:var(--white);
    cursor:pointer;
    transition:background .25s ease,transform .1s ease;
    margin-top:8px;
}

.btn-modal-submit:hover{
    background:#2d5c52;
}

.btn-modal-submit:active{
    transform:scale(.98);
}
