
/* ========================= */
/* CONTACT MODAL PREMIUM */
/* ========================= */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 15000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.contact-modal.active {
    display: flex;
}


/* ========================= */
/* BACKDROP */
/* ========================= */

.contact-modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at top,
            rgba(84, 160, 255, 0.18),
            transparent 35%
        ),
        rgba(8, 18, 35, 0.58);

    backdrop-filter: blur(8px);
}



/* ========================= */
/* CARD */
/* ========================= */

.contact-modal-card {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 520px;

    padding: 34px;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at top right,
            rgba(124,58,237,.10),
            transparent 34%
        ),

        radial-gradient(
            circle at bottom left,
            rgba(56,189,248,.08),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #ffffff,
            #f8fbff
        );

    border: 1px solid rgba(226,232,240,.9);

    box-shadow:
        0 24px 60px rgba(15,23,42,.10),
        inset 0 1px 0 rgba(255,255,255,.85);

    transform: translateY(18px) scale(0.97);
    opacity: 0;

    animation: contactModalIn 0.25s ease forwards;
}

@media (max-height: 760px) {
    .contact-modal-card {
        max-height: 90vh;
        overflow-y: auto;
    }
}

@keyframes contactModalIn {
    from {
    opacity: 0;
}
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}


/* ========================= */
/* CLOSE BUTTON */
/* ========================= */

.contact-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 50%;

    background: #f3f6fb;
    color: #64748b;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease;
}

.contact-modal-close:hover {
    background: #e8eef7;
    color: #0f172a;

    transform: rotate(90deg);
}

/* ========================= */
/* TYPO */
/* ========================= */

.contact-modal-eyebrow {
    display: inline-flex;

    margin-bottom: 12px;
    padding: 6px 12px;

    border-radius: 999px;

    background: #eef6ff;
    color: #2563eb;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-modal-card h2 {
    margin: 0 40px 10px 0;

    color: #0f172a;

    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.contact-modal-intro {
    margin: 0 0 24px;

    color: #64748b;

    font-size: 15px;
    line-height: 1.6;
}

/* ========================= */
/* FORM */
/* ========================= */

.contact-modal-form {
    display: grid;
    gap: 16px;
}

.contact-field {
    display: grid;
    gap: 7px;
}

.contact-field label {
    color: #334155;

    font-size: 13px;
    font-weight: 700;
}

/* ========================= */
/* INPUTS */
/* ========================= */

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;

    padding: 13px 14px;

    border-radius: 14px;
    border: 1px solid #dbe4f0;

    background: rgba(248, 250, 252, 0.85);
    color: #0f172a;

    font-size: 15px;

    outline: none;

    transition:
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.contact-field textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: rgba(77,166,255,.75);

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(37,99,235,.12),
        0 14px 30px rgba(37,99,235,.08);

    transform: translateY(-1px);
}

/* ========================= */
/* SUBMIT BUTTON */
/* ========================= */

.contact-submit-btn,
#contactForm button[type="submit"] {
    width: 100%;
    min-height: 52px;

    border: none;
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary)
        );

    color: #fff;

    font-size: .96rem;
    font-weight: 700;
    letter-spacing: -.01em;

    cursor: pointer;

    box-shadow:
        0 14px 30px rgba(37,99,235,.24);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        opacity .22s ease;
}

.contact-submit-btn:hover,
#contactForm button[type="submit"]:hover {
    transform: translateY(-2px);

    box-shadow:
        0 20px 38px rgba(37,99,235,.32);

    opacity: .97;
}

.contact-submit-btn:active,
#contactForm button[type="submit"]:active {
    transform: translateY(0);

    box-shadow:
        0 10px 24px rgba(37,99,235,.22);
}

/* ========================= */
/* RESPONSE */
/* ========================= */

.contact-response {
    margin-top: 14px;

    font-size: 14px;
    font-weight: 600;
}

/* ========================= */
/* NOTE */
/* ========================= */

.contact-modal-note {
    margin-top: 18px;
    padding: 13px 14px;

    border-radius: 16px;

    background: #f8fafc;
    border: 1px solid rgba(226,232,240,.9);

    color: #64748b;

    font-size: 13px;
    line-height: 1.5;
}

/* ========================= */
/* HONEYPOT */
/* ========================= */

.contact-honeypot {
    display: none !important;
}

/* ========================= */
/* BODY LOCK */
/* ========================= */

body.no-scroll {
    overflow: hidden;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 640px) {

    .contact-modal {
        padding: 14px;
    }

    .contact-modal-card {
        padding: 28px 22px;

        border-radius: 22px;

        max-height: 90vh;
        overflow-y: auto;
    }

    .contact-modal-card h2 {
        font-size: 26px;
    }
}

