/* Customer Reviews Section - Light Premium Theme (Matching Site Style) */
.reviews-section {
    padding: 80px 20px; /* Standardized for standalone page */
    background-color: #ffffff;
    color: #111827;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    z-index: 1;
    min-height: 60vh; /* Ensure page doesn't look empty */
}

.reviews-section .container {
    max-width: 1000px; /* Bit wider for a cleaner look */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.reviews-header {
    text-align: center;
    margin-bottom: 30px;
}

.reviews-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin: 0 0 12px 0;
    letter-spacing: -1.5px;
    color: #111827;
}

.reviews-header p {
    color: #6b7280; /* hero-gray-600 */
    font-size: 1.1rem;
    margin: 0;
}

/* Aggregated Rating Box - Glassmorphic */
.reviews-aggregate-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    border: 1px solid rgba(147, 51, 234, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.rating-overall {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-score {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-stars {
    color: #f59e0b; /* Golden stars */
    font-size: 1.4rem;
    display: flex;
    gap: 5px;
}

.rating-count {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

/* Rating Bars */
.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    max-width: 450px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.star-label {
    color: #4b5563;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 35px;
}

.star-label i {
    color: #f59e0b;
    font-size: 0.85rem;
}

.bar-container {
    flex: 1;
    height: 10px;
    background-color: #f3f4f6;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 5px;
    width: 0; /* Star at 0 for animation */
    animation: fillBar 1.5s cubic-bezier(0.1, 0.5, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--fill-width, 0); }
}

.count-label {
    color: #6b7280;
    font-size: 0.9rem;
    width: 30px;
    text-align: right;
    font-weight: 600;
}

/* CTA Box - Matching Site Accent */
.review-cta-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(147, 51, 234, 0.05));
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
}

.review-cta-box p {
    margin: 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
}

.review-cta-box .highlight {
    color: #7c3aed;
    font-weight: 800;
}

.review-action {
    text-align: center;
    margin-bottom: 30px;
}

.btn-leave-review {
    background: white;
    color: #7c3aed;
    border: 2px solid rgba(124, 58, 237, 0.2);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.btn-leave-review:hover {
    background: #f5f3ff;
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
}

/* Review Form Styles */
.review-form-container {
    max-width: 600px;
    margin: 20px auto 40px;
    animation: fadeInUpSmall 0.5s ease-out;
}

.review-form-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
}

.review-form-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #111827;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4b5563;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 24px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #fbbf24;
}

#review-text {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

#review-text:focus {
    outline: none;
    border-color: #a855f7;
}

.btn-submit-review {
    width: 100%;
    background: #111827;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit-review:hover {
    background: #1f2937;
}

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

/* Individual Reviews - Elegant Cards */
.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-comment {
    background: white;
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.review-comment:hover {
    transform: translateY(-5px);
}

.review-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    gap: 4px;
}

.review-text {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-style: italic;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-info .avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.reviewer-info .name {
    color: #111827;
    font-weight: 700;
    font-size: 0.95rem;
}

.review-meta .date {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reviews-section {
        padding: 60px 15px;
    }
    
    .reviews-aggregate-box {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .rating-bars {
        width: 100%;
    }
    
    .rating-score {
        font-size: 3.5rem;
    }
    
    .reviews-header h2 {
        font-size: 2.2rem;
    }

    .reviews-list {
        grid-template-columns: 1fr;
    }
}
