.contact-form-component {
    width: 100%;
}

.contact-form-title {
    margin: 0 0 0px;
    color: #2d2723;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 2.4vw, 38px);
    line-height: 1.15;
}

.contact-form {
    width: 100%;
}

.contact-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px 26px;
}

.contact-form-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.contact-form-field-full {
    grid-column: 1 / -1;
}

.contact-form-field label {
    color: #403832;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.contact-form-field label span {
    color: #c46e43;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
    width: 100%;
    border: 1px solid #dfd4cb;
    border-radius: 10px;
    color: #302923;
    background: #ffffff;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.contact-form-field input,
.contact-form-field select {
    min-height: 48px;
    padding: 0 14px;
}

.contact-form-field textarea {
    min-height: 130px;
    padding: 14px;
    line-height: 1.6;
    resize: vertical;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
    color: #aaa099;
}

.contact-form-field input:hover,
.contact-form-field select:hover,
.contact-form-field textarea:hover {
    border-color: #cfb9a8;
}

.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
    border-color: #c46e43;
    background: #fffdfb;
    box-shadow:
        0 0 0 3px rgba(200, 135, 61, 0.12);
}

.contact-form-field select {
    cursor: pointer;
}

.contact-form-field input:invalid:not(:placeholder-shown),
.contact-form-field textarea:invalid:not(:placeholder-shown) {
    border-color: #d8948c;
}

.contact-form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    color: #70665f;
    font-size: 12px;
    line-height: 1.55;
    cursor: pointer;
}

.contact-form-privacy input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #c46e43;
}

.contact-form-privacy a {
    color: #b6682c;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form-privacy a:hover {
    color: #96501f;
}

.contact-form-actions {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.contact-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid #c46e43;
    border-radius: 9px;
    color: #ffffff;
    background: #c46e43;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow:
        0 8px 18px rgba(161, 93, 29, 0.14);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form-submit:hover {
    transform: translateY(-1px);
    border-color: #aa6829;
    background: #aa6829;
    box-shadow:
        0 10px 22px rgba(161, 93, 29, 0.18);
}

.contact-form-submit:focus-visible {
    outline: 3px solid rgba(200, 135, 61, 0.24);
    outline-offset: 3px;
}

.contact-form-submit:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.contact-form-response-note {
    margin: 6px 0 20px;
    color: #81766e;
    font-size: 13px;
    line-height: 1.55;
}

.contact-form-message {
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.55;
}

.contact-form-message[hidden] {
    display: none;
}

.contact-form-message.is-success {
    border-color: #b9dfc2;
    color: #246437;
    background: #edf8f0;
}

.contact-form-message.is-error {
    border-color: #efc2bd;
    color: #9a3028;
    background: #fff0ef;
}

.contact-form-field input[aria-invalid="true"],
.contact-form-field select[aria-invalid="true"],
.contact-form-field textarea[aria-invalid="true"] {
    border-color: #c65f54;
    box-shadow:
        0 0 0 3px rgba(198, 95, 84, 0.1);
}

.contact-form-message {
    margin-top: 18px;
    padding: 14px 16px;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.contact-form-message.is-success {
    border-color: #b7d8bd;
    color: #236232;
    background: #edf8ef;
}

.contact-form-message.is-error {
    border-color: #e4b7b7;
    color: #8b2424;
    background: #fff0f0;
}

.contact-form.is-submitting {
    opacity: 0.72;
}

.contact-form-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

@media (max-width: 700px) {
    .contact-form-title {
        margin-bottom: 20px;
        font-size: 28px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .contact-form-field-full {
        grid-column: auto;
    }

    .contact-form-field input,
    .contact-form-field select {
        min-height: 48px;
    }

    .contact-form-actions {
        display: grid;
    }

    .contact-form-submit {
        width: 100%;
    }
}