.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form__field--full {
    grid-column: 1 / -1;
}

.contact-form__label {
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    color: #3D3D3D;
}

.contact-form__req {
    color: #C0392B;
}

.contact-form__input {
    background: #F8F8F8;
    border: 1px solid #E0E0E0;
    padding: 14px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 36px;
    color: #3D3D3D;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form__input:focus {
    border-color: #166592;
}

.contact-form__input::placeholder {
    color: #8C8C8C;
}

.contact-form__textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form__input--error {
    border-color: #C0392B;
}

.contact-form__field-error {
    font-size: 16px;
    line-height: 24px;
    color: #C0392B;
    min-height: 0;
}

.contact-form__field-error:empty {
    display: none;
}

.contact-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__actions {
    margin-top: 40px;
    text-align: right;
}

.contact-form__submit {
    display: inline-block;
    padding: 14px 50px;
    background-color: #166592;
    color: #fff;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form__submit:hover {
    background-color: #124f73;
}

.contact-form__submit:disabled {
    background-color: #8C8C8C;
    cursor: not-allowed;
}

.contact-form__status {
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 28px;
    min-height: 28px;
    text-align: right;
}

.contact-form__status--success {
    color: #1E7E34;
}

.contact-form__status--error {
    color: #C0392B;
}

/* Success popup */
.contact-form__popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-form__popup--open {
    display: flex;
}

.contact-form__popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.contact-form__popup-box {
    position: relative;
    z-index: 1;
    background: #fff;
    max-width: 480px;
    width: 100%;
    padding: 50px 40px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.contact-form__popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #8C8C8C;
    cursor: pointer;
    padding: 0;
}

.contact-form__popup-close:hover {
    color: #3D3D3D;
}

.contact-form__popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #1E7E34;
    color: #fff;
    font-size: 34px;
    line-height: 64px;
}

.contact-form__popup-message {
    margin: 0 0 30px;
    font-size: 22px;
    line-height: 32px;
    color: #3D3D3D;
}

.contact-form__popup-ok {
    display: inline-block;
    padding: 12px 44px;
    background-color: #166592;
    color: #fff;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form__popup-ok:hover {
    background-color: #124f73;
}

/* Tablet */
@media (max-width: 1280px) {
    .contact-form__grid {
        gap: 25px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .contact-form__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form__submit {
        width: 100%;
    }

    .contact-form__status {
        text-align: left;
    }
}
