/* =========================================================
   CONFIDENTIAL CONSULTATION SECTION
========================================================= */

.consultation-section {
    position: relative;

    width: 100%;

    padding: 100px 0;

    box-sizing: border-box;

    overflow: hidden;

    background: #002347;
}


.consultation-section__inner {
    display: grid;

    grid-template-columns:
        minmax(0, 528px)
        minmax(420px, 535px);

    width: calc(100% - 48px);
    max-width: 1216px;

    min-height: 579px;

    margin: 0 auto;

    align-items: center;

    gap: 153px;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.consultation-section__content {
    width: 100%;
}


.consultation-section__title {
    max-width: 528px;

    margin: 0 0 16px;

    color: #ffffff;

    font-family: "Open Sans", sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.3;
}


.consultation-section__description {
    max-width: 528px;

    margin: 0;

    color: rgba(255, 255, 255, 0.7);

    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
}


/* =========================================================
   FORM CARD
========================================================= */

.consultation-form-card {
    width: 100%;

    min-width: 0;

    background: #ffffff;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12);
}


.consultation-form-card__header {
    display: flex;

    min-height: 79px;

    padding: 24px;

    box-sizing: border-box;

    align-items: center;

    border-bottom: 1px solid #d5d7da;
}


.consultation-form-card__title {
    margin: 0;

    color: #000000;

    font-family: "Open Sans", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}


/* =========================================================
   FORM
========================================================= */

.consultation-form {
    display: flex;

    width: 100%;

    padding: 24px;

    box-sizing: border-box;

    flex-direction: column;

    gap: 24px;
}


.consultation-form__fields {
    display: flex;

    width: 100%;

    flex-direction: column;

    gap: 24px;
}


.consultation-form__row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}


.consultation-form__field {
    position: relative;

    display: flex;

    min-width: 0;

    flex-direction: column;

    gap: 6px;
}


.consultation-form__label {
    color: #414651;

    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}


.consultation-form__label span {
    color: #002347;
}


/* =========================================================
   INPUTS
========================================================= */

.consultation-form__input,
.consultation-form__textarea {
    display: block;

    width: 100%;

    padding: 8px 12px;

    box-sizing: border-box;

    color: #002347;

    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;

    background: #ffffff;

    border: 1px solid #d5d7da;
    border-radius: 8px;

    box-shadow:
        0 1px 2px rgba(10, 13, 18, 0.05);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


.consultation-form__input {
    height: 40px;
}


.consultation-form__textarea {
    min-height: 80px;

    resize: vertical;
}


.consultation-form__input::placeholder,
.consultation-form__textarea::placeholder {
    color: rgba(0, 35, 71, 0.6);

    opacity: 1;
}


.consultation-form__input:focus,
.consultation-form__textarea:focus {
    border-color: #002347;

    box-shadow:
        0 0 0 3px rgba(0, 35, 71, 0.1);
}


.consultation-form__input.is-invalid,
.consultation-form__textarea.is-invalid {
    border-color: #b42318;

    background: #fffafa;

    box-shadow:
        0 0 0 3px rgba(180, 35, 24, 0.08);
}


/* =========================================================
   RADIO CHOICE
========================================================= */

.consultation-form__contact-choice {
    display: flex;

    width: 100%;

    min-width: 0;

    margin: 0;
    padding: 0;

    flex-direction: column;

    gap: 6px;

    border: 0;
}


.consultation-form__choice-title {
    width: 100%;

    margin: 0;
    padding: 0;

    color: #414651;

    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}


.consultation-form__radio-options {
    display: flex;

    align-items: center;

    gap: 24px;
}


.consultation-form__radio {
    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    cursor: pointer;
}


.consultation-form__radio input {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


.consultation-form__radio-circle {
    position: relative;

    display: block;

    width: 16px;
    height: 16px;

    box-sizing: border-box;

    flex: 0 0 16px;

    background: #ffffff;

    border: 1px solid #d5d7da;
    border-radius: 50%;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.consultation-form__radio input:checked +
.consultation-form__radio-circle {
    border: 5px solid #002347;
}


.consultation-form__radio input:focus-visible +
.consultation-form__radio-circle {
    box-shadow:
        0 0 0 3px rgba(0, 35, 71, 0.15);
}


.consultation-form__radio-text {
    color: rgba(0, 35, 71, 0.6);

    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}


.consultation-form__contact-choice.is-invalid
.consultation-form__radio-circle {
    border-color: #b42318;
}


/* =========================================================
   ERRORS
========================================================= */

.consultation-form__error {
    display: block;

    min-height: 0;

    color: #b42318;

    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.35;
}


.consultation-form__error:empty {
    display: none;
}


/* =========================================================
   SUBMIT
========================================================= */

.consultation-form__submit {
    position: relative;

    display: flex;

    width: 100%;
    min-height: 56px;

    padding: 16px 32px;

    box-sizing: border-box;

    align-items: center;
    justify-content: center;

    color: #000000;

    background: #e8ae00;

    border: 0;
    border-radius: 4px;

    cursor: pointer;

    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}


.consultation-form__submit:hover {
    background: #f2bb13;
}


.consultation-form__submit:active {
    transform: translateY(1px);
}


.consultation-form__submit:focus-visible {
    outline: 3px solid rgba(232, 174, 0, 0.35);
    outline-offset: 3px;
}


.consultation-form__submit:disabled {
    cursor: not-allowed;

    opacity: 0.7;
}


.consultation-form__loader {
    display: none;

    width: 18px;
    height: 18px;

    box-sizing: border-box;

    border: 2px solid rgba(0, 0, 0, 0.25);
    border-top-color: #000000;
    border-radius: 50%;

    animation:
        consultation-form-spin 0.7s linear infinite;
}


.consultation-form__submit.is-loading
.consultation-form__submit-text {
    display: none;
}


.consultation-form__submit.is-loading
.consultation-form__loader {
    display: block;
}


@keyframes consultation-form-spin {

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   NOTICES
========================================================= */

.consultation-form__notice {
    margin: 24px 24px 0;
    padding: 14px 16px;

    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;

    border-radius: 4px;
}


.consultation-form__notice--success {
    color: #075e35;

    background: #ecfdf3;

    border: 1px solid #abefc6;
}


.consultation-form__notice--error {
    color: #912018;

    background: #fef3f2;

    border: 1px solid #fecdca;
}


/* =========================================================
   AGENT PHOTO
========================================================= */

.consultation-section__agent {
    position: absolute;
    z-index: 5;

    right: 18px;
    bottom: 18px;

    display: flex;

    width: 76px;
    height: 76px;

    padding: 7px;

    box-sizing: border-box;

    align-items: center;
    justify-content: center;

    background: #3f4245;

    border-radius: 50%;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.28);
}


.consultation-section__agent-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border: 3px solid #c4aa87;
    border-radius: 50%;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .consultation-section__inner {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(420px, 535px);

        gap: 64px;
    }


    .consultation-section__title {
        font-size: 34px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    .consultation-section {
        padding: 70px 0;
    }


    .consultation-section__inner {
        grid-template-columns: 1fr;

        width: calc(100% - 32px);

        gap: 40px;
    }


    .consultation-section__content {
        max-width: 600px;
    }


    .consultation-section__title {
        font-size: 32px;
    }


    .consultation-section__description {
        font-size: 16px;
    }


    .consultation-section__agent {
        display: none;
    }
}


@media (max-width: 600px) {

    .consultation-section {
        padding: 56px 0;
    }


    .consultation-form-card__header {
        min-height: auto;

        padding: 20px;
    }


    .consultation-form-card__title {
        font-size: 21px;
    }


    .consultation-form {
        padding: 20px;
    }


    .consultation-form__row {
        grid-template-columns: 1fr;
    }


    .consultation-form__fields {
        gap: 20px;
    }


    .consultation-form__radio-options {
        gap: 20px;
    }
}