:root {
    --survey-bg: #f7f8fb;
    --survey-card: #ffffff;
    --survey-ink: #1a1e2c;
    --survey-muted: #5c6375;
    --survey-accent: #ff6b3d;
    --survey-accent-dark: #d64e2a;
    --survey-border: #e6e9f2;
    --survey-shadow: 0 24px 70px rgba(13, 18, 35, 0.25);
}

#surveyModal {
    z-index: 1000000001;
}

.survey-backdrop {
    z-index: 1000000000 !important;
}

#surveyModal .modal-dialog {
    max-width: 560px;
    margin: 110px auto 24px;
    max-height: calc(100vh - 140px);
}

#surveyModal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: var(--survey-shadow);
    overflow: hidden;
    background: var(--survey-card);
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

#surveyModal .modal-body {
    overflow-y: auto;
}

.survey-modal__header {
    position: relative;
    padding: 20px 24px 16px;
    background: linear-gradient(130deg, #fff2e9 0%, #f7f8fb 55%, #eaf1ff 100%);
}

.survey-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--survey-accent);
    font-weight: 700;
}

.survey-title {
    margin: 6px 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--survey-ink);
}

.survey-subtitle {
    margin: 0;
    color: var(--survey-muted);
    font-size: 14px;
}

.survey-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--survey-muted);
}

.survey-form {
    padding: 12px 24px 6px;
}

.survey-section {
    padding: 10px 0;
    border-bottom: 1px solid var(--survey-border);
}

.survey-section:last-of-type {
    border-bottom: none;
}

.survey-section__title {
    font-weight: 700;
    color: var(--survey-ink);
    margin-bottom: 8px;
    font-size: 14px;
}

.survey-rating {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.survey-rate {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--survey-border);
    background: #fff;
    color: var(--survey-ink);
    font-weight: 700;
    transition: all 0.2s ease;
    font-size: 13px;
}

.survey-rate.is-active,
.survey-rate:hover {
    border-color: var(--survey-accent);
    background: var(--survey-accent);
    color: #fff;
    transform: translateY(-1px);
}

.survey-helper {
    margin-top: 6px;
    color: var(--survey-muted);
    font-size: 12px;
}

.survey-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.survey-tag {
    border: 1px solid var(--survey-border);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #fff;
    color: var(--survey-muted);
    transition: all 0.2s ease;
}

.survey-tag.is-active,
.survey-tag:hover {
    border-color: var(--survey-accent);
    color: var(--survey-accent-dark);
    background: #fff5f0;
}

.survey-field {
    margin-top: 12px;
}

.survey-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--survey-ink);
    font-size: 14px;
}

.survey-select,
.survey-textarea {
    width: 100%;
    border: 1px solid var(--survey-border);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--survey-ink);
    background: #fff;
}

.survey-textarea {
    resize: vertical;
}

.survey-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 0 6px;
}

.survey-actions .btn {
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13px;
}

.survey-submit {
    background: var(--survey-accent);
    border-color: var(--survey-accent);
}

.survey-submit:hover {
    background: var(--survey-accent-dark);
    border-color: var(--survey-accent-dark);
}

.survey-privacy {
    color: var(--survey-muted);
    font-size: 11px;
    padding-bottom: 10px;
}

.survey-error {
    color: #b42318;
    font-size: 13px;
    min-height: 18px;
}

.survey-success {
    padding: 20px 24px 24px;
    text-align: center;
}

.survey-success__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.survey-success .btn {
    margin-top: 10px;
    border-radius: 999px;
}

.survey-launcher {
    position: fixed;
    right: 20px;
    bottom: 120px !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: var(--survey-ink);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(13, 18, 35, 0.2);
    z-index: 1000000002;
}

.survey-launcher__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--survey-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.survey-launcher__text {
    font-size: 13px;
    letter-spacing: 0.02em;
}

.survey-launcher:hover {
    background: #111827;
}

@media (max-width: 768px) {
    #surveyModal .modal-dialog {
        margin: 80px 16px 16px;
        max-height: calc(100vh - 110px);
    }

    .survey-modal__header,
    .survey-form,
    .survey-success {
        padding-left: 18px;
        padding-right: 18px;
    }

    .survey-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .survey-actions .btn {
        width: 100%;
    }

    .survey-launcher {
        right: 14px;
        bottom: 80px !important;
        padding: 8px 12px;
    }

    .survey-launcher__text {
        display: none;
    }
}
