.survey-floating,
.survey-modal {
    display: none;
}

.survey-floating {
    position: fixed;
    display: block;
    top: 25%;
    right: 0;
    z-index: 55;
    transform: translateY(-50%);
}

.floating-comments-icon {
    width: 44px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2b7fff;
    color: #ffffff;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 8px 20px rgba(43, 127, 255, 0.28);
    font-size: 24px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.floating-comments-icon:hover {
    background: #1f6ee8;
    transform: translateX(-2px);
}

.survey-hover-card {
    position: absolute;
    top: 0;
    right: 48px;
    width: 248px;
    padding: 16px;
    border: 1px solid rgba(191, 229, 255, 0.95);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 255, 0.96));
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
    color: #334155;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.08s ease, transform 0.08s ease;
}

.survey-hover-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: -18px;
    width: 20px;
    height: 100%;
}

.survey-floating:hover .survey-hover-card,
.survey-floating.is-open .survey-hover-card {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, 0) scale(1);
}

.survey-hover-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e0f4ff;
    color: #147bd0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.survey-hover-card h3 {
    margin: 0 0 7px;
    color: #1e3a5f;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.survey-hover-card p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.survey-hover-action {
    width: 100%;
    padding: 9px 12px;
    border-radius: 999px;
    background: #1f8bd7;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(31, 139, 215, 0.26);
    font-size: 12px;
    font-weight: 800;
    transition: background 0.16s ease, transform 0.16s ease;
}

.survey-hover-action:hover {
    background: #1378bf;
    transform: translateY(-1px);
}

.survey-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 24px 82px 24px 24px;
}

.survey-modal[aria-hidden="true"] {
    display: none;
}

.survey-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.34));
    backdrop-filter: blur(1px);
}

.survey-modal-card {
    position: relative;
    width: min(360px, calc(100vw - 36px));
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 28px 26px 20px;
    border: 1px solid rgba(207, 238, 255, 0.95);
    border-radius: 18px;
    background:
        radial-gradient(120px 80px at 50% 0%, rgba(221, 246, 255, 0.95), rgba(221, 246, 255, 0) 72%),
        rgba(255, 255, 255, 0.97);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
    color: #43536b;
    scrollbar-width: thin;
}

.survey-modal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #1f8bd7, #38bdf8);
}

.survey-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #1f8bd7;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 139, 215, 0.28);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.survey-modal-close:hover {
    background: #1378bf;
}

.survey-step {
    display: none;
}

.survey-step.is-active {
    display: block;
}

.survey-illustration {
    width: 68px;
    height: 68px;
    margin: 4px auto 8px;
}

.survey-illustration img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.survey-modal-card h2 {
    margin: 0 0 4px;
    color: #1177c7;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
    text-align: center;
}

.survey-lead {
    margin: 0 auto 16px;
    max-width: 286px;
    color: #52657d;
    font-size: 12.5px;
    line-height: 1.35;
    text-align: center;
}

.survey-audience-list {
    display: grid;
    gap: 8px;
}

.survey-audience-option {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    min-height: 42px;
    border: 1px solid #d7effd;
    border-radius: 8px;
    background: #ffffff;
    color: #3f4f66;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.03);
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 600;
    overflow: hidden;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.survey-audience-option > span:last-child {
    min-width: 0;
    padding: 7px 12px 7px 12px;
    line-height: 1.25;
    white-space: normal;
}

.survey-audience-option:hover {
    border-color: #8fd3ff;
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(31, 139, 215, 0.09);
}

.survey-audience-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.survey-audience-icon {
    width: 46px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4f7ff;
    color: #147bd0;
    font-weight: 800;
}

.survey-audience-icon svg {
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 8px;
    background: #ffffff;
    color: #147bd0;
    box-shadow: inset 0 0 0 1px rgba(20, 123, 208, 0.12);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.survey-audience-option:has(input[type="radio"]:checked) {
    border-color: #1f8bd7;
    box-shadow: 0 0 0 1px rgba(31, 139, 215, 0.18);
}

.survey-audience-other {
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
}

.survey-audience-other .survey-audience-icon {
    min-height: 42px;
}

.survey-audience-other > span:nth-of-type(2) {
    align-self: center;
    padding: 7px 12px 3px 12px;
    line-height: 1.25;
}

.survey-other-input {
    grid-column: 2;
    width: calc(100% - 24px);
    max-height: 0;
    margin: -2px 12px 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: #64748b;
    font-size: 11.5px;
    font-style: italic;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease, padding 0.18s ease;
}

.survey-audience-other:has(input[type="radio"]:checked) .survey-other-input {
    max-height: 28px;
    padding: 0 0 7px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.survey-info-note,
.survey-contact-note {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 11px;
    border-radius: 10px;
    background: #f1fbff;
    color: #334155;
    font-size: 9px;
    line-height: 1.35;
}

.survey-info-note span {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #267cff;
    border-radius: 999px;
    color: #267cff;
    font-size: 20px;
    font-weight: 800;
}

.survey-star-question {
    margin-top: 12px;
}

.survey-star-question p {
    margin-bottom: 8px;
    color: #43536b;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.18;
    text-align: left;
}

.survey-star-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 14px;
    border-radius: 999px;
    background: #f3f6fb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.survey-star-row button {
    color: #d0d0d0;
    font-size: 28px;
    line-height: 1;
    transition: color 0.18s ease, transform 0.18s ease;
}

.survey-star-row button:hover,
.survey-star-row button.active {
    color: #147bd0;
}

.survey-comment-wrap {
    position: relative;
    margin-top: 14px;
}

.survey-comment-wrap textarea {
    width: 100%;
    height: 106px;
    padding: 16px 16px 22px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #ffffff;
    resize: none;
    color: #475569;
    font-size: 12px;
    outline: 0;
}

#survey-comment-count {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: #9ca3af;
    font-size: 10px;
}

.survey-contact-note svg {
    width: 30px;
    height: 30px;
    color: #1f8bd7;
}

.survey-contact-note a {
    color: #147bd0;
    font-weight: 800;
    text-decoration: underline;
}

.survey-submit-notice {
    display: none;
    margin: 12px 0 0;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.survey-submit-notice.is-visible {
    display: block;
}

.survey-submit-notice.is-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.survey-submit-notice.is-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.survey-submit {
    display: block;
    width: 106px;
    margin: 14px auto 0;
    padding: 9px 0;
    border-radius: 999px;
    background: #1f8bd7;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(47, 127, 198, 0.32);
    font-size: 12px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.survey-submit:hover {
    background: #226fb1;
    transform: translateY(-1px);
}

.survey-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.survey-submit.is-submitted,
.survey-submit.is-submitted:hover {
    background: #94a3b8;
    color: #f8fafc;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
    transform: none;
}

.survey-step-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.survey-step-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
}

.survey-step-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e0f4ff;
    color: #1689dc;
    font-size: 12px;
    line-height: 1;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.survey-step-arrow:hover:not(:disabled) {
    background: #1689dc;
    color: #ffffff;
    transform: translateY(-1px);
}

.survey-step-arrow:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.survey-step-dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ccefff;
}

.survey-step-dots button.active {
    background: #1689dc;
}

.survey-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .survey-hover-card {
        right: 48px;
        width: 226px;
    }

    .survey-modal {
        justify-content: center;
        padding: 14px;
    }

    .survey-modal-card {
        width: min(360px, calc(100vw - 28px));
        padding: 28px 18px 18px;
        border-radius: 16px;
    }

    .survey-modal-card h2 {
        font-size: 20px;
    }
}
