/* ============================================================
   hotpolis-reviews.css
   ============================================================ */

/* ---------- Загальний контейнер ---------- */
.hp-reviews-section {
    font-family: 'Gilroy', sans-serif;
    box-sizing: border-box;
}

/* ---------- Шапка секції ---------- */
.hp-reviews-section .hp-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
	padding-bottom: 10px;
}

.hp-reviews-section .hp-reviews-title {
    font-family: 'Gilroy', sans-serif;
    font-size: 35px;
    font-weight: 600;
    line-height: 45px;
    color: #191B1E;
    margin: 0;
    padding: 0;
}

.hp-reviews-section .hp-reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    color: #191B1E;
}

.hp-reviews-section .hp-avg-score {
    font-weight: 600;
    font-size: 16px;
}

.hp-reviews-section .hp-avg-count {
    color: #191B1E;
    opacity: 0.6;
    font-size: 14px;
}

/* ---------- Зірки (SVG) ---------- */
.hp-reviews-section .hp-header-stars .star svg,
.hp-reviews-section .review-stars .star svg {
    width: 20px;
    height: 20px;
    fill: #ddd;
}

.hp-reviews-section .hp-star-rating label svg {
    fill: #ddd;
}

.hp-reviews-section .hp-header-stars .star.filled svg,
.hp-reviews-section .review-stars .star.filled svg {
    fill: #F59E0C;
}

/* Зірки у формі */
.hp-reviews-section .hp-star-rating label svg {
    width: 16px;
    height: 16px;
    fill: #ddd;
    transition: fill 0.15s ease;
    cursor: pointer;
    display: block;
}

.hp-reviews-section .hp-star-rating input:checked ~ label svg,
.hp-reviews-section .hp-star-rating label:hover svg,
.hp-reviews-section .hp-star-rating label:hover ~ label svg {
    fill: #F59E0C;
}

/* ---------- Сітка карток ---------- */
.hp-reviews-section .hp-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .hp-reviews-section .hp-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hp-reviews-section .hp-reviews-grid {
        grid-template-columns: 1fr;
    }
    .hp-reviews-section .hp-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Картка відгуку ---------- */
.hp-reviews-section .review-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(129, 129, 129, 0.20);
    border-radius: 10px;
    padding: 24px;
    background: #ffffff;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
    margin: 0;
}

.hp-reviews-section .review-stars {
    display: flex;
    gap: 2px;
}

.hp-reviews-section p.review-text {
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #191B1E;
    margin: 0;
    padding: 0;
    flex: 1;
}

.hp-reviews-section strong.review-author {
    display: block;
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
    color: #191B1E;
    margin-top: auto;
    padding-top: 4px;
}

.hp-reviews-section .hp-no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    font-size: 16px;
    padding: 24px 0;
}

/* ---------- Кнопка "Показати більше" ---------- */
.hp-reviews-section .hp-load-more-wrap {
    text-align: center;
    margin-bottom: 48px;
}

.hp-reviews-section .hp-load-more-btn {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 32px;
    font-family: 'Gilroy', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: uppercase;
}

.hp-reviews-section .hp-load-more-btn:hover {
    background: #1b5e20;
    color: #fff;
}

.hp-reviews-section .hp-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Форма відгуку ---------- */
.hp-reviews-section .hp-review-form-wrap {
    background: #F5F5F5;
    border-radius: 20px;
    padding: 60px  10px;
    max-width: 706px;
    margin: 0 auto;
    box-sizing: border-box;
}

#hp-review-form {
	max-width: 433px;
	width: 100%;
	    margin: auto;
}

@media (max-width: 600px) {
    .hp-reviews-section .hp-review-form-wrap {
        padding:40px 30px;
    }
}

.hp-reviews-section .hp-form-title {
    text-align: center;
    font-family: 'Gilroy', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 25px;
    color: #191B1E;
}

.hp-reviews-section .hp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.hp-reviews-section .hp-form-group label, 
.hp-reviews-section .hp-star-rating label  {
    font-family: 'Gilroy', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(127, 127, 127, 1);
    display: block;
}

.hp-reviews-section .hp-form-group input[type="text"]::placeholder,
.hp-reviews-section .hp-form-group textarea::placeholder {
	color: #818181;
}

.hp-reviews-section .hp-form-group input[type="text"],
.hp-reviews-section .hp-form-group textarea {
    display: block;
    width: 100%;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    padding: 17px 20px;
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    color: #000;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    resize: vertical;
    -webkit-appearance: none;
}

.hp-reviews-section .hp-form-group textarea {
	min-height: 100px;
	resize: none;
}




/* ---------- Зіркова оцінка у формі ---------- */
.hp-reviews-section .hp-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.hp-reviews-section .hp-star-rating input {
    display: none;
}

.hp-reviews-section .hp-star-rating input:checked ~ label,
.hp-reviews-section .hp-star-rating label:hover,
.hp-reviews-section .hp-star-rating label:hover ~ label {
    color: #f5a623;
}

/* ---------- Кнопка "Надіслати" ---------- */
.hp-reviews-section .hp-submit-btn {
    display: block;
    width: 100%;
    background: #10A45F;
    color: #fff;
	    text-transform: none;
    border: none;
    border-radius: 10px;
    padding: 17px;
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s ease;
    -webkit-appearance: none;
}

.hp-reviews-section .hp-submit-btn:hover {
    background: #1b5e20;
    color: #fff;
}

.hp-reviews-section .hp-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ---------- Повідомлення форми ---------- */
.hp-reviews-section .hp-form-message {
    display: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

.hp-reviews-section .hp-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.hp-reviews-section .hp-form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ---------- Анімація появи нових карток ---------- */
.hp-reviews-section .review-card.animate-in {
    animation: hpCardFadeIn 0.4s ease forwards;
}

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