.we-responces-form {
    max-width: 520px;
    font-family: 'Inter', sans-serif;
}

.we-responces-form__title {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 700;
    line-height: 24px;
    color: #17171A;
}

.we-responces-form__eligibility-message {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #9C9B9F;
}

.we-responces-form__row {
    margin-bottom: 20px;
}

.we-responces-form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
    color: #6B6A6E;
}

.we-responces-form__hint {
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    color: #9C9B9F;
    margin-top: -4px;
    margin-bottom: 8px;
}

/* text / select / textarea */

.we-responces-form input[type="text"],
.we-responces-form input[type="email"],
.we-responces-form input[type="tel"],
.we-responces-form textarea,
.we-responces-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #F7F7F6;
    border: 1.25px solid #E4E3E0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13.5px;
    line-height: 16px;
    color: #17171A;
}

.we-responces-form input::placeholder,
.we-responces-form textarea::placeholder {
    color: #757575;
}

.we-responces-form input[type="text"]:focus,
.we-responces-form input[type="email"]:focus,
.we-responces-form input[type="tel"]:focus,
.we-responces-form textarea:focus,
.we-responces-form select:focus {
    outline: none;
    border-color: #2F6FD1;
}

.we-responces-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.we-responces-form textarea {
    resize: vertical;
    min-height: 88px;
}

/* stars */

.we-responces-form__stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    width: fit-content;
}

.we-responces-form__stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.we-responces-form__stars label {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 2px 4px;
    color: transparent;
    -webkit-text-stroke: 1.5px #D5D4CF;
}

.we-responces-form__stars input:checked ~ label,
.we-responces-form__stars label:hover,
.we-responces-form__stars label:hover ~ label {
    color: #E0A93E;
    -webkit-text-stroke: 1.5px #E0A93E;
}

/* recomend toggle */

.we-responces-form__toggle-group {
    display: flex;
    gap: 10px;
}

.we-responces-form__toggle {
    flex: 1;
    position: relative;
}

.we-responces-form__toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.we-responces-form__toggle span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    box-sizing: border-box;
    border: 1.25px solid #E4E3E0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    color: #6B6A6E;
    cursor: pointer;
    text-align: center;
    padding: 0 12px;
}

.we-responces-form__toggle input:checked ~ span {
    background: rgba(31, 157, 85, 0.1);
    border-color: #1F9D55;
    color: #1F9D55;
}

/* chips (radio / checkbox for dynamic fields) */

.we-responces-form__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.we-responces-form__chip {
    position: relative;
}

.we-responces-form__chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.we-responces-form__chip span {
    display: inline-flex;
    align-items: center;
    height: 34px;
    box-sizing: border-box;
    padding: 0 16px;
    border: 1.25px solid #E4E3E0;
    border-radius: 20px;
    font-size: 12px;
    line-height: 14px;
    color: #6B6A6E;
    cursor: pointer;
    white-space: nowrap;
}

.we-responces-form__chip input:checked ~ span {
    background: rgba(47, 111, 209, 0.08);
    border-color: #2F6FD1;
    color: #2F6FD1;
}

/* file dropzone */

.we-responces-form__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 92px;
    padding: 20px;
    border: 1.25px dashed #D5D4CF;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease;
}

.we-responces-form__dropzone:hover,
.we-responces-form__dropzone.we-responces-form__dropzone_drag {
    border-color: #2F6FD1;
    background: rgba(47, 111, 209, 0.04);
}

.we-responces-form__dropzone-icon {
    flex-shrink: 0;
}

.we-responces-form__dropzone-text {
    font-size: 12px;
    line-height: 14px;
    color: #9C9B9F;
}

.we-responces-form__dropzone.we-responces-form__dropzone_filled .we-responces-form__dropzone-text {
    color: #17171A;
}

.we-responces-form__dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* consent checkbox */

.we-responces-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.we-responces-form__consent input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.we-responces-form__consent-box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    box-sizing: border-box;
    border: 1.25px solid #D5D4CF;
    border-radius: 4px;
    background: #FFFFFF;
    position: relative;
    transition: border-color .15s ease, background-color .15s ease;
}

.we-responces-form__consent-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.we-responces-form__consent input:checked ~ .we-responces-form__consent-box {
    background: #165DFF;
    border-color: #165DFF;
}

.we-responces-form__consent input:checked ~ .we-responces-form__consent-box::after {
    opacity: 1;
}

.we-responces-form__consent-text {
    font-size: 11.5px;
    line-height: 17px;
    color: #6B6A6E;
}

.we-responces-form__consent-text a,
.we-responces-form__row_consent-text a {
    color: inherit;
    text-decoration: underline;
}

.we-responces-form__row_consent-text {
    margin-top: -8px;
    margin-bottom: 20px;
    font-size: 11.5px;
    line-height: 17px;
    color: #9C9B9F;
}

/* submit */

.we-responces-form__submit {
    width: 100%;
    height: 43px;
    border: none;
    border-radius: 8px;
    background: #17171A;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 15px;
    cursor: pointer;
}

.we-responces-form__submit:disabled {
    opacity: 0.6;
    cursor: default;
}

/* messages */

.we-responces-form__message {
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 13px;
}

.we-responces-form__message_success {
    background: rgba(31, 157, 85, 0.1);
    color: #1F9D55;
}

.we-responces-form__message_error {
    background: rgba(219, 66, 66, 0.1);
    color: #DB4242;
}

/* popup open button */

.we-responces-form__open-button {
    height: 43px;
    box-sizing: border-box;
    padding: 0 22px;
    border: none;
    border-radius: 8px;
    background: #17171A;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* popup */

.we-responces-form__popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.we-responces-form__popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 23, 26, 0.5);
}

.we-responces-form__popup-body {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 32px;
    background: #FFFFFF;
    border-radius: 16px;
    transition: max-width .15s ease;
}

.we-responces-form__popup-body_success {
    max-width: 900px;
}

.we-responces-form__popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #F7F7F6;
    font-size: 20px;
    line-height: 1;
    color: #6B6A6E;
    cursor: pointer;
}

/* success screen */

.we-responces-success {
    font-family: 'Inter', sans-serif;
}

.we-responces-success__card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 24px;
    background: #F7F7F6;
    border: 1px solid #E4E3E0;
    border-radius: 14px;
}

.we-responces-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 12px;
    background: rgba(224, 169, 62, 0.14);
    border-radius: 22px;
}

.we-responces-success__title {
    margin: 0 0 12px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 23px;
    color: #17171A;
}

.we-responces-success__text {
    margin: 0;
    max-width: 440px;
    font-size: 13px;
    line-height: 21px;
    color: #6B6A6E;
}

.we-responces-success__steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 28px;
}

.we-responces-success__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
}

.we-responces-success__step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background: #F7F7F6;
    border: 1px solid #E4E3E0;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    color: #6B6A6E;
}

.we-responces-success__step_done .we-responces-success__step-badge {
    background: rgba(31, 157, 85, 0.1);
    border-color: #1F9D55;
}

.we-responces-success__step-title {
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: #6B6A6E;
}

.we-responces-success__step-hint {
    font-size: 10.5px;
    line-height: 16px;
    color: #9C9B9F;
}

.we-responces-success__step-arrow {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 16px;
    line-height: 24px;
    color: #9C9B9F;
}

@media (max-width: 640px) {
    .we-responces-success__steps {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .we-responces-success__step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 12px;
        width: 100%;
    }

    .we-responces-success__step-badge {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .we-responces-success__step-title {
        margin-bottom: 2px;
    }

    .we-responces-success__step-arrow {
        display: none;
    }
}
