.gw-contact {
    min-height: 64vh;
    padding-block: clamp(48px, 6vw, 84px);
    background: var(--gw-white);
}

.gw-contact__shell {
    display: grid;
    grid-template-columns: minmax(0, 660px);
    justify-content: center;
}

.gw-contact__panel {
    padding: clamp(28px, 3.5vw, 42px);
    background: var(--gw-panel);
    border: 1px solid var(--gw-line);
}

.gw-contact__heading {
    padding-bottom: clamp(20px, 2.5vw, 28px);
    border-bottom: 1px solid var(--gw-line);
}

.gw-contact__heading h1 {
    margin: 0;
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 560;
    letter-spacing: -.045em;
    line-height: 1;
}

.gw-contact__panel > .gw-alert {
    margin-top: 24px;
}

.gw-contact__form {
    gap: 17px;
    padding-top: clamp(24px, 3vw, 32px);
}

.gw-contact__field {
    display: grid;
    gap: 7px;
}

.gw-contact__field .gw-field-label {
    margin-top: 0;
}

.gw-contact__field .gw-field-label > span {
    color: var(--gw-danger);
}

.gw-contact__field .gw-select.has-error .gw-select__trigger {
    border-color: var(--gw-danger);
    box-shadow: inset 4px 0 0 var(--gw-danger);
}

.gw-contact__field .gw-select__menu button[aria-selected="true"]::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    transform: translateY(-50%);
    background: var(--gw-green-700);
}

.gw-contact__field .gw-textarea {
    min-height: 118px;
}

.gw-field-error {
    color: var(--gw-danger);
    font-size: 12px;
    line-height: 1.4;
}

.gw-contact__submit {
    justify-self: start;
    margin-top: 7px;
}

:root[data-theme="dark"] .gw-contact__field .gw-select__menu button[aria-selected="true"]::after {
    background: var(--gw-green-300);
}

@media (max-width: 600px) {
    .gw-contact {
        padding-block: 30px 52px;
    }

    .gw-contact__panel {
        padding: 24px;
    }

    .gw-contact__submit {
        width: 100%;
    }
}
