.quote {
    padding-block: 50px 63px;
    --c-bg: #AEAEAE1A;
    --_c-text-dk: #5E5E5E;
    --_c-border: #D9D9D980;
    --_c-placeholder: #747474;
    --_c-label-bg: #EDEDED
}

.quote .wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.quote .form-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 10px
}

.quote .form {
    background-color: var(--c-bg);
    max-width: 653px;
    margin-inline: auto;
    border-radius: 10px;
}

.quote form{  
    padding-block: 28px;
}


.quote form select {
    appearance: none;
    background: no-repeat 94% / 12px url(../images/icons/chevron-down.svg);
    background-color: #fff;
}


.quote .form .head {
    text-align: center;
    padding-block:17px;
    background-color: var(--c-primary);
    border-top-right-radius:10px;
    border-top-left-radius:10px;
}

.quote .form .head :first-child {
    font-size: var(--fs-md, 30px);
    font-weight: 800;
    color: #fff;
}

.quote .form .head p {
    max-width: 440px;
    margin-inline: auto;
    color: var(--_c-text-dk);
    line-height: var(--lh-lg)
}

.quote form .group:not(:has(textarea)) {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 20px;
    gap: 11px
}

.quote form .labels:not(.captcha .labels) {
    height: 24px;
    display: flex;
    align-items: center;
    margin-block: 19px;
    background-color: var(--_c-label-bg);
    padding-inline: 26px
}

.quote form .labels label:not(.captcha label) {
    font-size: var(--fs-xs, 14px);
    font-weight: 600;
    text-wrap: nowrap;
    color: var(--c-primary);
    margin-left: 5px
}

.quote form :where(input, select, textarea) {
    width: 100%;
    height: 40px;
    padding: 8px 11px;
    border: 1px solid var(--_c-border);
    border-radius: 5px;
    background-color: #fff;
    font-size: var(--fs-xs, 14px);
    color: var(--_c-placeholder)
}

.quote form :where(input, textarea)::placeholder {
    color: var(--_c-placeholder)
}

.quote form :where(input, textarea)::-moz-placeholder {
    color: #000
}

.quote form input[type=file] {
    padding-block: 2px
}

.quote form input:where([name=pu_phone], [name=answer])::-webkit-inner-spin-button {
    appearance: none
}

.quote form input::file-selector-button {
    font-size: 12px;
    background-color: #e8e5e5;
    border: 1px solid #00000080;
    border-radius: 4px;
    padding: 4px
}

.quote form select {
    appearance: none;
    cursor: pointer
}

.quote form select option {
    color: #000
}

.quote form .group:has(textarea) {
    margin-block: 19px;
    padding-inline: 20px;
}

.quote form textarea {
    height: 74px;
    resize: none;
    padding-block: 5px
}

.quote form .captcha {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-inline: 26px
}

.quote form .captcha .labels {
    margin-right: auto
}

.quote form .captcha svg {
    vertical-align: middle
}

.quote form .captcha .labels label {
    margin-left: 7px;
    font-size: var(--fs-base, 16px);
    font-weight: 700;
    text-wrap: nowrap;
}

.quote form .captcha .labels label img {
    margin-right: 12px;
}

.quote form .captcha .labels label span {
    font-weight: 400;
    color: #000
}

.quote form .captcha .captcha-input {
    position: relative;
    max-width: 200px;
}

.quote form .captcha .captcha-input .captcha-alert {
    position: absolute;
    bottom: -20px;
    left: 5px;
    width: 100%;
    height: fit-content;
    font-size: calc(var(--fs-xs, 14px) - 2px);
    font-weight: 700;
    color: var(--c-primary)
}

.quote form .group .invalid-file {
    position: absolute;
    bottom: -18px;
    right: 26px;
    font-size: calc(var(--fs-xs, 14px) - 2px);
    font-weight: 500;
    width: fit-content;
    height: auto;
    color: var(--c-primary)
}

.quote form .captcha button.button {
    width: 100%;
    max-width: 190px;
    text-wrap: nowrap;
    padding-block: 6.2px
}

@media only screen and (max-width:1200px) {
    .quote .wrapper {
        grid-template-columns: 460px 1fr
    }

    .quote form .labels:not(.captcha .labels) {
        margin-block: 12px
    }

    .quote form .captcha .captcha-input {
        margin-inline: 15px
    }

    .quote form .captcha .captcha-input .captcha-alert {
        top: -18px;
        bottom: 0
    }
}

@media only screen and (max-width:991px) {
    .quote .wrapper {
        grid-template-columns: 1fr;
        max-width: 653px;
        margin-inline: auto
    }

    .quote .form {
        border-radius: 15px
    }

    .quote .form .head p {
        max-width: 350px
    }

    .quote form .labels:not(.captcha .labels) {
        margin-block: 19px
    }

    .quote form .captcha {
        margin-bottom: 23px
    }

    .quote form .captcha button.button {
        max-width: 180px
    }
}

@media only screen and (max-width:767px) {
    .quote {
        padding-block: 30px 40px
    }

    .quote .wrapper {
        gap: 20px
    }
}

@media only screen and (max-width:575px) {
    .quote form .captcha {
        flex-direction: column;
        gap: 15px
    }

    .quote form .captcha .captcha-input,
    .quote form .captcha button.button {
        width: 100%;
        max-width: 100%
    }

    .quote form .captcha .captcha-input .captcha-alert {
        top: -20px;
        left: auto;
        right: 0;
        width: fit-content
    }
}

@media only screen and (max-width:475px) {
    .quote .form .head p {
        max-width: 300px
    }

    .quote form .labels:not(.captcha .labels) {
        margin-block: 15px
    }

    .quote form .captcha,
    .quote form .group:not(:has(textarea)) {
        padding-inline: 15px
    }

    .quote form .group:has(textarea) {
        padding-inline: 15px;
        margin-block: 11px
    }

    .quote form .group .invalid-file {
        bottom: -16px;
        right: auto;
        left: 18px
    }

    .quote form .group:where(:nth-of-type(n+2), :nth-of-type(n+5)) {
        flex-wrap: wrap
    }

    .quote form .group:nth-of-type(3)>*,
    .quote form .group:nth-of-type(5)>:nth-child(-n+2) {
        width: calc(50% - 6px)
    }
}

.quote form label[for="attachment"] {
    width: 100%;
    background-color: #fff;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 20px;
}

.quote form label[for="attachment"] > :first-child {
    font-size: calc(var(--fs-xs, 12px) - 2px);
    font-weight: 500;
    background-color: #E8E5E5;
    color: #535353;
    border: 1px solid #00000066;
    border-radius: 4px;
    padding: 3px 9px;
    text-wrap: nowrap;
}

.quote form label[for="attachment"] > :nth-child(2) {
    font-size: 10px;
    color: #535353;
    padding-left: 7px;
} 

.quote form label[for="attachment"]:hover > span:first-of-type {
    background-color: #d7d7d7;
}
.custom-tooltip {position: absolute;background: #bb2135;color: #fff;border: 1px solid #ccc;padding: 6px 10px;font-size: 12px;border-radius: 4px;box-shadow: 0 2px 4px rgba(0,0,0,0.2);z-index: 9999;white-space: nowrap;}
input.error {border-color: red;}