/* --- PAGE & LAYOUT --- */
.reviews-page { 
    padding-top: 150px; 
    min-height: 100vh; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.reviews-header { 
    text-align: center; 
    margin-bottom: 40px; 
    padding: 0 20px; 
}

/* --- FORM STYLING --- */
.form-panel { 
    width: 100%; 
    max-width: 600px; 
    margin-bottom: 60px; 
    box-sizing: border-box; 
    padding: 30px; 
}

.form-title h3 { 
    margin-bottom: 25px; 
    border-bottom: 2px solid var(--accent-pop); 
    display: inline-block; 
    padding-bottom: 5px; 
}

.review-form { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.form-row { 
    display: flex; 
    gap: 15px; 
}

/* INPUTS (Clean White Style) */
.clean-input { 
    width: 100%; 
    padding: 14px; 
    border-radius: 12px; 
    border: 1px solid #ddd; 
    font-family: inherit; 
    font-size: 0.95rem; 
    background: #ffffff; 
    box-sizing: border-box; 
    transition: 0.3s; 
    -webkit-appearance: none;
}

.clean-input:focus { 
    outline: none; 
    border-color: var(--accent-pop); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}

.clean-input.error { 
    border-color: #ff4757; 
    background-color: #fff0f0; 
    animation: shake 0.3s; 
}

/* Remove blue autofill */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #333 !important;
}

.form-select { 
    appearance: none; 
    -webkit-appearance: none; 
    padding-right: 40px; 
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); 
    background-repeat: no-repeat; 
    background-position: right 20px center; 
    background-size: 16px; 
    cursor: pointer; 
}

/* --- UPLOAD UI --- */
.photo-upload-container { 
    display: flex; 
    gap: 15px; 
    margin-top: 5px; 
}

.upload-box { 
    flex: 1; 
}

.hidden-file-input { 
    display: none; 
}

.upload-label { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 15px; 
    border: 2px dashed #ccc; 
    border-radius: 12px; 
    color: #666; 
    cursor: pointer; 
    transition: 0.3s; 
    background: rgba(255,255,255,0.5); 
}

.upload-label:hover { 
    border-color: var(--accent-bright); 
    background: rgba(255,255,255,0.8); 
    color: var(--accent-pop); 
}

.upload-label.has-file { 
    border-style: solid; 
    border-color: var(--accent-pop); 
    background: #eef2ff; 
    color: var(--accent-pop); 
}

/* --- STARS INPUT --- */
.rating-group label { 
    color: #666; 
    margin-bottom: 5px; 
    display: block; 
}

.rating-group.error label { 
    color: #ff4757; 
    font-weight: bold; 
}

.star-rating-input { 
    display: flex; 
    gap: 10px; 
    font-size: 1.5rem; 
    cursor: pointer; 
}

.star-rating-input i { 
    color: #cbd5e1; 
    transition: color 0.2s; 
}

.star-rating-input i.hovered { color: #bbc7ff; } 
.star-rating-input i.active { color: var(--accent-bright); }

/* --- FILTERS BAR --- */
.filters-bar { 
    width: 100%; 
    max-width: 900px; 
    margin-bottom: 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.5rem !important; 
    flex-wrap: wrap; 
    gap: 15px; 
}

.filter-group { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.filter-pill { 
    padding: 6px 14px; 
    border-radius: 20px; 
    border: 1px solid #ddd; 
    font-size: 0.85rem; 
    cursor: pointer; 
    transition: 0.3s; 
}

.filter-pill.active { 
    background: var(--accent-pop); 
    color: #fff; 
    border-color: var(--accent-pop); 
}

/* --- REVIEWS GRID --- */
.reviews-grid-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px; 
    width: 100%; 
    padding: 0 20px 50px 20px; 
    box-sizing: border-box; 
}

/* Base card styling is inherited from base.css .review-card */
/* But we add specific overrides for the reviews page layout if needed */
.review-card { 
    text-align: left; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    padding: 25px !important; 
    overflow: hidden; 
}

.customer-name { 
    font-weight: 700; 
    color: var(--accent-pop); 
    display: block; 
    font-size: 1.5rem; 
    line-height: 1.2; 
}

.aesthetic-quote { 
    position: absolute; 
    top: 40px; 
    right: 20px; 
    font-family: 'Playfair Display', serif; 
    font-size: 5rem; 
    color: var(--accent-bright); 
    opacity: 0.4; 
    line-height: 1; 
    pointer-events: none; 
}

.stars.small { 
    font-size: 0.8rem; 
    margin: 0; 
    margin-top: 5px; 
}

.review-body { 
    font-style: italic; 
    color: #444; 
    margin-bottom: 10px; 
    flex-grow: 1; 
    line-height: 1.6; 
    z-index: 2; 
    position: relative; 
    margin-top: 15px; 
}

/* --- COLLAGE IN CARD --- */
.review-collage { 
    position: relative; 
    height: 220px; 
    width: 100%; 
    margin-top: 10px; 
    display: flex; 
    justify-content: center; 
}

.collage-img { 
    position: absolute; 
    width: 150px; 
    height: 190px; 
    object-fit: cover; 
    border-radius: 8px; 
    border: 4px solid #fff; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
    transition: all 0.3s ease; 
    left: 50%; 
    top: 0; 
    margin-left: -75px; 
}

.img-back { 
    z-index: 1; 
    transform: translateX(-55px) rotate(-6deg); 
}

.img-front { 
    z-index: 2; 
    transform: translateX(55px) rotate(5deg) translateY(10px); 
}

.review-collage:hover .img-back { transform: translateX(-65px) rotate(-10deg) scale(1.05); }
.review-collage:hover .img-front { transform: translateX(65px) rotate(8deg) scale(1.05); }
.collage-img:hover { z-index: 100 !important; cursor: zoom-in; }

/* --- CARD FOOTER --- */
.review-footer { 
    margin-top: auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-top: 15px; 
    border-top: 1px solid rgba(0,0,0,0.05); 
    z-index: 5; 
    position: relative; 
}

.meta-info { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.branch-badge { 
    background: rgba(0,0,0,0.05); 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 0.7rem; 
    color: #666; 
    text-transform: uppercase; 
    font-weight: 600; 
}

.review-date { 
    font-size: 0.8rem; 
    color: #999; 
}

.kudos-btn { 
    background: transparent; 
    border: 1px solid #ddd; 
    padding: 5px 12px; 
    border-radius: 20px; 
    cursor: pointer; 
    color: #666; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    transition: 0.3s; 
    font-family: inherit; 
}

.kudos-btn.liked { 
    background: #ff4757; 
    color: white; 
    border-color: #ff4757; 
    pointer-events: none; 
}

.stars { 
    color: var(--accent-bright); 
    margin-bottom: 5px; 
    font-size: 1rem; 
}

.empty-state { 
    grid-column: 1 / -1; 
    text-align: center; 
    padding: 50px; 
    color: #888; 
    font-style: italic; 
}

/* --- ANIMATIONS --- */
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 15px; }
    .filters-bar { flex-direction: column; align-items: flex-start; }
    .reviews-grid-container { grid-template-columns: 1fr; }
    
    .review-collage { height: 180px; }
    .collage-img { width: 120px; height: 160px; margin-left: -60px; }
    .img-back { transform: translateX(-40px) rotate(-6deg); }
    .img-front { transform: translateX(40px) rotate(5deg) translateY(10px); }
}