.csat-section {
    --csat-purple: #4F1E60;
    --csat-purple-soft: #6b2d82;
    --csat-purple-muted: #8b6a9a;
    --csat-yellow: #f5e042;
    --csat-yellow-hover: #e5d02e;
    --csat-border: rgba(79, 30, 96, 0.12);
    --csat-card: #ffffff;
    position: relative;
    padding: 72px 0 96px;
    overflow: hidden;
    background: linear-gradient(165deg, #faf5fc 0%, #efe3f5 45%, #f7f0e8 100%);
}

.csat-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 88% 8%, rgba(245, 224, 66, 0.2), transparent 60%),
        radial-gradient(ellipse 42% 48% at 6% 88%, rgba(79, 30, 96, 0.1), transparent 55%);
}

.csat-header {
    position: relative;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}

.csat-header__title {
    margin: 0 0 12px;
    color: var(--csat-purple);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.35;
}

.csat-header__subtitle {
    margin: 0;
    color: var(--csat-purple-muted);
    font-size: 1rem;
    line-height: 1.85;
}

.csat-state {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 28px;
    text-align: center;
    background: var(--csat-card);
    border-radius: 22px;
    border: 1px solid var(--csat-border);
    box-shadow: 0 18px 40px rgba(79, 30, 96, 0.08);
}

.csat-state__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--csat-purple), var(--csat-purple-soft));
    color: var(--csat-yellow);
    font-size: 1.5rem;
}

.csat-state h1 {
    margin: 0 0 10px;
    color: var(--csat-purple);
    font-size: 1.4rem;
}

.csat-state p {
    margin: 0 0 18px;
    color: var(--csat-purple-muted);
    line-height: 1.75;
}

.csat-state__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 12px;
    background: var(--csat-yellow);
    color: var(--csat-purple);
    font-weight: 800;
    text-decoration: none;
}

.csat-form-wrap {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    background: var(--csat-card);
    border-radius: 24px;
    border: 1px solid var(--csat-border);
    box-shadow: 0 24px 48px rgba(79, 30, 96, 0.1);
    padding: 28px 26px 32px;
}

.csat-project-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbf7fd 0%, #f3ebf7 100%);
    border: 1px solid var(--csat-border);
}

.csat-project-badge__label {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--csat-purple);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.csat-project-badge strong {
    color: var(--csat-purple);
    font-size: 1rem;
}

.csat-project-badge__client {
    color: var(--csat-purple-muted);
    font-size: 0.88rem;
}

.csat-stars-block {
    margin: 0 0 24px;
    padding: 0;
    border: none;
}

.csat-stars-block legend {
    margin-bottom: 12px;
    color: var(--csat-purple);
    font-weight: 800;
    font-size: 1rem;
}

.csat-stars {
    display: flex;
    gap: 8px;
    justify-content: center;
    direction: ltr;
}

.csat-star {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: rgba(79, 30, 96, 0.06);
    color: var(--csat-purple-muted);
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.csat-star:hover,
.csat-star.is-active,
.csat-star.is-preview {
    background: rgba(245, 224, 66, 0.45);
    color: var(--csat-purple);
    transform: translateY(-2px);
}

.csat-star.is-active i,
.csat-star.is-preview i {
    font-weight: 900;
}

.csat-stars--sm .csat-star {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 10px;
}

.csat-stars__hint {
    margin: 10px 0 0;
    text-align: center;
    color: var(--csat-purple-muted);
    font-size: 0.85rem;
}

.csat-categories {
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 16px;
    background: #faf7fc;
    border: 1px solid var(--csat-border);
}

.csat-categories__title {
    margin: 0 0 14px;
    color: var(--csat-purple);
    font-weight: 700;
    font-size: 0.92rem;
}

.csat-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.csat-cat-row:last-child {
    margin-bottom: 0;
}

.csat-cat-row__label {
    min-width: 90px;
    color: var(--csat-purple-soft);
    font-size: 0.88rem;
    font-weight: 700;
}

.csat-field {
    display: block;
    margin-bottom: 16px;
}

.csat-field span {
    display: block;
    margin-bottom: 6px;
    color: var(--csat-purple);
    font-weight: 700;
    font-size: 0.88rem;
}

.csat-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--csat-border);
    border-radius: 12px;
    resize: vertical;
    font-size: 0.95rem;
    color: #2a1833;
    line-height: 1.7;
}

.csat-field textarea:focus {
    outline: none;
    border-color: var(--csat-purple-soft);
    box-shadow: 0 0 0 3px rgba(79, 30, 96, 0.12);
}

.csat-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 16px;
    color: var(--csat-purple-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    cursor: pointer;
}

.csat-check input {
    margin-top: 3px;
    accent-color: var(--csat-purple);
}

.csat-feedback {
    min-height: 1.4em;
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--csat-purple-muted);
}

.csat-feedback.is-error {
    color: #b42318;
}

.csat-feedback.is-success {
    color: #067647;
}

.csat-submit {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: var(--csat-purple);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.csat-submit:hover {
    background: var(--csat-purple-soft);
}

.csat-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.csat-success {
    text-align: center;
    padding: 24px 8px;
}

.csat-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--csat-yellow);
    color: var(--csat-purple);
    font-size: 1.5rem;
}

.csat-success h2 {
    margin: 0 0 8px;
    color: var(--csat-purple);
}

.csat-success p {
    margin: 0 0 18px;
    color: var(--csat-purple-muted);
    line-height: 1.75;
}

/* Public stats */
.csat-public {
    position: relative;
}

.csat-empty {
    max-width: 520px;
    margin: 0 auto;
    padding: 28px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--csat-border, rgba(79, 30, 96, 0.12));
    color: var(--csat-purple-muted, #8b6a9a);
}

.csat-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.csat-ring {
    --csat-pct: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(#4F1E60 calc(var(--csat-pct) * 1%), rgba(79, 30, 96, 0.12) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(79, 30, 96, 0.15);
    animation: csatRingIn 0.8s ease;
}

.csat-ring__inner {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.csat-ring__score {
    color: #4F1E60;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.csat-ring__of {
    color: #8b6a9a;
    font-size: 0.85rem;
    margin-top: 4px;
}

@keyframes csatRingIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.csat-stats__meta {
    min-width: 220px;
    max-width: 360px;
}

.csat-stats__count {
    margin: 0 0 14px;
    color: #4F1E60;
    font-size: 0.95rem;
    line-height: 1.7;
}

.csat-dist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.csat-dist li {
    display: grid;
    grid-template-columns: 36px 1fr 28px;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.csat-dist__label {
    color: #6b2d82;
    font-size: 0.8rem;
    font-weight: 700;
}

.csat-dist__bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(79, 30, 96, 0.1);
    overflow: hidden;
}

.csat-dist__bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4F1E60, #f5e042);
    border-radius: inherit;
}

.csat-dist__n {
    text-align: left;
    color: #8b6a9a;
    font-size: 0.78rem;
    direction: ltr;
}

.csat-cat-rings {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-bottom: 36px;
}

.csat-cat-ring {
    --csat-pct: 0;
    text-align: center;
    width: 100px;
}

.csat-cat-ring__inner {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: conic-gradient(#f5e042 calc(var(--csat-pct) * 1%), rgba(79, 30, 96, 0.12) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.csat-cat-ring__inner::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #fff;
}

.csat-cat-ring__inner strong {
    position: relative;
    z-index: 1;
    color: #4F1E60;
    font-size: 0.95rem;
}

.csat-cat-ring > span {
    color: #8b6a9a;
    font-size: 0.8rem;
    font-weight: 700;
}

.csat-quotes__title {
    margin: 0 0 18px;
    text-align: center;
    color: #4F1E60;
    font-size: 1.25rem;
    font-weight: 800;
}

.csat-quotes__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.csat-quote {
    margin: 0;
    padding: 22px 20px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(79, 30, 96, 0.12);
    box-shadow: 0 12px 28px rgba(79, 30, 96, 0.06);
}

.csat-quote__stars {
    color: #f5e042;
    margin-bottom: 10px;
    font-size: 0.85rem;
    direction: ltr;
    text-align: right;
}

.csat-quote p {
    margin: 0 0 14px;
    color: #6b2d82;
    font-size: 0.92rem;
    line-height: 1.8;
}

.csat-quote footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.csat-quote footer strong {
    color: #4F1E60;
    font-size: 0.9rem;
}

.csat-quote footer span {
    color: #8b6a9a;
    font-size: 0.8rem;
}

/* Compact homepage block */
.csat-public--compact {
    --csat-purple: #4F1E60;
    --csat-purple-muted: #8b6a9a;
    --csat-border: rgba(79, 30, 96, 0.12);
    margin-top: 28px;
    padding: 22px;
    background: linear-gradient(180deg, #fbf7fd 0%, #fff 100%);
    border-radius: 18px;
    border: 1px solid var(--csat-border);
}

.csat-public__intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.csat-public__heading {
    margin: 0;
    color: #4F1E60;
    font-size: 1.05rem;
    font-weight: 800;
}

.csat-public__more {
    color: #6b2d82;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.csat-public--compact .csat-ring {
    width: 120px;
    height: 120px;
}

.csat-public--compact .csat-ring__inner {
    width: 88px;
    height: 88px;
}

.csat-public--compact .csat-ring__score {
    font-size: 1.5rem;
}

.csat-public--compact .csat-quotes__grid {
    grid-template-columns: 1fr;
}

.csat-public--compact .csat-stats {
    margin-bottom: 18px;
}

@media (max-width: 720px) {
    .csat-section {
        padding: 48px 0 64px;
    }

    .csat-quotes__grid {
        grid-template-columns: 1fr;
    }

    .csat-cat-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .csat-star {
        width: 42px;
        height: 42px;
    }
}
