.contact-page {
    background: #fff;
}

.contact-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(500px, 66vh, 690px);
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: -18%;
    z-index: 1;
    background: radial-gradient(circle at 30% 35%, rgba(25, 158, 220, .16), transparent 34%), radial-gradient(circle at 72% 70%, rgba(113, 52, 200, .12), transparent 38%);
    animation: contactHeroDrift 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes contactHeroDrift {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

.contact-hero--closing { min-height: 300px; border-radius: 0 0 48px 48px; }
.contact-hero--closing .contact-hero__content { padding-top: 72px; padding-bottom: 88px; }

.contact-hero::after {
    content: "";
    position: absolute;
    inset: auto 8% 6% 8%;
    height: 34%;
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(50, 153, 224, .08), transparent 68%);
    filter: blur(28px);
    pointer-events: none;
}

.contact-hero__field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .94;
    filter: saturate(1.12) contrast(1.04);
    pointer-events: none;
}

.contact-hero__content {
    position: relative;
    z-index: 2;
    width: min(100%, 1080px);
    padding-top: 112px;
    padding-bottom: 70px;
    text-align: center;
}

.contact-hero h1 {
    max-width: 1060px;
    margin: 0 auto;
    color: #11141a;
    font-size: clamp(42px, 5.3vw, 78px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.contact-hero .hero-title__text {
    color: inherit;
    font: inherit;
}

.contact-hero .hero-title__caret {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #16a085, #2b9bdb 55%, #cceaf7);
    box-shadow: 0 0 14px rgba(43, 155, 219, .28);
    animation: heroTitleCaret 1s steps(1, end) infinite;
    will-change: transform;
}

.contact-hero .hero-title__caret.is-complete {
    opacity: 0;
    animation: none;
    transition: opacity .5s linear;
}

.contact-hero__intro {
    max-width: 720px;
    margin: 34px auto 0;
    color: #258ed5;
    font-size: clamp(18px, 1.7vw, 24px);
    line-height: 1.45;
    text-wrap: balance;
}

.block-form-contact {
    padding: 0 0 96px;
    background: #fff;
    border-radius: 0 0 48px 48px;
    overflow: hidden;
}

.block-form-contact > .container { width: min(100%, 1320px); }

.contact-panel {
    display: grid;
    grid-template-columns: minmax(260px, .82fr) minmax(0, 1.55fr);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid rgba(24, 29, 36, .035);
    border-radius: 56px;
    background: #f5f7fa;
}

.contact-panel__summary {
    padding: clamp(52px, 6vw, 92px);
    border-right: 1px solid rgba(24, 29, 36, .08);
}

.contact-panel__summary h2 {
    max-width: 440px;
    margin: 0;
    color: #11141a;
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.05em;
}

.contact-panel__summary > p:last-child {
    max-width: 410px;
    margin: 32px 0 0;
    color: #656b75;
    font-size: 18px;
    line-height: 1.55;
}

.block-form-contact .contact-panel__form.card-form {
    align-self: stretch;
    margin: 0;
    padding: clamp(52px, 6vw, 92px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

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

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

.block-form-contact .contact-field label {
    display: block;
    margin-bottom: 8px;
    color: #444a54;
    font-size: 14px;
    font-weight: 700;
}

.block-form-contact .contact-field .form-control {
    width: 100%;
    min-height: 58px;
    padding: 10px 0 13px;
    border: 0;
    border-bottom: 1px solid #cbd1d8;
    border-radius: 0;
    background: transparent;
    color: #151920;
    font-size: 18px;
    box-shadow: none;
}

.block-form-contact .contact-field textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.block-form-contact .contact-field .form-control:focus {
    outline: 0;
    border-color: transparent;
}

.block-form-contact .contact-field .col-input {
    position: relative;
}

.block-form-contact .contact-field .line {
    position: absolute;
    right: auto;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #7134c8, #199edc);
    transition: width .35s cubic-bezier(.22, 1, .36, 1);
}

.block-form-contact .contact-field .form-control:focus + .line {
    width: 100%;
}

.contact-field__error {
    margin: 8px 0 0;
    color: #b42318;
    font-size: 13px;
}

.contact-panel__form .alert {
    margin: 0 0 28px;
    border: 0;
    border-radius: 16px;
}

.contact-panel__form .alert p {
    margin: 0;
}

.contact-form__feedback {
    margin-top: 24px;
}

.contact-form__feedback:empty,
.contact-form__feedback .loading:not(.d-block),
.contact-form__feedback .error-message:empty,
.contact-form__feedback .sent-message:not(.d-block) {
    display: none;
}

.contact-form__actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 36px;
}

.contact-submit {
    --bubble-up-fill: #181d24;
    position: relative;
    min-width: 0;
    min-height: 56px;
    padding: 14px 28px;
    overflow: hidden;
    border: 1px solid var(--secondaryColor);
    border-radius: 9999px;
    background: var(--secondaryColor);
    color: #fff;
    font-size: 17.5px;
    font-weight: 500;
    line-height: 25.38px;
    isolation: isolate;
}

.block-form-contact .contact-submit::before {
    display: none;
}

.contact-submit .bubble-up-button__text {
    position: relative;
    z-index: 1;
    color: #fff;
}

.contact-submit:hover,
.contact-submit:focus-visible {
    color: #fff;
}
