.contact-page {
    background: #000;
    color: #fff;
    text-align: left;
    overflow-wrap: anywhere;
}

.contact-page > .contact-section {
    display: flex;
    align-items: center;
    height: auto;
    min-height: calc(100svh - var(--nav-h, 4rem) - var(--footer-h, 0px));
    padding: clamp(2rem, 4vw, 3rem) 1.5rem;
    overflow-y: visible;
}

.contact-kicker {
    color: #615fff;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-title {
    margin-top: .75rem;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
}

.contact-copy {
    margin-top: .75rem;
    color: rgb(255 255 255 / 72%);
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    margin-top: 1.25rem;
}

.contact-actions .review-action {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.25rem;
}

.contact-form {
    margin-top: 1.5rem;
}

.contact-receipt {
    margin-top: 1.5rem;
}

.contact-receipt-message {
    grid-column: 1 / -1;
}

.contact-receipt-field dt {
    margin-bottom: .5rem;
    color: rgb(255 255 255 / 85%);
    font-size: .95rem;
    font-weight: 650;
}

.contact-receipt-field dd {
    margin: 0;
    padding: .75rem;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: .25rem;
    background: #080808;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.contact-back-to-form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.5rem;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.contact-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

.contact-field[data-field="message"] {
    grid-column: 1 / -1;
}

.contact-field label {
    display: block;
    margin-bottom: .5rem;
    color: rgb(255 255 255 / 85%);
    font-size: .95rem;
    font-weight: 650;
}

.contact-field :is(input, select, textarea, .sg-select-trigger) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    padding: .75rem;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: .25rem;
    background: #080808;
    color: white;
    color-scheme: dark;
    font: inherit;
}

.contact-field textarea {
    resize: vertical;
    min-height: 8rem;
    padding-bottom: 2rem;
}

.contact-field select[hidden] {
    display: none;
}

.contact-field .sg-select-trigger {
    display: flex;
    cursor: pointer;
}

.contact-field :is(select, .sg-select-trigger):is(:focus, :focus-visible) {
    outline: none;
    box-shadow: none;
}

.contact-field :is(input, textarea) {
    caret-color: white;
    cursor: text;
}

.contact-field textarea::placeholder {
    color: rgb(255 255 255 / 45%);
    opacity: 1;
}

.contact-message {
    position: relative;
}

.contact-counter {
    position: absolute;
    right: 1rem;
    bottom: .5rem;
    padding: .1rem .25rem;
    background: #080808;
    color: rgb(255 255 255 / 45%);
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
    pointer-events: none;
    user-select: none;
}

.contact-counter[hidden] {
    display: none;
}

.contact-field [aria-invalid="true"] {
    border-color: #ff8b8b;
}

.contact-field-help {
    margin-top: .5rem;
    color: rgb(255 255 255 / 56%);
    font-size: .85rem;
    line-height: 1.6;
}

.contact-field-error {
    margin-top: .5rem;
    color: #ff8b8b;
    font-size: .9rem;
    line-height: 1.6;
}

.contact-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid;
    border-radius: .25rem;
    line-height: 1.7;
}

.contact-feedback-success {
    border-color: #615fff;
    color: #d4d3ff;
}

.contact-feedback-error {
    border-color: #ff8b8b;
    color: #ffb2b2;
}

.contact-form-trap {
    display: none;
}

@media (max-width: 560px) {
    .contact-form-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-kicker {
        font-size: 1.25rem;
    }

    .contact-page > .contact-section {
        padding-inline: 1.25rem;
    }
}
