/* CONTACT HERO */

.contact-hero {
    position: relative;
    min-height: 840px;
    padding:
        155px
        max(24px, calc((100% - var(--page-width)) / 2))
        110px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.contact-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -35%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(164, 108, 255, 0.18),
            transparent 65%
        );
    filter: blur(25px);
}

.contact-hero-content {
    position: relative;
    z-index: 4;
    width: min(100%, 1050px);
}

.contact-hero h1 {
    max-width: 1050px;
    font-size: clamp(4.5rem, 10vw, 9.3rem);
    font-weight: 720;
    line-height: 0.88;
    letter-spacing: -0.078em;
}

.contact-hero h1 span {
    display: block;
    color: transparent;
    background:
        linear-gradient(
            105deg,
            #af7cff,
            #cf85f1,
            #eb7cbf
        );
    background-clip: text;
    -webkit-background-clip: text;
}

.contact-hero-description {
    max-width: 680px;
    margin-top: 34px;
    color: var(--text-secondary);
    font-size: clamp(1.04rem, 1.8vw, 1.24rem);
    line-height: 1.7;
}

.hero-email {
    width: fit-content;
    margin-top: 42px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: clamp(1.15rem, 2.8vw, 2rem);
    font-weight: 620;
    text-decoration: none;
    word-break: break-word;
}

.hero-email strong {
    color: var(--purple-light);
    transition: transform 0.2s ease;
}

.hero-email:hover strong {
    transform: translate(5px, -5px);
}

.contact-status {
    margin-top: 31px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.status-dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #72d69c;
    box-shadow: 0 0 17px rgba(114, 214, 156, 0.55);
}

.status-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(114, 214, 156, 0.32);
    border-radius: 50%;
    animation: statusPulse 2s ease-out infinite;
}

.contact-orbit {
    position: absolute;
    top: 50%;
    right: 4%;
    border: 1px solid rgba(205, 168, 255, 0.09);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.orbit-large {
    width: 650px;
    height: 650px;
    animation: orbitRotate 35s linear infinite;
}

.orbit-large::before,
.orbit-small::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--purple-light);
    box-shadow: 0 0 25px rgba(205, 168, 255, 0.8);
}

.orbit-small {
    right: 13%;
    width: 390px;
    height: 390px;
    animation: orbitRotate 24s linear infinite reverse;
}

/* MAIN FORM */

.contact-main {
    width: min(calc(100% - 40px), var(--page-width));
    margin: 0 auto;
    padding: 120px 0;
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(500px, 1.28fr);
    align-items: start;
    gap: clamp(60px, 9vw, 130px);
    border-top: 1px solid var(--border);
}

.contact-intro {
    position: sticky;
    top: 120px;
}

.contact-intro h2,
.divisions-heading h2,
.business-heading h2 {
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    font-weight: 680;
    line-height: 1;
    letter-spacing: -0.06em;
}

.contact-intro > p:last-child {
    max-width: 470px;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.72;
}

.contact-form {
    padding: clamp(28px, 5vw, 50px);
    border: 1px solid var(--border-strong);
    border-radius: 30px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        );
    box-shadow: var(--shadow);
    backdrop-filter: blur(25px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    margin-bottom: 23px;
}

.form-field label {
    margin-bottom: 9px;
    display: flex;
    justify-content: space-between;
    color: #ded6e6;
    font-size: 0.78rem;
    font-weight: 600;
}

.form-field label span {
    color: var(--text-muted);
    font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    outline: none;
    color: #ffffff;
    background: rgba(3, 1, 7, 0.42);
    font: inherit;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input,
.form-field select {
    height: 56px;
    padding: 0 17px;
    border-radius: 16px;
}

.form-field textarea {
    min-height: 190px;
    padding: 17px;
    resize: vertical;
    border-radius: 18px;
    line-height: 1.65;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #716979;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(205, 168, 255, 0.55);
    background: rgba(15, 8, 27, 0.72);
    box-shadow: 0 0 0 4px rgba(164, 108, 255, 0.08);
}

.form-field select {
    appearance: none;
    cursor: pointer;
}

.form-field select option {
    color: #ffffff;
    background: #10091b;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "⌄";
    position: absolute;
    top: 50%;
    right: 17px;
    color: var(--purple-light);
    transform: translateY(-55%);
    pointer-events: none;
}

.field-error,
.consent-error {
    display: none;
    margin-top: 8px;
    color: #ef95bd;
    font-size: 0.7rem;
}

.form-field.invalid .field-error,
.consent-error.visible {
    display: block;
}

.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
    border-color: rgba(239, 149, 189, 0.55);
}

.message-meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.message-meta > span:last-child {
    margin-top: 8px;
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.68rem;
}

.privacy-check {
    position: relative;
    display: grid;
    grid-template-columns: 23px 1fr;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.77rem;
    line-height: 1.55;
    cursor: pointer;
}

.privacy-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.25);
}

.privacy-check input:checked + .custom-checkbox {
    border-color: var(--purple);
    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--pink)
        );
}

.privacy-check input:checked + .custom-checkbox::after {
    content: "✓";
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
}

.privacy-check a {
    color: var(--purple-light);
}

.form-actions {
    margin-top: 31px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.submit-button {
    min-height: 56px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    border: 0;
    border-radius: 17px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--pink)
        );
    box-shadow: 0 16px 35px rgba(118, 66, 181, 0.25);
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(118, 66, 181, 0.34);
}

.submit-button strong {
    font-size: 1rem;
}

.form-actions p {
    max-width: 230px;
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.5;
    text-align: right;
}

/* DIRECT CONTACT */

.direct-contact-section {
    width: min(calc(100% - 40px), var(--page-width));
    margin: 0 auto;
    padding-bottom: 130px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.direct-contact-card {
    min-height: 390px;
    padding: clamp(30px, 5vw, 50px);
    border: 1px solid var(--border);
    border-radius: 29px;
}

.email-card {
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.12),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(164, 108, 255, 0.2),
            rgba(222, 115, 213, 0.08)
        );
}

.response-card {
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.1),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(78, 104, 190, 0.16),
            rgba(94, 61, 141, 0.08)
        );
}

.contact-card-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 50px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--purple-light);
    font-size: 1.3rem;
}

.card-label {
    margin-bottom: 12px;
    color: var(--purple-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.direct-contact-card h2 {
    max-width: 500px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.direct-contact-card > p:not(.card-label) {
    max-width: 510px;
    margin-top: 18px;
    color: var(--text-secondary);
    line-height: 1.68;
}

.direct-contact-card > a {
    margin-top: 31px;
    display: inline-block;
    color: #ffffff;
    font-size: clamp(1rem, 2.2vw, 1.45rem);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.response-note {
    margin-top: 31px;
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
}

/* DIVISIONS */

.divisions-section {
    padding: 130px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(3, 1, 7, 0.32);
}

.divisions-heading {
    width: min(100%, 850px);
    margin: 0 auto 65px;
    text-align: center;
}

.division-contact-grid {
    width: min(100%, var(--page-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.division-contact-card {
    min-height: 380px;
    padding: 27px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 26px;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.division-contact-card:hover {
    transform: translateY(-7px);
    border-color: var(--border-strong);
}

.jelly-card {
    background:
        linear-gradient(
            145deg,
            rgba(231, 116, 183, 0.15),
            rgba(117, 74, 165, 0.05)
        );
}

.flow-card {
    background:
        linear-gradient(
            145deg,
            rgba(87, 141, 226, 0.14),
            rgba(113, 84, 178, 0.05)
        );
}

.silver-card {
    background:
        linear-gradient(
            145deg,
            rgba(183, 190, 200, 0.11),
            rgba(60, 64, 76, 0.08)
        );
}

.division-code {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.66rem;
}

.division-contact-card > div {
    margin-top: auto;
}

.division-contact-card p {
    margin-bottom: 8px;
    color: var(--purple-light);
    font-size: 0.69rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.division-contact-card h3 {
    font-size: 2.3rem;
    letter-spacing: -0.05em;
}

.division-contact-card div span {
    margin-top: 14px;
    display: block;
    color: var(--text-secondary);
    line-height: 1.6;
}

.division-contact-card > strong {
    margin-top: 27px;
    color: var(--purple-light);
    font-size: 1.1rem;
}

/* BUSINESS */

.business-section {
    width: min(calc(100% - 40px), 900px);
    margin: 0 auto;
    padding: 130px 0;
}

.business-heading {
    margin-bottom: 50px;
    text-align: center;
}

.business-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: var(--shadow);
}

.business-panel > div {
    padding: 20px 23px;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 25px;
    border-bottom: 1px solid var(--border);
}

.business-panel > div:last-child {
    border-bottom: 0;
}

.business-panel span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.business-panel strong,
.business-panel a {
    color: #ded6e6;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.business-panel a:hover {
    color: var(--purple-light);
}

.business-notice {
    margin-top: 22px;
}

/* SUCCESS MESSAGE */

.form-success {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 700;
    max-width: 420px;
    padding: 17px;
    display: grid;
    grid-template-columns: 45px 1fr 32px;
    align-items: center;
    gap: 13px;
    visibility: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 19px;
    background: rgba(16, 8, 28, 0.94);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(20px);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.form-success.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.success-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--pink)
        );
    font-weight: 800;
}

.form-success > div:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.form-success strong {
    font-size: 0.84rem;
}

.form-success span {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.form-success button {
    border: 0;
    color: var(--text-muted);
    background: transparent;
    font-size: 1.35rem;
    cursor: pointer;
}

/* ANIMATIONS */

@keyframes statusPulse {
    from {
        opacity: 0.8;
        transform: scale(0.7);
    }

    to {
        opacity: 0;
        transform: scale(1.7);
    }
}

@keyframes orbitRotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* TABLET */

@media (max-width: 950px) {
    .contact-main {
        grid-template-columns: 1fr;
    }

    .contact-intro {
        position: static;
        max-width: 720px;
    }

    .direct-contact-section {
        grid-template-columns: 1fr;
    }

    .division-contact-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .division-contact-card {
        min-height: 290px;
    }
}

/* MOBILE */

@media (max-width: 650px) {
    .contact-hero {
        min-height: 760px;
        padding: 130px 17px 80px;
    }

    .contact-hero h1 {
        font-size: clamp(4rem, 20vw, 6rem);
    }

    .contact-hero-description {
        font-size: 1rem;
    }

    .hero-email {
        font-size: 1rem;
    }

    .contact-orbit {
        opacity: 0.55;
    }

    .orbit-large {
        right: -75%;
        width: 500px;
        height: 500px;
    }

    .orbit-small {
        right: -42%;
        width: 310px;
        height: 310px;
    }

    .contact-main {
        width: calc(100% - 28px);
        padding: 85px 0;
    }

    .contact-intro h2,
    .divisions-heading h2,
    .business-heading h2 {
        font-size: clamp(2.8rem, 14vw, 4rem);
    }

    .contact-form {
        padding: 27px 20px;
        border-radius: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .submit-button {
        width: 100%;
    }

    .form-actions p {
        max-width: none;
        text-align: center;
    }

    .direct-contact-section {
        width: calc(100% - 28px);
        padding-bottom: 90px;
    }

    .direct-contact-card {
        min-height: auto;
        padding: 30px 23px;
    }

    .contact-card-icon {
        margin-bottom: 35px;
    }

    .divisions-section {
        padding: 90px 14px;
    }

    .business-section {
        width: calc(100% - 28px);
        padding: 90px 0;
    }

    .business-panel > div {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .form-success {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }
}