.contact {
    padding: 60px 0;
}

.contact__intro {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 32px;
    padding: 0;
}

.contact__wrap {
    max-width: 540px;
    margin: 32px auto 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field__label {
    color: #d4d8ea;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: #ffffff;
    color: #0b1023;
    border: 1px solid #ffffff;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #98a0c0;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(224, 38, 58, 0.18);
}

.form-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b6bcd2;
    font-size: 13px;
    cursor: pointer;
}

.form-consent input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--color-accent);
}

.contact-form__submit {
    margin-top: 8px;
    align-self: stretch;
    justify-content: center;
}

.contact-thanks {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #1a2350;
    border-radius: 14px;
}

.contact-thanks__title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
}

.contact-thanks__text {
    margin: 0;
    color: #b6bcd2;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
