:root {
    --ysq-blue: #2ea4ff;
    --ysq-ink: #24263f;
    --ysq-pale: #f4fafb;
    --ysq-white: #fff;
}

body.ysq-open {
    overflow: hidden;
}

.ws-quiz-container,
.ws-quiz-id-89630 {
    display: none !important;
}

.ysq-floating {
    position: fixed;
    right: 8%;
    bottom: 4%;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px 0 12px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #f10000;
    box-shadow: 0 12px 28px rgba(195, 0, 0, .28);
    font: 700 15px/1.1 "Roboto", sans-serif;
    cursor: pointer;
    animation: ysq-glow 2.2s ease-in-out infinite;
}

.ysq-floating__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #f10000;
    background: #fff;
    font-size: 20px;
}

.ysq-overlay[hidden] {
    display: none !important;
}

.ysq-footer[hidden],
.ysq-error[hidden] {
    display: none !important;
}

.ysq-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(18, 24, 39, .76);
    backdrop-filter: blur(5px);
}

.ysq-modal {
    position: relative;
    width: min(940px, 96vw);
    height: min(610px, 90vh);
    overflow: hidden;
    border-radius: 10px;
    background: var(--ysq-pale);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
    color: var(--ysq-ink);
    font-family: "Roboto", sans-serif;
    animation: ysq-enter .25s ease-out both;
}

.ysq-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #6d7280;
    background: rgba(255, 255, 255, .88);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ysq-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ysq-stage {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.ysq-question {
    min-height: 100%;
    padding: 42px 52px 24px;
}

.ysq-question header {
    margin: 0 54px 26px 0;
}

.ysq-question h2,
.ysq-form-copy h2,
.ysq-success h2 {
    margin: 0;
    color: var(--ysq-ink);
    font: 700 27px/1.25 "Roboto", sans-serif;
    text-transform: none;
}

.ysq-question header p {
    margin: 8px 0 0;
    color: #787f91;
    font-size: 14px;
}

.ysq-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ysq-image-option,
.ysq-text-option {
    position: relative;
    display: block;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(36, 38, 63, .08);
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ysq-image-option:hover,
.ysq-text-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(36, 38, 63, .13);
}

.ysq-image-option.is-selected,
.ysq-text-option.is-selected {
    border-color: var(--ysq-blue);
}

.ysq-image-option input,
.ysq-text-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ysq-image-option img {
    display: block;
    width: 100%;
    height: 125px;
    object-fit: cover;
}

.ysq-image-option strong {
    display: block;
    padding: 11px 14px 12px 42px;
    color: var(--ysq-ink);
    font-size: 15px;
}

.ysq-choice-mark {
    position: absolute;
    left: 14px;
    bottom: 13px;
    width: 17px;
    height: 17px;
    border: 2px solid var(--ysq-blue);
    border-radius: 4px;
    background: #fff;
}

.is-selected .ysq-choice-mark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 5px;
    height: 10px;
    border: solid var(--ysq-blue);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ysq-text-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ysq-text-option {
    min-height: 62px;
    padding: 19px 20px 16px 52px;
}

.ysq-text-option .ysq-choice-mark {
    top: 20px;
    bottom: auto;
}

.ysq-text-option strong {
    font-size: 15px;
}

.ysq-date-wrap {
    display: grid;
    place-items: center;
    min-height: 260px;
}

.ysq-date-wrap label {
    width: min(460px, 100%);
    color: #666c7d;
    font-size: 14px;
}

.ysq-date,
.ysq-custom-input,
.ysq-form input[type="text"],
.ysq-form input[type="tel"] {
    display: block;
    width: 100%;
    height: 54px;
    margin-top: 9px;
    padding: 0 16px;
    border: 2px solid #dce4e8;
    border-radius: 7px;
    color: var(--ysq-ink);
    background: #fff;
    font: 16px/1 "Roboto", sans-serif;
    outline: none;
}

.ysq-date:focus,
.ysq-custom-input:focus,
.ysq-form input:focus {
    border-color: var(--ysq-blue);
}

.ysq-custom-input {
    margin-top: 16px;
}

.ysq-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 18px 52px 24px;
    border-top: 1px solid #e5ecef;
    background: rgba(255, 255, 255, .72);
}

.ysq-progress {
    flex: 1;
    max-width: 430px;
}

.ysq-progress__labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #8a91a1;
    font-size: 13px;
}

.ysq-progress__labels strong {
    color: var(--ysq-blue);
}

.ysq-progress__track {
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: #dfe9ed;
}

.ysq-progress__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ysq-blue);
    transition: width .25s ease;
}

.ysq-nav {
    display: flex;
    gap: 10px;
}

.ysq-btn,
.ysq-submit {
    min-width: 112px;
    min-height: 45px;
    padding: 0 20px;
    border: 2px solid var(--ysq-blue);
    border-radius: 6px;
    font: 700 14px/1 "Roboto", sans-serif;
    cursor: pointer;
}

.ysq-btn--back {
    color: var(--ysq-blue);
    background: transparent;
}

.ysq-btn--back:disabled {
    opacity: .38;
    cursor: default;
}

.ysq-btn--next,
.ysq-submit {
    color: #fff;
    background: var(--ysq-blue);
}

.ysq-form-page {
    display: grid;
    grid-template-columns: 40% 60%;
    min-height: 100%;
    background: #fff;
}

.ysq-form-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 42px;
    background: var(--ysq-pale);
}

.ysq-form-copy > span {
    align-self: flex-start;
    margin-bottom: 22px;
    padding: 8px 12px;
    border-radius: 5px;
    color: #634f00;
    background: #ffe684;
    font-size: 13px;
    font-weight: 700;
}

.ysq-form-copy p {
    margin: 18px 0 0;
    color: #747b8c;
    line-height: 1.55;
}

.ysq-form {
    align-self: center;
    padding: 42px 58px;
}

.ysq-form h3 {
    margin: 0 0 22px;
    color: var(--ysq-ink);
    font: 700 23px/1.25 "Roboto", sans-serif;
}

.ysq-form > label:not(.ysq-consent) {
    display: block;
    margin-top: 14px;
    color: #6d7383;
    font-size: 13px;
}

.ysq-contact-tabs {
    display: flex;
    gap: 6px;
    margin: 18px 0 4px;
}

.ysq-contact-tabs button {
    padding: 8px 11px;
    border: 1px solid #dce4e8;
    border-radius: 6px;
    color: #6f7584;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
}

.ysq-contact-tabs button.is-active {
    border-color: var(--ysq-blue);
    color: #fff;
    background: var(--ysq-blue);
}

.ysq-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 18px 0;
    color: #777e8e;
    font-size: 11px;
    line-height: 1.4;
}

.ysq-consent input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.ysq-consent a {
    color: var(--ysq-blue);
}

.ysq-submit {
    width: 100%;
}

.ysq-submit:disabled {
    opacity: .65;
}

.ysq-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
}

.ysq-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #a31616;
    background: #ffeaea;
    font-size: 13px;
}

.ysq-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 50px;
    text-align: center;
}

.ysq-success__mark {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 24px;
    border-radius: 50%;
    color: #fff;
    background: var(--ysq-blue);
    font-size: 38px;
}

.ysq-success p {
    margin: 16px 0 26px;
    color: #72798a;
}

@keyframes ysq-enter {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ysq-glow {
    0%, 100% { box-shadow: 0 12px 28px rgba(195, 0, 0, .28); }
    50% { box-shadow: 0 12px 34px rgba(241, 0, 0, .52); }
}

@media (max-width: 700px) {
    .ysq-floating {
        right: 16px;
        bottom: 90px;
        width: 52px;
        padding: 0;
        justify-content: center;
    }

    .ysq-floating > span:last-child {
        display: none;
    }

    .ysq-overlay {
        padding: 0;
    }

    .ysq-modal {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .ysq-question {
        padding: 60px 18px 18px;
    }

    .ysq-question header {
        margin-right: 34px;
    }

    .ysq-question h2,
    .ysq-form-copy h2,
    .ysq-success h2 {
        font-size: 22px;
    }

    .ysq-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ysq-image-option img {
        height: 108px;
    }

    .ysq-image-option strong {
        padding: 9px 7px 10px 35px;
        font-size: 13px;
    }

    .ysq-choice-mark {
        left: 10px;
        bottom: 10px;
    }

    .ysq-text-options {
        grid-template-columns: 1fr;
    }

    .ysq-date-wrap {
        min-height: 190px;
    }

    .ysq-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px 18px 18px;
    }

    .ysq-progress {
        max-width: none;
    }

    .ysq-nav {
        justify-content: flex-end;
    }

    .ysq-form-page {
        display: block;
    }

    .ysq-form-copy {
        padding: 58px 24px 26px;
    }

    .ysq-form-copy p {
        display: none;
    }

    .ysq-form-copy > span {
        margin-bottom: 13px;
    }

    .ysq-form {
        padding: 24px;
    }
}
