/**
 * Tagasiside (NPS) — kaartide, avalehe scrolleri, nimekirja, skoori stiilid
 */

/* ═══════════════════════════════════════════════════════════════════
 * Tagasiside kaart (universaalne)
 * ═══════════════════════════════════════════════════════════════════ */

.bubblos-feedback-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--wp--preset--color--vintage-cream);
    border-radius: var(--bubblos-radius-md);
    box-shadow: var(--bubblos-shadow);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.bubblos-feedback-card__score {
    display: inline-flex;
    flex-direction: column;       /* ← stack vertikaalselt */
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--wp--preset--color--vintage-paper);
    border: 3px solid var(--wp--preset--color--brass-gold);
    flex-shrink: 0;
    font-family: var(--wp--preset--font-family--posada);
    color: var(--wp--preset--color--deep-charcoal);
    box-shadow: inset 0 0 0 2px var(--wp--preset--color--vintage-cream);
    line-height: 1;
}

.bubblos-feedback-card__score-num {
    font-size: 1.8rem;
    line-height: 1;
}

.bubblos-feedback-card__score-max {
    font-size: 0.9rem;
    opacity: 0.65;
    font-family: var(--wp--preset--font-family--roboto);
    font-weight: 500;
    margin-top: 0.1rem;
}

/* Värvi sõltuvalt skoorist (subtle) */
.bubblos-feedback-card__score[data-score="10"],
.bubblos-feedback-card__score[data-score="9"] {
    border-color: var(--wp--preset--color--sage-green);
}

.bubblos-feedback-card__score[data-score="8"],
.bubblos-feedback-card__score[data-score="7"] {
    border-color: var(--wp--preset--color--brass-gold);
}

.bubblos-feedback-card__score[data-score="6"],
.bubblos-feedback-card__score[data-score="5"] {
    border-color: var(--wp--preset--color--carnival-orange);
}

.bubblos-feedback-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bubblos-feedback-card__photo {
    display: block;
    margin-bottom: 0.85rem;
    border-radius: var(--bubblos-radius-md);
    overflow: hidden;
    max-width: 120px;
}

.bubblos-feedback-card__photo img {
    width: 100%;
    height: auto;
    display: block;
}

.bubblos-feedback-card__text {
    color: var(--wp--preset--color--body-text);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1rem;
    flex: 1;
}

.bubblos-feedback-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(201, 162, 92, 0.2);
    font-size: 0.9rem;
}

.bubblos-feedback-card__name {
    font-family: var(--wp--preset--font-family--posada);
    color: var(--wp--preset--color--deep-charcoal);
    letter-spacing: 0.03em;
}

.bubblos-feedback-card__date {
    color: var(--wp--preset--color--body-text-light);
    font-size: 0.85rem;
}
/* ═══════════════════════════════════════════════════════════════════
 * AVALEHE FEEDBACK WIDGET — invert: cream paneel + tumedad kaardid
 * ═══════════════════════════════════════════════════════════════════ */

.bubblos-feedback-home {
    position: relative;
    background: var(--wp--preset--color--cream);
    color: var(--wp--preset--color--deep-charcoal);
    border-radius: var(--bubblos-radius-md);
    overflow: hidden;
    margin: 3rem auto;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    max-width: var(--wp--style--global--wide-size);
}

/* Subtle mullid cream-taustal */
.bubblos-feedback-home::before,
.bubblos-feedback-home::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.01));
    border: 1px solid rgba(0, 0, 0, 0.03);
    pointer-events: none;
    z-index: 1;
}

.bubblos-feedback-home::before {
    width: 240px;
    height: 240px;
    top: -70px;
    right: -50px;
}

.bubblos-feedback-home::after {
    width: 140px;
    height: 140px;
    bottom: -40px;
    left: -30px;
}

/* Header */
.bubblos-feedback-home__header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
}

.bubblos-feedback-home__eyebrow {
    font-family: var(--wp--preset--font-family--posada);
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wp--preset--color--brass-gold);
    margin: 0 0 1rem;
}

.bubblos-feedback-home__title {
    font-family: var(--wp--preset--font-family--posada);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--wp--preset--color--deep-charcoal);
    margin: 0 0 0.85rem;
    line-height: 1.1;
}

.bubblos-feedback-home__lead {
    font-family: var(--wp--preset--font-family--roboto);
    color: var(--wp--preset--color--body-text-light);
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0;
}

/* Scroller */
.bubblos-feedback-home__scroller {
    position: relative;
    z-index: 2;
}

.bubblos-feedback-home__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0.25rem;
    scrollbar-width: none;
}

.bubblos-feedback-home__track::-webkit-scrollbar {
    display: none;
}

/* Kaardi-variant — TUMEDAM avalehel */
.bubblos-feedback-card--home {
    flex: 0 0 320px;
    scroll-snap-align: start;
    max-width: 320px;
    background: var(--wp--preset--color--deep-charcoal);
    color: var(--wp--preset--color--white);
    border-radius: var(--bubblos-radius-md);
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bubblos-feedback-card--home:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* Kaartide sisu — kohenda värvid tumeda tausta jaoks */
.bubblos-feedback-card--home .bubblos-feedback-card__name,
.bubblos-feedback-card--home .bubblos-feedback-card__quote,
.bubblos-feedback-card--home .bubblos-feedback-card__text {
    color: var(--wp--preset--color--white);
}

.bubblos-feedback-card--home .bubblos-feedback-card__date,
.bubblos-feedback-card--home .bubblos-feedback-card__meta {
    color: rgba(255, 255, 255, 0.65);
}

/* Skoori-rõngas tumedal kaardil — joone/numbri värvid */
.bubblos-feedback-card--home .bubblos-feedback-card__score {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--wp--preset--color--brass-gold);
}

.bubblos-feedback-card--home .bubblos-feedback-card__score-num {
    color: var(--wp--preset--color--brass-gold);
}

@media (max-width: 600px) {
    .bubblos-feedback-card--home {
        flex: 0 0 85vw;
        max-width: 85vw;
    }
}

/* Arrow nupud — jäävad oranžiks */
.bubblos-feedback-home__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--white);
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
}

.bubblos-feedback-home__arrow:hover {
    background: var(--wp--preset--color--carnival-orange-dark);
    transform: translateY(-50%) scale(1.08);
}

.bubblos-feedback-home__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.bubblos-feedback-home__arrow--prev {
    left: -22px;
}

.bubblos-feedback-home__arrow--next {
    right: -22px;
}

@media (max-width: 768px) {
    .bubblos-feedback-home__arrow {
        display: none;
    }
}

/* CTA */
.bubblos-feedback-home__cta {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 2rem;
}

.bubblos-feedback-home__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.9rem 1.85rem;
    background: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--white);
    border-radius: var(--bubblos-radius-md);
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bubblos-feedback-home__cta-link:hover {
    background: var(--wp--preset--color--carnival-orange-dark);
    transform: translateY(-2px);
    color: var(--wp--preset--color--white);
}
.bubblos-feedback-home .bubblos-feedback-card__score-max {
    color: rgba(255, 255, 255, 0.65);
}

/* ═══════════════════════════════════════════════════════════════════
 * TÄIELIK NIMEKIRI /kliendid-meist/
 * ═══════════════════════════════════════════════════════════════════ */

.bubblos-feedback-list {
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
}

.bubblos-feedback-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.bubblos-feedback-list .bubblos-feedback-card.is-hidden {
    display: none;
}

.bubblos-feedback-list__more {
    text-align: center;
    margin-top: 1rem;
}

.bubblos-feedback-list__more-btn {
    padding: 0.95rem 2rem;
    background: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--white);
    border: none;
    border-radius: var(--bubblos-radius-md);
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bubblos-feedback-list__more-btn:hover {
    background: var(--wp--preset--color--carnival-orange-dark);
    transform: translateY(-1px);
}

.bubblos-feedback-list--empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--wp--preset--color--body-text-light);
}

/* ═══════════════════════════════════════════════════════════════════
 * SKOOR — keskmine hinde paneel
 * ═══════════════════════════════════════════════════════════════════ */

.bubblos-feedback-score {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--wp--preset--color--vintage-cream);
    border-radius: var(--bubblos-radius-lg);
    box-shadow: var(--bubblos-shadow);
    padding: 1.75rem 2rem;
    
    margin: 0 auto;
}

.bubblos-feedback-score__ring {
    display: inline-flex;
    flex-direction: column;       /* ← stack vertikaalselt */
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--white);
    flex-shrink: 0;
    font-family: var(--wp--preset--font-family--posada);
    box-shadow: inset 0 0 0 4px var(--wp--preset--color--brass-gold);
    line-height: 1;
}

.bubblos-feedback-score__num {
    font-size: 2.2rem;
    line-height: 1;
}

.bubblos-feedback-score__max {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.15rem;
}
.bubblos-feedback-score__meta {
    flex: 1;
}

.bubblos-feedback-score__eyebrow {
    font-family: var(--wp--preset--font-family--posada);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--wp--preset--color--brass-gold);
    margin: 0 0 0.35rem;
}

.bubblos-feedback-score__text {
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1.45rem;
    color: var(--wp--preset--color--deep-charcoal);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.bubblos-feedback-score__count {
    color: var(--wp--preset--color--body-text-light);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 600px) {
    .bubblos-feedback-score {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════
 * VORM — Bubblose CSS overrideid GF jaoks
 * ═══════════════════════════════════════════════════════════════════ */

.bubblos-feedback-form-wrap .gform_wrapper {
    margin: 0;
}

.bubblos-feedback-form-wrap .gfield_label {
    font-family: var(--wp--preset--font-family--posada);
    color: var(--wp--preset--color--deep-charcoal) !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.65rem;
    font-weight: 400 !important;
}

.bubblos-feedback-form-wrap input[type="text"],
.bubblos-feedback-form-wrap input[type="email"],
.bubblos-feedback-form-wrap textarea {
    padding: 0.85rem 1rem !important;
    border: 2px solid var(--bubblos-border) !important;
    border-radius: var(--bubblos-radius-md) !important;
    background: var(--wp--preset--color--white) !important;
    font-family: var(--wp--preset--font-family--roboto) !important;
    font-size: 1rem !important;
    color: var(--wp--preset--color--deep-charcoal) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bubblos-feedback-form-wrap input:focus,
.bubblos-feedback-form-wrap textarea:focus {
    outline: none !important;
    border-color: var(--wp--preset--color--carnival-orange) !important;
}

/* Likert (NPS skaala) */
/* ─── Likert (NPS 0-10) — stiili tabel nuppudena ─── */
.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice {
    background-image: none !important;
}
.bubblos-feedback-form-wrap .gsurvey-likert {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
    border: none;
}

/* Peida tabeli päise rida (label'id kuvame nupul tekstina) */
.bubblos-feedback-form-wrap .gsurvey-likert thead {
    display: contents;
}

.bubblos-feedback-form-wrap .gsurvey-likert thead tr {
    display: contents;
}

/* Päised lähevad sõdurina koos vastavate td'dega — peida ja kasutame data-label */
.bubblos-feedback-form-wrap .gsurvey-likert thead th {
    display: none;
}

/* Body — tee row flex-iks */
.bubblos-feedback-form-wrap .gsurvey-likert tbody {
    display: contents;
}

.bubblos-feedback-form-wrap .gsurvey-likert tbody tr {
    display: contents;
}

/* Iga td on nüüd "nupp" */
.bubblos-feedback-form-wrap .gsurvey-likert-choice {
        flex: 1 1 0;
    min-width: 0;
    min-height: 56px;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 56px;
    padding: 0 0.75rem;
    border: 2px solid var(--bubblos-border);
    border-radius: var(--bubblos-radius-md);
    background: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1rem;
    color: var(--wp--preset--color--deep-charcoal);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

/* Kasutame data-label atribuuti, et kuvada teksti td-l */
.bubblos-feedback-form-wrap .gsurvey-likert-choice::before {
    content: attr(data-label);
    display: block;
    white-space: nowrap;
    font-size: 1.6rem;
}

/* Peida tegelik radio input */
.bubblos-feedback-form-wrap .gsurvey-likert-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

/* Hover */
.bubblos-feedback-form-wrap .gsurvey-likert-choice:hover {
    border-color: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--carnival-orange-dark);
}

/* Aktiivne (radio checked) */
.bubblos-feedback-form-wrap .gsurvey-likert-choice:has(input[type="radio"]:checked) {
    background: var(--wp--preset--color--carnival-orange);
    border-color: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--white);
}

/* Pikem label (0 ja 10 ja 5) saavad rohkem ruumi */
.bubblos-feedback-form-wrap .gsurvey-likert-choice[data-label*=" "] {
    flex: 1 1 auto;
    min-width: 80px;
    padding: 0 1rem;
}

.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(1):hover,
.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(2):hover {
    border: 2px solid #d64545; /* punane */
}

.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(3):hover,
.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(4):hover {
    border: 2px solid #e87f3a; /* tume oranži */
}

.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(5):hover,
.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(6):hover,
.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(7):hover {
    border: 2px solid var(--wp--preset--color--brass-gold); /* kollane */
}

.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(8):hover,
.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(9):hover {
    border: 2px solid #7fa650; /* hele roheline */
}

.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(10):hover,
.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(11):hover {
    border: 2px solid var(--wp--preset--color--sage-green); /* tume roheline */
}

/* Valitud — tugevam värv + raam */

.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(1):has(input:checked),
.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(2):has(input:checked) {
    background: #d64545;
    border: 4px solid #d64545;
    color: var(--wp--preset--color--white);
}

.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(3):has(input:checked),
.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(4):has(input:checked) {
    background: #e87f3a;
    border: 4px solid #e87f3a;
    color: var(--wp--preset--color--white);
}

.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(5):has(input:checked),
.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(6):has(input:checked),
.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(7):has(input:checked) {
    background: var(--wp--preset--color--brass-gold);
    border: 4px solid var(--wp--preset--color--brass-gold);
    color: var(--wp--preset--color--white);
}

.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(8):has(input:checked),
.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(9):has(input:checked) {
    background: #7fa650;
    border: 4px solid #7fa650;
    color: var(--wp--preset--color--white);
}

.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(10):has(input:checked),
.bubblos-feedback-form-wrap .gsurvey-likert-choice:nth-child(11):has(input:checked) {
    background: var(--wp--preset--color--sage-green);
    border: 4px solid var(--wp--preset--color--sage-green);
    color: var(--wp--preset--color--white);
}

/* Hover scale (peenend effekt) */
.bubblos-feedback-form-wrap .gsurvey-likert-choice:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gravity-theme table.gsurvey-likert, .gform_legacy_markup_wrapper table.gsurvey-likert {
    border-bottom: none !important;
}

/* Helper-tekst nuppude all */
.bubblos-feedback-form-wrap .gfield--input-type-likert .ginput_container::after {
    content: "0 = ei soovitaks üldse · 5 = nii ja naa · 10 = kindlasti soovitan";
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--wp--preset--color--body-text-light);
    font-family: var(--wp--preset--font-family--roboto);
    text-align: center;
    font-style: italic;
}
/* Submit nupp */

.bubblos-feedback-form-wrap .gform_button {
    padding: 0.95rem 2rem !important;
    background: var(--wp--preset--color--carnival-orange) !important;
    color: var(--wp--preset--color--white) !important;
    border: 2px solid transparent !important;
    border-radius: var(--bubblos-radius-md) !important;
    font-family: var(--wp--preset--font-family--posada) !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.bubblos-feedback-form-wrap .gform_button:hover {
    background: var(--wp--preset--color--carnival-orange-dark) !important;
    transform: translateY(-1px);
}

.gform_required_legend {
    display: none;
}

.gchoice_2_16_1 input, .gchoice_2_16_0 input {
    width: 16px;
    height: 16px;
}
#gform_browse_button_2_20 {
    color: var(--wp--preset--color--sage-green);
    background: transparent;
    border: 2px solid var(--wp--preset--color--sage-green);
    padding: 0.5rem 1rem;
    border-radius: var(--bubblos-radius-md);
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1rem;
    cursor: pointer;

}

/* Mobiil: 6 nuppu reas → 0–5 esimesel, 6–10 teisel */
@media (max-width: 600px) {
    .bubblos-feedback-form-wrap .gsurvey-likert-choice {
        flex: 1 1 calc((100% - 5 * 0.4rem) / 6);
    }
}