.contact-form-wrap {
    max-width: 680px;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.contact-form-title {
    position: relative;
    margin-bottom: 20px;
    color: #0f3a69;
}

.contact-form-title::after {
    content: "";
    display: block;
    width: 160px;
    height: 2px;
    background: #d3aa2d;
    margin-top: 10px;
}

.contact-form-grid {
    display: grid;
    gap: 10px;
}

.contact-form-field {
    position: relative;
    display: grid;
    gap: 0;
    padding-top: 14px;
    cursor: text;
}

.contact-form-label {
    position: absolute;
    left: 2px;
    top: 22px;
    font-weight: 500;
    color: #5d6f86;
    letter-spacing: 0.01em;
    transform-origin: left center;
    transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    pointer-events: none;
    opacity: 0.95;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #b8c2d2;
    border-radius: 0;
    padding: 18px 2px 8px;
    font: inherit;
    color: #10253f;
    background: transparent;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: #1f4f86;
    box-shadow: none;
}

.contact-form-textarea {
    min-height: 128px;
    resize: vertical;
    line-height: 1.45;
}

.contact-form-field.is-active .contact-form-label,
.contact-form-field:focus-within .contact-form-label {
    transform: translateY(-16px) scale(0.88);
    color: #1f4f86;
    opacity: 0.9;
}

.contact-form-field:focus-within .contact-form-input,
.contact-form-field:focus-within .contact-form-textarea {
    background-color: rgba(31, 79, 134, 0.02);
}

.contact-form-status {
    min-height: 1.1rem;
    font-size: 0.92rem;
    margin-top: 4px;
}

.contact-form-status.is-success {
    color: #166534;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-form-status.is-error {
    color: #b91c1c;
}

.contact-form-status-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 18px;
}

.contact-form-submit {
    justify-self: start;
    margin-top: 8px;
    border-radius: 999px;
    padding: 10px 20px;
    min-height: 0;
    background: #0f3a69;
    color: #ffffff;
    border: 1px solid #0f3a69;
    text-decoration: none;
    font-weight: 600;
}

.contact-form-submit:hover {
    background: #0b2f56;
    border-color: #0b2f56;
}

@media (max-width: 640px) {
    .contact-form-wrap {
        max-width: 100%;
    }
}
