/* --- CSS FORM ĐÁNH GIÁ CELESTIA WINE BAR --- */

.celestia-review-form-wrapper {
    background: #38824d; /* Màu nền xanh rêu sáng nhẹ Celestia */
    border: 1.5px solid #46a260; /* Viền màu xanh lá nhạt */
    padding: 35px 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.celestia-review-form-wrapper .form-title {
    color: #fff; /* Màu chữ trắng đồng bộ */
    font-size: 26px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    font-weight: 700;
}

.celestia-review-form-wrapper .form-subtitle {
    color: #e2e2e2;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

.celestia-review-form-wrapper .form-group-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .celestia-review-form-wrapper .form-group-row {
        flex-direction: column;
        gap: 15px;
    }
}

.celestia-review-form-wrapper .form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.celestia-review-form-wrapper .form-field label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff; /* Nhãn chữ trắng đồng bộ */
    margin-bottom: 8px;
    font-weight: 600;
}

.celestia-review-form-wrapper input[type="text"],
.celestia-review-form-wrapper input[type="number"],
.celestia-review-form-wrapper select,
.celestia-review-form-wrapper textarea {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(70, 162, 96, 0.4); /* Viền màu xanh #46a260 */
    color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.celestia-review-form-wrapper input:focus,
.celestia-review-form-wrapper select:focus,
.celestia-review-form-wrapper textarea:focus {
    border-color: #46a260;
    outline: none;
    box-shadow: 0 0 8px rgba(70, 162, 96, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

/* Container cho Đánh giá chung */
.overall-rating-container {
    background: rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(70, 162, 96, 0.3); /* Viền màu xanh #46a260 */
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overall-star-field {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
}

.overall-star-field label {
    font-size: 16px !important;
    color: #fff; /* Màu chữ trắng đồng bộ */
    font-weight: 700;
    margin-bottom: 10px !important;
}

.big-stars {
    font-size: 38px !important;
    gap: 8px !important;
}

/* Bố cục lưới cho phần Đánh giá sao phụ (3 tiêu chí ở hàng dưới) */
.rating-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(70, 162, 96, 0.3); /* Viền màu xanh #46a260 */
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .rating-grid-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.star-rating-field {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    width: 100%;
}

.star-rating-field label {
    margin-bottom: 0 !important;
    font-size: 13px !important;
    color: #e2e2e2 !important;
}

.celestia-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    font-size: 24px;
    gap: 4px;
    cursor: pointer;
    width: 100%;
}

.celestia-star-rating .star {
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s ease, transform 0.1s ease;
}

.celestia-star-rating .star:hover,
.celestia-star-rating .star:hover ~ .star,
.celestia-star-rating .star.selected,
.celestia-star-rating .star.selected ~ .star {
    color: #ffc107; /* Màu sao giữ nguyên vàng Google */
}

.celestia-star-rating .star:active {
    transform: scale(0.85);
}

/* Khu vực upload ảnh/video tùy biến */
.upload-fields-row {
    background: rgba(0, 0, 0, 0.15);
    border: 1px dashed rgba(70, 162, 96, 0.5); /* Đường đứt nét viền xanh #46a260 */
    padding: 20px;
    border-radius: 6px;
    margin-top: 15px;
}

.upload-field {
    position: relative;
}

.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.btn-upload {
    border: 1px solid #46a260; /* Viền nút màu xanh lá nhạt */
    color: #fff; /* Chữ trắng */
    background-color: #305b3a; /* Nền xanh lá trung tính #305b3a */
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    background: #46a260; /* Hover đổi nền thành xanh nhạt */
    border-color: #46a260;
    color: #fff;
}

.upload-btn-wrapper input[type="file"] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

/* Preview tệp trước khi gửi */
.preview-container {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.preview-container .preview-item {
    width: 75px;
    height: 75px;
    border: 1px solid #46a260;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.preview-container .preview-item img,
.preview-container .preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nút Submit */
#celestia-submit-review {
    background: #46a260; /* Nút chính màu xanh lá nhạt #46a260 */
    border: none;
    color: #fff; /* Chữ trắng */
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#celestia-submit-review:hover {
    background: #57c577; /* Hover sáng hơn tí */
    box-shadow: 0 6px 20px rgba(70, 162, 96, 0.4);
}

#celestia-submit-review:disabled {
    background: #305b3a;
    color: #a3c4ab;
    cursor: not-allowed;
}

#celestia-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: none;
}

#celestia-form-message.success {
    display: block;
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

#celestia-form-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}


/* --- CSS DANH SÁCH ĐÁNH GIÁ (FRONT-END) --- */

.celestia-reviews-list-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

/* Summary Box kiểu Google Maps */
.celestia-reviews-summary {
    display: flex;
    align-items: center;
    background: #38824d; /* Màu nền xanh rêu sáng nhẹ Celestia */
    border: 1.5px solid #46a260; /* Viền xanh #46a260 */
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    gap: 30px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .celestia-reviews-summary {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

.summary-score-box {
    display: flex;
    align-items: baseline;
}

.summary-score-box .average-score {
    font-size: 48px;
    font-weight: 800;
    color: #fff; /* Số điểm màu trắng */
    line-height: 1;
}

.summary-score-box .score-max {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.summary-stars {
    font-size: 22px;
    margin-bottom: 5px;
}

.summary-stars .star {
    color: rgba(255, 255, 255, 0.2);
}

.summary-stars .star.filled {
    color: #ffc107;
}

.summary-stars .star.half-filled {
    background: linear-gradient(90deg, #ffc107 50%, rgba(255, 255, 255, 0.2) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.total-count {
    font-size: 13px;
    color: #e2e2e2;
}

/* Grid Reviews */
.celestia-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.celestia-review-card {
    background: #38824d; /* Màu nền xanh rêu sáng nhẹ Celestia */
    border: 1px solid rgba(70, 162, 96, 0.3); /* Viền xanh #46a260 mờ */
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.celestia-review-card:hover {
    transform: translateY(-5px);
    border-color: #46a260;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #305b3a; /* Nền avatar xanh #305b3a */
    color: #fff; /* Chữ avatar trắng */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}

.user-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.card-stars {
    font-size: 16px;
    margin-bottom: 8px;
}

.card-stars .star {
    color: rgba(255, 255, 255, 0.2);
}

.card-stars .star.filled {
    color: #ffc107;
}

/* CSS hiển thị các tiêu chí đánh giá phụ Google Map */
.card-sub-ratings {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(70, 162, 96, 0.2);
}

.sub-rating-item {
    display: flex;
    gap: 4px;
}

.sub-rating-item .sub-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.sub-rating-item .sub-value {
    font-weight: 700;
    color: #ffc107;
}

.card-content {
    font-size: 14px;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 15px;
}

/* Thư viện hình ảnh và video trong thẻ Đánh giá */
.card-media-gallery {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(70, 162, 96, 0.2);
}

.card-media-gallery .gallery-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(70, 162, 96, 0.3);
    transition: border-color 0.3s;
}

.card-media-gallery .gallery-item-image:hover {
    border-color: #46a260;
}

.card-media-gallery .gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-media-gallery .gallery-item-video {
    width: 100%;
    margin-top: 5px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(70, 162, 96, 0.3);
}

.card-media-gallery .gallery-item-video video {
    width: 100%;
    max-height: 180px;
    display: block;
    background: #000;
}

.no-reviews {
    text-align: center;
    padding: 40px;
    background: #38824d; /* Màu nền xanh rêu sáng nhẹ Celestia */
    border: 1.5px dashed #46a260;
    border-radius: 12px;
    color: #e2e2e2;
}