.contact-section {
    min-height: calc(100vh - 76px);
    overflow: hidden;
    padding-top: clamp(72px, 8vw, 116px);
    background:
        radial-gradient(circle at 82% 25%, rgba(79, 140, 255, .1), transparent 25rem),
        radial-gradient(circle at 94% 65%, rgba(255, 79, 135, .08), transparent 23rem),
        rgba(0, 0, 0, .12);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
    align-items: center;
    gap: clamp(48px, 8vw, 120px);
}

.contact-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.contact-heading {
    width: 100%;
    margin-bottom: clamp(48px, 7vw, 82px);
}

.contact-heading h1 {
    margin: 24px 0 28px;
    font-size: clamp(3.2rem, 6.4vw, 6.25rem);
    letter-spacing: -.068em;
    line-height: .92;
}

.contact-heading > p:last-child {
    max-width: 900px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

.contact-direct-list {
    display: grid;
    margin-bottom: 18px;
    grid-template-columns: 1fr;
    gap: 14px;
}

.contact-direct {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 22px 24px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border: 1px solid rgba(79, 140, 255, .35);
    border-radius: 18px;
    background: rgba(79, 140, 255, .075);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-direct:hover {
    border-color: rgba(79, 140, 255, .78);
    background: rgba(79, 140, 255, .12);
    transform: translateY(-2px);
}

.contact-direct span,
.contact-direct small,
.contact-direct strong {
    display: block;
}

.contact-direct small {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-direct strong {
    overflow-wrap: anywhere;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.contact-direct > i {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    color: #101010;
    border-radius: 50%;
    background: var(--accent);
    font-style: normal;
}

.contact-form {
    position: relative;
    padding: clamp(25px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .035);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .18);
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-form-feedback {
    margin: -8px 0 26px;
    padding: 14px 16px;
    border: 1px solid rgba(79, 140, 255, .35);
    border-radius: 12px;
    color: #dbe7ff;
    background: rgba(79, 140, 255, .09);
    font-size: 13px;
    line-height: 1.55;
}

.contact-form-feedback.is-hidden {
    display: none;
}

.contact-form-feedback.is-error {
    border-color: rgba(255, 79, 135, .45);
    color: #ffd6e3;
    background: rgba(255, 79, 135, .09);
}

.contact-form-feedback.is-success {
    border-color: rgba(79, 140, 255, .48);
}

.contact-form-heading {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.contact-form-heading .eyebrow {
    margin-bottom: 12px;
}

.contact-form-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    letter-spacing: -.05em;
    line-height: 1.05;
}

.contact-form-number {
    color: #666;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    letter-spacing: .08em;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
}

.contact-field {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 8px;
}

.contact-field > span {
    color: #c4c4c4;
    font-size: 12px;
    font-weight: 700;
}

.contact-field > span i {
    color: var(--accent-secondary);
    font-style: normal;
}

.contact-field-wide {
    grid-column: 1 / -1;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    min-width: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 13px;
    outline: 0;
    background: rgba(8, 8, 8, .48);
    font: inherit;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.contact-field input,
.contact-field select {
    height: 54px;
    padding: 0 16px;
}

.contact-field select {
    padding-right: 42px;
    appearance: none;
    cursor: pointer;
}

.contact-field-select::after {
    position: absolute;
    right: 18px;
    bottom: 22px;
    width: 7px;
    height: 7px;
    border-right: 1px solid #a7a7a7;
    border-bottom: 1px solid #a7a7a7;
    content: '';
    pointer-events: none;
    transform: rotate(45deg);
}

.contact-field select option {
    color: #fff;
    background: #1c1c1c;
}

.contact-field textarea {
    min-height: 170px;
    padding: 15px 16px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #6f6f6f;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
    border-color: rgba(255, 255, 255, .27);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: var(--accent);
    background: rgba(79, 140, 255, .045);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, .1);
}

.contact-form-footer {
    display: flex;
    margin-top: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.contact-turnstile {
    display: flex;
    width: 100%;
    min-height: 65px;
    margin-top: 22px;
    align-items: center;
}

.contact-turnstile .cf-turnstile {
    width: 100%;
}

.contact-turnstile.is-hidden {
    display: none;
}

.contact-form-footer p {
    max-width: 310px;
    margin: 0;
    color: #777;
    font-size: 11px;
    line-height: 1.55;
}

.contact-form-footer .button {
    flex: 0 0 auto;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.contact-visual {
    position: relative;
    align-self: center;
    min-width: 0;
    min-height: 660px;
}

.contact-visual::before {
    position: absolute;
    top: 9%;
    left: 50%;
    width: min(37vw, 500px);
    height: min(37vw, 500px);
    content: '';
    opacity: .2;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: 50%;
    filter: blur(115px);
    transform: translateX(-50%);
    pointer-events: none;
}

.contact-robot-viewer {
    width: 100%;
    min-height: 660px;
}

.contact-robot-viewer::before {
    width: 420px;
    height: 420px;
    opacity: .2;
}

.contact-visual-caption {
    position: absolute;
    right: 5%;
    bottom: 7%;
    z-index: 3;
    display: flex;
    padding: 13px 17px;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(20, 20, 20, .82);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .24);
    backdrop-filter: blur(12px);
}

.contact-visual-caption > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(79, 140, 255, .8);
}

.contact-visual-caption p,
.contact-visual-caption small,
.contact-visual-caption strong {
    display: block;
    margin: 0;
}

.contact-visual-caption small {
    color: #777;
    font-size: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-visual-caption strong {
    font-size: 11px;
}

@media (max-width: 980px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-content {
        max-width: 760px;
    }

    .contact-visual {
        width: min(100%, 650px);
        min-height: 560px;
        margin: -30px auto 0;
    }

    .contact-robot-viewer {
        min-height: 560px;
    }

    .contact-visual::before {
        width: 430px;
        height: 430px;
    }
}

@media (max-width: 600px) {
    .contact-section {
        padding-block: 68px;
    }

    .contact-heading h1 {
        font-size: clamp(3rem, 15vw, 4.5rem);
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-field-wide {
        grid-column: auto;
    }

    .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-form-footer .button {
        width: 100%;
    }

    .contact-visual,
    .contact-robot-viewer {
        min-height: 470px;
    }

    .contact-visual-caption {
        right: 0;
        bottom: 2%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-direct,
    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        transition: none;
    }
}
