/* =========================================
   MOVEX — MODAL CSS (Monochrome)
   ========================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.22s ease;
    padding: 16px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-dark-surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    padding: var(--gap-lg);
    transform: translateY(14px) scale(0.97);
    transition: all 0.22s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}
.modal-close:hover { color: var(--text-light); background: var(--border-dark); }

.modal-header { margin-bottom: var(--gap-lg); padding-right: var(--gap-lg); }
.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--text-light);
    outline: none;
}
.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-light-sub);
    line-height: 1.6;
}

/* Form in modal — dark variant */
.modal-content .form-group { margin-bottom: var(--gap-md); text-align: left; }
.modal-content .form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}
.modal-content .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-dark);
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: all 0.2s ease;
}
.modal-content .form-control::placeholder { color: var(--text-dark-sub); }
.modal-content .form-control:focus {
    outline: none;
    border-color: var(--text-light);
}
.modal-content select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}
.modal-content select.form-control option {
    background: var(--bg-dark);
    color: var(--text-light);
}

.modal-submit {
    width: 100%;
    margin-top: var(--space-3);
}

.modal-success {
    text-align: center;
    padding: var(--space-6) 0;
}

.modal-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--success, #16a34a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.modal-success-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-light);
}

.modal-success-text {
    color: var(--text-light-sub);
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-success-close {
    margin-top: var(--space-5);
    width: 100%;
}
