/* ═══════════════════════════════════════════════════════
   UNIFIED MODAL — Single source of truth for all pages
   ═══════════════════════════════════════════════════════ */

:root {
    --modal-mint: #00d285;
    --modal-dark: #000000;
    --modal-radius: 24px;
}

/* Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.modal-overlay *,
.modal-overlay *::before,
.modal-overlay *::after {
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Card */
.modal-overlay .modal-content.studio-premium {
    background: #ffffff;
    padding: 60px;
    border-radius: 40px;
    border: 1px solid #0a0a0a;
    box-shadow: 20px 20px 0px var(--modal-mint);
    width: 95%;
    max-width: 550px;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content.studio-premium {
    transform: scale(1) translateY(0);
}

/* Close Button */
.modal-overlay .close-circle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-overlay .close-circle:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.modal-overlay .close-circle svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Modal Header */
.modal-overlay .modal-header {
    margin-bottom: 32px;
}

.modal-overlay .modal-header h3 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0 0 10px;
    color: #0a0a0a;
    text-transform: uppercase;
    line-height: 1.2;
}

.modal-overlay .modal-header .mint-text {
    color: var(--modal-mint);
}

.modal-overlay .modal-header p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0 0 40px;
    line-height: 1.5;
}

/* Form */
.modal-overlay .studio-form-v2 {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-overlay .input-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* Floating Label Fields */
.modal-overlay .field {
    position: relative;
    margin-bottom: 20px;
}

.modal-overlay .field.full {
    margin-bottom: 16px;
}

.modal-overlay .field input {
    width: 100%;
    padding: 20px;
    background: #fafafa;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    transition: all 0.3s ease;
    color: #0a0a0a;
}

.modal-overlay .field input:focus {
    border-color: #0a0a0a;
    outline: none;
    background: #fff;
}

.modal-overlay .field label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-weight: 700;
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.25s ease;
}

/* Floating label active state */
.modal-overlay .field input:focus ~ label,
.modal-overlay .field input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--modal-mint);
    background: #fff;
    padding: 0 8px;
    transform: translateY(-50%);
    letter-spacing: 0.5px;
}

/* Scheduler */
.modal-overlay .scheduler-box {
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 16px;
    margin-bottom: 30px;
    transition: border-color 0.3s;
}

.modal-overlay .scheduler-box:hover {
    border-color: #ddd;
}

.modal-overlay .scheduler-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 14px;
}

.modal-overlay .scheduler-header svg {
    flex-shrink: 0;
}

.modal-overlay .scheduler-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-overlay .pick-btn {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    color: #0a0a0a;
}

.modal-overlay .pick-btn:hover {
    background: #ebebeb;
}

.modal-overlay .hidden-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Submit Button */
.modal-overlay .btn-black-glow {
    width: 100%;
    background: #0a0a0a;
    color: #fff;
    padding: 22px;
    border-radius: 15px;
    border: none;
    font-weight: 900;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-overlay .btn-black-glow svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.modal-overlay .btn-black-glow:hover {
    background: var(--modal-mint);
    color: #0a0a0a;
    box-shadow: 0 0 20px rgba(0, 210, 133, 0.4);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 640px) {
    .modal-overlay .modal-content.studio-premium {
        padding: 36px 24px;
        border-radius: 20px;
        width: 95%;
        box-shadow: 12px 12px 0px var(--modal-mint);
    }

    .modal-overlay .input-stack {
        grid-template-columns: 1fr;
    }

    .modal-overlay .modal-header h3 {
        font-size: 1.5rem;
    }

    .modal-overlay .scheduler-inputs {
        grid-template-columns: 1fr;
    }
}
