/* Footer feedback form — vet-brain-dz home-feedback */

.footer-help-consult.home-feedback {
    width: 100%;
    margin-inline: 0;
    font-family: Onest, system-ui, sans-serif;
}

.home-feedback__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.74fr);
    gap: 20px;
    align-items: stretch;
}

.home-feedback__intro,
.home-feedback__form {
    min-width: 0;
    padding: 32px;
    border-radius: 32px;
    background: #fff;
    box-sizing: border-box;
}

.home-feedback__intro {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(119.45deg, #54bfd1 0%, #239cb1 80.895%);
    padding-bottom: 12px;
    gap: 6px;
}

.home-feedback__intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("../images/main-page/advantage-6-texture.png") center / cover no-repeat;
    opacity: 0.07;
}

.home-feedback__intro::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 68% 62% at 50% 76%, rgba(218, 250, 255, 0.24), rgba(218, 250, 255, 0) 74%);
}

.home-feedback__intro-copy,
.home-feedback__illustration {
    position: relative;
    z-index: 1;
}

.home-feedback__intro-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-feedback__illustration {
    display: block;
    align-self: center;
    width: min(100%, 310px);
    height: 268px;
    object-fit: contain;
    object-position: center bottom;
}

.home-feedback__title {
    margin: 0;
    color: #232929;
    font-size: clamp(36px, 3.4vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.home-feedback__lead {
    max-width: 28ch;
    margin: 0;
    color: #859494;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.home-feedback__intro .home-feedback__title,
.home-feedback__intro .home-feedback__lead {
    color: #fff;
}

.home-feedback__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-feedback__form-title {
    margin: 0;
    color: #232929;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.home-feedback__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-feedback__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    color: #232929;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.home-feedback__field--wide {
    grid-column: 1 / -1;
}

.home-feedback__optional {
    color: #859494;
    font-weight: 500;
}

.home-feedback__field input,
.home-feedback__field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 16px 18px;
    border: 1px solid #d8e7e9;
    border-radius: 16px;
    background: #f2f8fa;
    box-sizing: border-box;
    color: #232929;
    font: 500 18px / 1.35 Onest, system-ui, sans-serif;
}

.home-feedback__field textarea {
    min-height: 96px;
    resize: vertical;
}

.home-feedback__field input::placeholder,
.home-feedback__field textarea::placeholder {
    color: #859494;
    opacity: 1;
}

.home-feedback__field input:focus-visible,
.home-feedback__field textarea:focus-visible {
    outline: 2px solid #239cb1;
    outline-offset: 2px;
}

.home-feedback__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.home-feedback__method {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.home-feedback__method legend {
    margin-bottom: 10px;
    color: #232929;
    font-size: 16px;
    font-weight: 700;
}

.home-feedback__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-feedback__choices label {
    position: relative;
    cursor: pointer;
}

.home-feedback__choices input {
    position: absolute;
    opacity: 0;
}

.home-feedback__choices span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid #d8e7e9;
    border-radius: 999px;
    background: #f2f8fa;
    box-sizing: border-box;
    color: #232929;
    font-size: 16px;
    font-weight: 500;
}

.home-feedback__choices svg,
.home-feedback__choices .home-feedback__choice-icon {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.home-feedback__choices input:checked + span {
    border-color: #239cb1;
    background: #e8f4f6;
    color: #168aa0;
}

.home-feedback__choices input:focus-visible + span {
    outline: 2px solid #239cb1;
    outline-offset: 2px;
}

.home-feedback__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #859494;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

.home-feedback__consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #239cb1;
}

.home-feedback__consent a {
    color: #239cb1;
    text-decoration: underline;
}

.home-feedback__submit {
    align-self: stretch;
    width: 100%;
    min-height: 64px;
    padding: 16px 32px;
    border: 0;
    border-radius: 16px;
    background: #f8485e;
    color: #fff;
    font: 700 20px / 1.2 Onest, system-ui, sans-serif;
    cursor: pointer;
}

.home-feedback__submit:hover {
    background: #e63b52;
}

.home-feedback__submit:disabled {
    opacity: 0.65;
    cursor: default;
}

.home-feedback__submit:focus-visible {
    outline: 3px solid #239cb1;
    outline-offset: 3px;
}

.home-feedback__status {
    margin: 0;
    color: #168aa0;
    font-size: 16px;
    line-height: 1.4;
}

.home-feedback__status.is-error {
    color: #c0392b;
}

@media (max-width: 1100px) {
    .home-feedback__layout {
        grid-template-columns: 1fr;
    }

    .home-feedback__intro {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        min-height: 0;
    }

    .home-feedback__illustration {
        flex: 0 0 auto;
        width: 264px;
        height: 240px;
    }

    .home-feedback__lead {
        max-width: 48ch;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .home-feedback__intro-copy {
        flex: 1 1 0;
        min-width: 0;
        align-items: flex-start;
        justify-content: center;
        text-align: left;
    }

    .home-feedback__lead {
        max-width: 28ch;
    }

    .home-feedback__fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .home-feedback__intro,
    .home-feedback__form {
        padding: 24px;
        border-radius: 24px;
    }

    .home-feedback__title {
        font-size: 36px;
    }

    .home-feedback__intro {
        flex-direction: column;
        align-items: stretch;
    }

    .home-feedback__illustration {
        align-self: center;
        width: min(100%, 272px);
        height: 238px;
    }

    .home-feedback__fields {
        grid-template-columns: 1fr;
    }

    .home-feedback__submit {
        width: 100%;
    }
}

@media (min-width: 1440px) {
    .home-feedback__title {
        font-size: 52px;
    }
}
