/* ====== ВІДГУКИ ====== */

.reviews-section {
    max-width: 700px;
    margin: 60px auto;
    text-align: center;
    padding: 0 15px;
}

.review-wrapper {
    overflow: hidden;
}

.review-box {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    user-select: none;
    cursor: grab;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.review-box:active {
    cursor: grabbing;
}

.review-text {
    font-style: italic;
    font-size: 16px;
    line-height: 1.5;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    font-weight: bold;
}

.stars {
    color: gold;
    font-size: 18px;
}

/* КНОПКА "НАПИСАТИ ВІДГУК" */
.review-btn {
    margin-top: 25px;
    padding: 12px 28px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* ====== МОДАЛКА (НЕ ЧІПАЄМО ЛОГІКУ) ====== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    z-index: 999;
}

.modal-content {
    background: #fff;
    max-width: 420px;
    width: 90%;
    margin: 10vh auto;
    padding: 30px 25px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.star-select {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 20px;
}

.star-select span {
    font-size: 28px;
    cursor: pointer;
    color: #ddd;
    transition: 0.2s;
}

.star-select span.active {
    color: gold;
    transform: scale(1.15);
}


.prev,
.next {
    display: none !important;
}


.next {
    display: none !important;
}

/* ===== ДОПОВНЕННЯ СТИЛІВ МОДАЛКИ ===== */

/* Поля вводу */
.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
    margin-bottom: 14px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.modal-content textarea {
    resize: none;
    min-height: 100px;
}

/* Кнопка відправки */
.modal-content button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #000, #333);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.modal-content button:hover {
    background: #000;
    transform: translateY(-1px);
}

/* Кнопка закриття */
.close-btn {
    position: absolute;
    top: 9px;
    right: 8px;
    font-size: 22px;
    cursor: pointer;
    color: #000;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #000;
}

/* ЗІРОЧКИ */
.star-select span {
    font-size: 30px;
    cursor: pointer;
    color: #ddd;
    transition: transform 0.15s, color 0.15s;
}

.star-select span:hover,
.star-select span.active {
    color: gold;
    transform: scale(1.2);
}


.star-select {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 20px;
}

.star-select span {
    font-size: 30px;
    cursor: pointer;
    color: #ddd;
}

.star-select span.active {
    color: gold;
    transform: scale(1.2);
}

/* ===== РЕЙТИНГ У МОДАЛЦІ ===== */

.star-select {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    padding: 10px 0 18px;
    margin-bottom: 10px;

    border-top: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
}

.star-select span {
    font-size: 32px;
    line-height: 1;
    cursor: pointer;

    color: #dcdcdc;
    transition: 
        color 0.2s ease,
        transform 0.15s ease;
}

/* hover */
.star-select span:hover {
    transform: scale(1.25);
}

/* активні зірки */
.star-select span.active {
    color: gold;
}

/* hover + активні */
.star-select span.active:hover {
    transform: scale(1.35);
}

.form-success {
    display: none;
    margin-top: 14px;
    font-size: 14px;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 10px 12px;
    border-radius: 8px;
}
