@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

/* ===== تم سالن زیبایی - پنل نظرسنجی مشتری - رنگی، پرافکت و دوستانه ===== */
.am3r-rv-customer {
    --am3r-blush: #ffe1e8;
    --am3r-blush-deep: #f7a8bb;
    --am3r-rose: #e07a92;
    --am3r-rose-deep: #c25a76;
    --am3r-gold: #e0b978;
    --am3r-lavender: #e9defa;
    --am3r-green: #4caf7d;
    --am3r-red: #e0607a;
    --am3r-text: #5a3346;
    --am3r-text-dim: #a17d8c;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    display: flex;
    justify-content: center;
    padding: 28px 12px;
    background:
        radial-gradient(circle at 15% 0%, rgba(247,168,187,0.45), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(233,222,250,0.55), transparent 50%),
        linear-gradient(160deg, #fff8f5, #fdeef2 60%, #f9e9f3);
    border-radius: 22px;
}
.am3r-rv-customer * { box-sizing: border-box; }

.am3r-rv-login-box, .am3r-rv-survey-card {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(247,168,187,0.5);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px 26px;
    max-width: 480px;
    width: 100%;
    color: var(--am3r-text);
    box-shadow: 0 14px 40px rgba(194,90,118,0.14);
}

.am3r-rv-survey-card h3 {
    margin: 0 0 20px;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    color: var(--am3r-rose-deep);
}
.am3r-rv-step[data-step="rating"] h3::before { content: "💖 "; }

.am3r-rv-overall-rating {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}
.am3r-rv-overall-rating .am3r-rv-star-rating {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    text-align: center;
    box-shadow: none;
}
.am3r-rv-overall-rating .am3r-rv-star-rating:hover { box-shadow: none; }
.am3r-rv-overall-rating .am3r-rv-star-rating-label {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--am3r-rose-deep);
}
.am3r-rv-overall-rating .am3r-rv-star-rating-label::before { content: none; }
.am3r-rv-overall-rating .am3r-rv-star-rating-value {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
}
.am3r-rv-overall-rating .am3r-rv-star-rating-track {
    margin: 4px auto 0;
}
.am3r-rv-overall-rating .am3r-rv-star-cell {
    width: 48px;
    height: 48px;
    font-size: 40px;
    line-height: 48px;
}

.am3r-rv-criteria { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.am3r-rv-service-ratings {
    background: #fff2f6;
    border: 1px solid #fbdbe3;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.am3r-rv-service-ratings h4 { margin: 0 0 10px; font-size: 14px; color: var(--am3r-rose-deep); }
.am3r-rv-service-ratings h4::before { content: "🧾 "; }
.am3r-rv-service-ratings .am3r-rv-star-rating { background: #fff; }

/* ===== ویجت امتیازدهی نیم‌ستاره‌ای (برای هر معیار و هر خدمت) ===== */
.am3r-rv-star-rating {
    background: #fffaf9;
    border: 1px solid #fbe6ea;
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 10px;
    transition: box-shadow .15s ease;
}
.am3r-rv-star-rating:hover { box-shadow: 0 4px 12px rgba(247,168,187,0.25); }
.am3r-rv-star-rating-label { font-size: 13px; color: var(--am3r-text-dim); margin-bottom: 2px; }
.am3r-rv-star-rating-label::before { content: "✨ "; }
.am3r-rv-star-rating-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--am3r-gold);
    margin-bottom: 6px;
    min-height: 18px;
}
.am3r-rv-star-rating-track {
    display: flex;
    direction: ltr;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
}
.am3r-rv-star-cell {
    position: relative;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 38px;
    height: 38px;
    font-size: 30px;
    line-height: 38px;
    text-align: center;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.am3r-rv-star-cell-empty,
.am3r-rv-star-cell-filled {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}
.am3r-rv-star-cell-empty { color: #f0d7dd; }
.am3r-rv-star-cell-filled { color: var(--am3r-gold); width: 0%; text-shadow: 0 0 6px rgba(224,185,120,0.5); transition: width .15s ease; }

/* انیمیشن تأیید امتیازدهی - هر بار که امتیاز ثبت/تغییر می‌کند */
.am3r-rv-star-cell.am3r-pop { animation: am3r-star-pop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes am3r-star-pop {
    0%   { transform: scale(1) rotate(0deg); }
    35%  { transform: scale(1.4) rotate(-10deg); }
    65%  { transform: scale(0.9) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.am3r-rv-star-rating.am3r-just-rated { animation: am3r-widget-flash .5s ease; }
@keyframes am3r-widget-flash {
    0%   { box-shadow: 0 0 0 0 rgba(224,185,120,0); }
    30%  { box-shadow: 0 0 0 6px rgba(224,185,120,0.25); }
    100% { box-shadow: 0 0 0 0 rgba(224,185,120,0); }
}


.am3r-rv-survey-card textarea, .am3r-rv-survey-card select, .am3r-rv-survey-card input[type="text"] {
    width: 100%;
    background: #fffaf9;
    border: 1px solid #f3d9de;
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--am3r-text);
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 14px;
}
.am3r-rv-survey-card textarea:focus, .am3r-rv-survey-card select:focus, .am3r-rv-survey-card input:focus {
    outline: none;
    border-color: var(--am3r-blush-deep);
    box-shadow: 0 0 0 4px rgba(247,168,187,0.25);
}
.am3r-rv-comment-box {
    position: relative;
    background: linear-gradient(160deg, #fff8f5, #fdeef2 80%);
    border: 1px solid #fbdbe3;
    border-radius: 16px;
    padding: 16px 16px 6px;
    margin-bottom: 16px;
}
.am3r-rv-comment-box::before {
    content: "💬";
    position: absolute;
    top: -12px;
    right: 14px;
    background: #fff;
    border: 1px solid #fbdbe3;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.am3r-rv-comment-label { display: block; font-size: 13px; color: var(--am3r-rose-deep); font-weight: 600; margin-bottom: 8px; }
.am3r-rv-comment-label::after { content: " *"; color: var(--am3r-red); }
.am3r-rv-comment-box textarea {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px !important;
}
.am3r-rv-field-error { border-color: var(--am3r-red) !important; box-shadow: 0 0 0 3px rgba(224,96,122,0.18) !important; }
.am3r-rv-survey-card label { display: block; font-size: 13px; color: var(--am3r-text-dim); margin-bottom: 6px; }
.am3r-rv-checkbox { display: flex !important; align-items: center; gap: 8px; margin-bottom: 12px; }
.am3r-rv-checkbox input { width: auto; margin: 0; accent-color: var(--am3r-rose-deep); }

.am3r-rv-btn {
    display: inline-block;
    background: #fff;
    color: var(--am3r-rose-deep);
    border: 2px solid #fbdbe3;
    border-radius: 14px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    transition: all .18s cubic-bezier(.34,1.56,.64,1);
}
.am3r-rv-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(247,168,187,0.35); }
.am3r-rv-btn.primary {
    background: linear-gradient(135deg, var(--am3r-rose), var(--am3r-blush-deep));
    border: none;
    color: #fff;
    box-shadow: 0 8px 20px rgba(224,122,146,0.35);
}
.am3r-rv-btn.primary:hover { box-shadow: 0 10px 26px rgba(224,122,146,0.5); transform: translateY(-2px) scale(1.01); }
.am3r-rv-btn.ghost { background: transparent; border-color: #f0d7dd; box-shadow: none; }
.am3r-rv-btn.ghost:hover { background: #fff5f7; box-shadow: none; transform: none; }

.am3r-rv-form-msg { font-size: 13px; text-align: center; min-height: 18px; }
.am3r-rv-form-msg.error { color: var(--am3r-red); }
.am3r-rv-form-msg.success { color: var(--am3r-green); }

.am3r-rv-step[data-step="low"] h3::before { content: "💔 "; }
.am3r-rv-step[data-step="thanks"] { text-align: center; }
.am3r-rv-step[data-step="thanks"] h3 { color: var(--am3r-rose-deep); }
#am3r-rv-public-share p::before { content: "🌸 "; }

.am3r-rv-login-box { text-align: center; }
.am3r-rv-login-icon {
    font-size: 40px;
    margin-bottom: 10px;
    animation: am3r-login-bounce 2s ease-in-out infinite;
}
@keyframes am3r-login-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.am3r-rv-login-box h3 { color: var(--am3r-rose-deep); text-align: center; margin-bottom: 6px; }
.am3r-rv-login-box p { color: var(--am3r-text-dim); text-align: center; font-size: 13px; margin: 0 0 18px; }
.am3r-rv-login-cta {
    display: inline-block;
    width: auto;
    padding: 13px 32px;
    margin: 0 0 14px;
}
.am3r-rv-login-hint { font-size: 12px; color: var(--am3r-text-dim); margin: 0 !important; }

.am3r-rv-guard {
    background: #fff8f5;
    color: var(--am3r-text-dim);
    padding: 40px 20px;
    text-align: center;
    border-radius: 20px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid #fbdbe3;
}

.am3r-rv-account-list { max-width: 620px; margin: 0 auto; }
.am3r-rv-account-list h3 { color: var(--am3r-rose-deep); font-size: 16px; margin-bottom: 12px; }
.am3r-rv-dim { color: var(--am3r-text-dim); font-size: 13px; }

.am3r-rv-account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #fbdbe3;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(194,90,118,0.08);
    transition: transform .18s ease, box-shadow .18s ease;
    animation: am3r-item-in .35s ease both;
}
.am3r-rv-account-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(194,90,118,0.16); }
@keyframes am3r-item-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.am3r-rv-account-item .am3r-rv-btn { width: auto; margin-bottom: 0; padding: 8px 16px; font-size: 13px; }

.am3r-rv-account-item.done {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border-color: #f3e2e8;
    background: #fffbfa;
}
.am3r-rv-account-item-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.am3r-rv-mini-stars { direction: ltr; font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.am3r-rv-mini-stars-wrap { display: flex; align-items: center; gap: 6px; }
.am3r-rv-mini-stars-num { font-size: 12px; color: var(--am3r-text-dim); }

/* ستاره‌های تصویری غیرتعاملی (پشتیبانی درست از نیم‌ستاره) - برای تب نظرات من */
.am3r-rv-static-stars { display: inline-flex; direction: ltr; gap: 1px; vertical-align: middle; font-size: 14px; }
.am3r-rv-static-star { position: relative; display: inline-block; width: 1em; height: 1em; }
.am3r-rv-static-star-empty, .am3r-rv-static-star-filled { position: absolute; top: 0; left: 0; width: 100%; overflow: hidden; white-space: nowrap; line-height: 1; }
.am3r-rv-static-star-empty { color: #f0d7dd; }
.am3r-rv-static-star-filled { color: var(--am3r-gold); width: 0%; }

.am3r-rv-my-review-details {
    background: #fff5f7;
    border: 1px dashed #f3c8d2;
    border-radius: 12px;
    padding: 10px 14px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--am3r-text-dim);
}
.am3r-rv-my-review-details summary { cursor: pointer; color: var(--am3r-rose-deep); font-weight: 600; list-style: none; }
.am3r-rv-my-review-details summary::-webkit-details-marker { display: none; }
.am3r-rv-my-review-details summary::before { content: "▸ "; }
.am3r-rv-my-review-details[open] summary::before { content: "▾ "; }
.am3r-rv-my-review-text { color: var(--am3r-text); font-style: italic; margin: 8px 0; }
.am3r-rv-my-review-details ul { margin: 8px 0 0; padding: 0; list-style: none; }
.am3r-rv-my-review-details li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #fbe6ea; }
.am3r-rv-my-review-details li:last-child { border-bottom: none; }
.am3r-rv-my-review-val { color: var(--am3r-gold); font-weight: 600; }

.am3r-rv-pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.am3r-rv-pill.on { background: rgba(76,175,125,0.14); color: var(--am3r-green); }

@media (max-width: 480px) {
    .am3r-rv-login-box, .am3r-rv-survey-card { padding: 22px 18px; border-radius: 20px; }
    .am3r-rv-overall-rating .am3r-rv-star-cell { width: 40px; height: 40px; font-size: 33px; line-height: 40px; }

    .am3r-rv-star-rating { padding: 9px 11px; }
    .am3r-rv-star-cell { width: 33px; height: 33px; font-size: 27px; line-height: 33px; }
    .am3r-rv-star-rating-track { gap: 5px; }
    .am3r-rv-star-rating-label { font-size: 12.5px; }
    .am3r-rv-star-rating-value { font-size: 14px; }
}

@media (max-width: 360px) {
    .am3r-rv-star-cell { width: 30px; height: 30px; font-size: 24px; line-height: 30px; }
    .am3r-rv-star-rating-track { gap: 4px; }
}
