/* ═══════════════════════════════════════════════════════════
   ELEMENTS — Feedback teaser (homepage) + Feedback page
   ═══════════════════════════════════════════════════════════ */

/* ── Feedback Teaser Strip ─────────────────────────────── */
.feedback-teaser {
    padding: 32px 24px;
    background: var(--color-accent-lt, #F5EDD6);
    border-top: 1px solid rgba(139,105,20,.14);
    border-bottom: 1px solid rgba(139,105,20,.14);
    text-align: center;
}

.feedback-teaser-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.feedback-teaser-text {
    font-family: var(--font-serif-body, 'Lora', serif);
    font-size: 15px;
    font-weight: 500;
    font-style: italic;
    color: var(--color-text, #1A1814);
    margin: 0;
}

.feedback-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 24px;
    background: transparent;
    border: 1.5px solid var(--color-accent, #8B6914);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent, #8B6914);
    font-family: var(--font-sans, 'Inter', sans-serif);
    transition: background 0.22s ease, color 0.22s ease;
    text-decoration: none;
}

.feedback-cta-btn:hover {
    background: var(--color-accent, #8B6914);
    color: #fff;
}

.feedback-cta-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

/* ── Feedback Page Layout ──────────────────────────────── */
body:has(.feedback-page-main) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.feedback-page-main {
    flex: 1;
    padding: 72px 24px 96px;
}

.feedback-card {
    max-width: 540px;
    margin: 0 auto;
}

.feedback-header {
    text-align: center;
    margin-bottom: 40px;
}

.feedback-page-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-accent, #8B6914);
    margin-bottom: 12px;
}

.feedback-page-title {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text, #1A1814);
    margin-bottom: 12px;
    line-height: 1.2;
}

.feedback-page-subtitle {
    font-family: var(--font-serif-body, 'Lora', serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-muted, #6B6560);
    line-height: 1.65;
    font-style: italic;
}

/* ── Star Rating ───────────────────────────────────────── */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--color-border, #E8E4DC);
    transition: color 0.15s ease, transform 0.15s ease;
    line-height: 0;
}

.star-btn:hover,
.star-btn.active {
    color: #C49A3C;
    transform: scale(1.18);
}

.star-btn svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
    stroke: none;
}

/* ── Step sections ─────────────────────────────────────── */
.feedback-step {
    display: none;
    animation: fbFadeIn 0.28s ease;
}

.feedback-step.visible {
    display: block;
}

@keyframes fbFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Form step (1–3 stars) ─────────────────────────────── */
.feedback-form-group {
    margin-bottom: 18px;
}

.feedback-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text, #1A1814);
    margin-bottom: 7px;
}

.feedback-form-label .optional {
    font-weight: 400;
    color: var(--color-muted, #6B6560);
}

.feedback-input,
.feedback-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--color-border, #E8E4DC);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    color: var(--color-text, #1A1814);
    background: #fdfdfd;
    transition: border-color 0.22s ease;
    resize: vertical;
}

.feedback-textarea {
    min-height: 120px;
}

.feedback-input:focus,
.feedback-textarea:focus {
    outline: none;
    border-color: var(--color-accent, #8B6914);
}

.feedback-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 28px;
    background: var(--color-accent, #8B6914);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans, 'Inter', sans-serif);
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease;
    margin-top: 8px;
}

.feedback-submit:hover:not(:disabled) {
    background: #7a5c10;
    transform: translateY(-1px);
}

.feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feedback-submit svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

/* ── WhatsApp note ─────────────────────────────────────── */
.feedback-wa-note {
    margin-top: 20px;
    padding: 13px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #166534;
    line-height: 1.5;
}

.feedback-wa-note svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 1px;
    stroke: #25D366;
}

/* ── Review links step (4–5 stars) ─────────────────────── */
.review-intro {
    text-align: center;
    margin-bottom: 22px;
}

.review-intro-text {
    font-family: var(--font-serif-body, 'Lora', serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-muted, #6B6560);
    font-style: italic;
}

.review-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.review-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 18px;
    border: 1.5px solid var(--color-border, #E8E4DC);
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text, #1A1814);
    background: #fdfdfd;
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.review-link-card:hover {
    border-color: var(--color-accent, #8B6914);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
}

.review-platform-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-platform-icon.bkg   { background: #003580; }
.review-platform-icon.ta    { background: #34e0a1; }
.review-platform-icon.bbit  { background: #e8f5e9; }
.review-platform-icon.gmaps { background: #f0f4ff; }

.review-platform-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.review-platform-icon.bbit  svg { stroke: #2e7d32; }
.review-platform-icon.gmaps svg { stroke: #4285F4; }

.review-link-info { flex: 1; }

.review-link-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #1A1814);
    margin-bottom: 2px;
}

.review-link-hint {
    font-size: 12px;
    color: var(--color-muted, #6B6560);
}

.review-link-arrow {
    color: var(--color-muted, #6B6560);
    transition: color 0.22s ease, transform 0.22s ease;
}

.review-link-card:hover .review-link-arrow {
    color: var(--color-accent, #8B6914);
    transform: translateX(3px);
}

.review-link-arrow svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
}

/* ── Thanks state ──────────────────────────────────────── */
.feedback-thanks {
    text-align: center;
    padding: 40px 24px;
}

.feedback-thanks-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent-lt, #F5EDD6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feedback-thanks-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent, #8B6914);
}

.feedback-thanks-title {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text, #1A1814);
    margin-bottom: 10px;
}

.feedback-thanks-text {
    font-family: var(--font-serif-body, 'Lora', serif);
    font-size: 15px;
    color: var(--color-muted, #6B6560);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 28px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.feedback-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent, #8B6914);
    text-decoration: none;
    transition: gap 0.22s ease;
}

.feedback-back-link:hover { gap: 10px; }

.feedback-back-link svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

/* ── Positive feedback message (4–5 stars) ─────────────── */
#feedback-positive {
    padding: 24px 0 8px;
    text-align: center;
}

.feedback-positive-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feedback-positive-icon svg {
    width: 28px;
    height: 28px;
    stroke: #166534;
}

.feedback-positive-title {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text, #1A1814);
    margin-bottom: 10px;
}

.feedback-positive-text {
    font-family: var(--font-serif-body, 'Lora', serif);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
    color: var(--color-muted, #6B6560);
    font-style: italic;
    margin: 0 0 20px;
}

.feedback-positive-text a {
    color: #166534;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.feedback-wa-note a {
    color: #166534;
    font-weight: 600;
    text-decoration: none;
}

.feedback-wa-note a:hover {
    text-decoration: underline;
}

/* ── Article: Perché il 10 non esiste ─────────────────── */
.feedback-article {
    max-width: 680px;
    margin: 48px auto 0;
    padding: 40px 24px 72px;
    border-top: 1px solid var(--color-border, #E8E4DC);
}

.feedback-article-content h2 {
    font-family: var(--font-serif-body, 'Lora', serif);
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 600;
    color: var(--color-text, #1A1814);
    margin-bottom: 24px;
    line-height: 1.3;
}

.feedback-article-content p {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-muted, #6B6560);
    margin-bottom: 16px;
}

.feedback-article-content strong {
    color: var(--color-text, #1A1814);
    font-weight: 600;
}

/* ── Teaser article link ────────────────────────────────── */
.feedback-teaser-link {
    font-size: 0.8rem;
    color: var(--color-muted, #6B6560);
    text-decoration: none;
    font-style: italic;
    transition: color 0.22s ease;
}

.feedback-teaser-link:hover {
    color: #C49A3C;
}

/* ── Hidden util ───────────────────────────────────────── */
.feedback-hidden { display: none !important; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
    .feedback-teaser-inner {
        flex-direction: column;
        gap: 14px;
    }

    .feedback-page-main {
        padding: 48px 16px 72px;
    }

    .star-btn svg {
        width: 30px;
        height: 30px;
    }
}
