.input-contact input,
.input-contact textarea {
    display: block;
    box-sizing: border-box;
    padding: 10px 0;
    width: 100%;
    height: 44px;
    border: 1px solid #b19a6f;
    font-weight: 400;
    transition: 0.2s ease;
    background: #f5f5f5;
    border-radius: 6px;
    text-indent: 10px;
    font-family: var(--font);
    font-size: 14px;
    color: #553301;
    box-shadow: 0 0 BLACK;
}

.input-contact input::-webkit-input-placeholder,
.input-contact textarea::-webkit-input-placeholder {
    font-size: 14px;
    color: #000;
}

.input-contact input:focus,
.input-contact textarea:focus {
    outline: 0;
    border: 1px solid #b19a6f;
    box-shadow: 0 0 BLACK;
    background: #fff;
}

.input-contact_flex input:focus {
    box-shadow: 2px 2px 1px var(--color-hv-main);
}

.input-contact textarea {
    width: 100%;
    height: 100px;
    resize: none;
    border-radius: 5px;
}

.btn_input-contact.flex {
    text-align: center;
    justify-content: center;
    margin: 10px 0 25px;
}

.btn_input-contact input[type='submit'],
.btn_input-contact input[type='reset'] {
    width: 130px;
    height: 40px;
    margin: 0 5px;
    text-indent: 0;
    background: var(--bgmain);
    text-transform: uppercase;
    color: #000;
    font-size: 15px;
    font-family: var(--fontB);
    border: none;
    box-shadow: 2px 2px 1px var(--color-hv-main);
}

.btn_input-contact input[type='reset'] {}

.btn_input-contact input:hover {
    transform: translateY(-5px);
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.btn_input-contact input:focus {
    outline: 0;
}

.form_contact {
    padding: 0;
    margin: 0;
}

.bottom-contact {
    position: relative;
}

.bottom-contact iframe {
    width: 100% !important;
}

.input-contact {
    position: relative;
    margin-bottom: 16px;
    padding: 0 8px;
}

.custom-file-label {
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background: #ccc;
    height: 45px;
    border: 1px solid #ccc;
    font-family: var(--font);
    font-size: 14px;
    color: #000;
    box-shadow: 2px 2px 1px #8a8a8a;
    padding: 10px 10px;
}

.input-contact .custom-file-label::after {
    content: attr(title);
    height: 45px;
    color: #fff;
    background: #000;
    text-transform: uppercase;
    padding: 10px;
    right: -3px;
    position: absolute;
    top: 0;
}

.invalid-feedback {
    display: none;
    width: 100%;
    font-size: 80%;
    color: #dc3545;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 45px;
    z-index: 1;
    padding: 0.375rem 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    border: none;
    border-radius: 0.25rem;
    padding: 10px 15px;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    margin: 0;
    opacity: 0;
}

.input-contact .custom-file-input {
    opacity: 1;
    margin: 0;
    height: auto;
    border: none;
    text-indent: 1px;
    background: transparent;
    box-shadow: none;
}

.input-contact .custom-file-input::focus {
    outline: 0;
}

.label_input {
    position: relative;
}

.label_input label {
    height: 20px;
    line-height: 20px;
    color: #c6ac77;
    font: 14px var(--font);
    transform-origin: top left;
    top: 12px;
    transition: .3s cubic-bezier(.25, .8, .5, 1);
    position: absolute;
    left: 24px;
    margin: 0;
}

.afinput {
    position: absolute;
    content: '';
    width: 0;
    height: 1px;
    background: #fff;
    left: 15px;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.row_label_input {
    margin: 0 -8px;
}

.label_input .invalid-feedback {
    position: absolute;
    left: 24px;
    bottom: 3px;
    font-size: 11px;
    margin: 0;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.was-validated :invalid~label,
.is-invalid~label {
    top: 8px;
}

.label_input input:focus~label,
.label_input input.not-empty~label,
.label_input textarea:focus~label,
.label_input textarea.not-empty~label {
    top: -10px;
}

.label_input input:focus~.invalid-feedback,
.label_input input.not-empty~.invalid-feedback,
.label_input textarea:focus~.invalid-feedback,
.label_input textarea.not-empty~.invalid-feedback {
    bottom: -100%;
    opacity: 0;
}

.label_input label span {
    position: relative;
    z-index: 9;
}

.label_input label:before {
    position: absolute;
    content: '';
    width: 0;
    left: -10%;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 3px;
    background: #fff;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    opacity: 0;
}

.label_input input:focus~label:before,
.label_input input.not-empty~label:before,
.label_input textarea:focus~label:before,
.label_input textarea.not-empty~label:before {
    width: 120%;
    opacity: 1;
}

.contact-page {
    padding: 45px 0 60px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.contact-page .title-main {
    margin-bottom: 28px;
    text-align: center;
}

.contact-page .title-main span {
    color: var(--mainColor);
    font-family: var(--font-Poppins-SemiBold, var(--fontB));
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.25;
}

.contact-page .top-contact {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px 0;
}

.contact-page .article-contact,
.contact-page .form_contact {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.contact-page .article-contact {
    color: #334155;
    font-size: 15px;
    line-height: 1.8;
}

.contact-page .article-contact>*:first-child {
    margin-top: 0;
}

.contact-page .article-contact a {
    color: var(--mainColor);
    font-weight: 700;
}

.contact-page .article-contact iframe {
    width: 100%;
    min-height: 300px;
    border: 0;
    border-radius: 8px;
}

.contact-page .form-contact {
    height: 100%;
    width: 100%;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.contact-page .row {
    margin-left: -8px;
    margin-right: -8px;
}

.contact-page .input-contact {
    margin-bottom: 20px;
}

.contact-page .input-contact input,
.contact-page .input-contact textarea {
    height: 48px;
    padding: 14px 14px 8px;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    text-indent: 0;
    box-shadow: none;
}

.contact-page .input-contact textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-page .input-contact input:focus,
.contact-page .input-contact textarea:focus {
    border-color: var(--mainColor);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(1, 68, 33, 0.12);
}

.contact-page .label_input label {
    left: 22px;
    top: 14px;
    color: #64748b;
    font-size: 14px;
}

.contact-page .label_input input:focus~label,
.contact-page .label_input input.not-empty~label,
.contact-page .label_input textarea:focus~label,
.contact-page .label_input textarea.not-empty~label {
    top: -9px;
    color: var(--mainColor);
    font-size: 12px;
    font-weight: 700;
}

.contact-page .label_input label:before {
    background: #fff;
}

.contact-page .label_input .invalid-feedback {
    left: 16px;
    bottom: -15px;
}

.contact-page .btn_input-contact.flex {
    justify-content: flex-start;
    gap: 10px;
    margin: 8px 0 0;
}

.contact-page .btn_input-contact input[type='submit'],
.contact-page .btn_input-contact input[type='reset'] {
    min-width: 125px;
    width: auto;
    height: 44px;
    margin: 0;
    padding: 0 22px;
    border-radius: 6px;
    box-shadow: none;
    color: #fff;
    font-size: 14px;
    transition: all .25s ease;
}

.contact-page .btn_input-contact input[type='submit'] {
    background: var(--mainColor);
}

.contact-page .btn_input-contact input[type='reset'] {
    background: #64748b;
}

.contact-page .btn_input-contact input:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.15);
}

@media (max-width: 767px) {
    .contact-page {
        padding: 32px 0 42px;
    }

    .contact-page .article-contact,
    .contact-page .form_contact {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-page .form-contact {
        padding: 20px 14px;
    }

    .contact-page .btn_input-contact.flex {
        flex-wrap: wrap;
    }

    .contact-page .btn_input-contact input[type='submit'],
    .contact-page .btn_input-contact input[type='reset'] {
        flex: 1 1 120px;
    }
}
