/* ========================
   1. MAIN LAYOUT
   ======================== */
.uv-reviews-section-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Montserrat', sans-serif;
    padding: 0 20px;
}

.uv-reviews-grid-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start; 
}

/* Columns */
.uv-col-form {
    flex: 1;
    min-width: 320px;
    max-width: 450px;
}

.uv-col-slider {
    flex: 1.5;
    min-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* ========================
   2. STATS BAR (Right Column Header)
   ======================== */
.uv-stats-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 61, 63, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
    width: fit-content;
}

.uv-stat-item { text-align: center; display: flex; flex-direction: column; }
.uv-stat-num { font-size: 20px; font-weight: 800; color: #003D3F; line-height: 1; }
.uv-stat-label { font-size: 10px; color: #888; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.uv-stat-sep { width: 1px; height: 25px; background: #e0e0e0; }
.uv-gold-star { color: #FFC050; }

/* ========================
   3. FORM STYLES (Left Column)
   ======================== */
.uv-review-form-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 61, 63, 0.08);
    border: 1px solid #f0f0f0;
    height: auto; 
}

.uv-form-header { text-align: center; margin-bottom: 20px; }
.uv-form-header h3 { margin: 0; color: #003D3F; font-size: 22px; font-weight: 700; }
.uv-form-header p { margin: 5px 0 0 0; color: #888; font-size: 13px; }

.uv-modern-form label { font-size: 12px; font-weight: 700; color: #444; display: block; margin-bottom: 5px; }
.uv-modern-form input[type="text"], .uv-modern-form textarea {
    width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #ddd;
    background: #fdfdfd; font-size: 13px; box-sizing: border-box; transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
}
.uv-modern-form input:focus, .uv-modern-form textarea:focus {
    border-color: #003D3F; background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(0, 61, 63, 0.1);
}
.uv-input-wrap { margin-bottom: 12px; }

.uv-user-badge-form { 
    background: #e0f7fa; color: #006064; padding: 10px; 
    border-radius: 8px; font-size: 13px; margin-bottom: 15px; text-align: center; border: 1px solid #b2ebf2;
}

/* Stars */
.uv-stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 5px; }
.uv-stars-input input { display: none; }
.uv-stars-input label { font-size: 24px; color: #ccc; cursor: pointer; transition: 0.2s; line-height: 1; }
.uv-stars-input input:checked ~ label, .uv-stars-input label:hover, .uv-stars-input label:hover ~ label { color: #FFC050; }

.uv-submit-btn {
    width: 100%; background: #003D3F; color: #fff; border: none; padding: 12px;
    border-radius: 50px; font-weight: 700; cursor: pointer; margin-top: 10px;
    transition: 0.2s; text-transform: uppercase; font-size: 13px; letter-spacing: 1px;
}
.uv-submit-btn:hover { background: #002a2b; transform: translateY(-2px); }
#uv-review-msg { margin-top: 12px; font-size: 13px; font-weight: 600; text-align: center; }

/* ========================
   4. SLIDER STYLES (Upstairs)
   ======================== */
.uv-stack-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px; 
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.uv-stack-container { width: 100%; height: 100%; position: relative; }

.uv-stack-card {
    position: absolute; width: 100%; background: #fff;
    border-radius: 20px; padding: 25px; box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: 1px solid #f0f0f0;
    border-left: 4px solid #003D3F;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0; z-index: 0; transform: translateY(50px) scale(0.9);
}

/* --- ✅ NEW: Active Class for Visibility --- */
.uv-stack-card.active {
    opacity: 1;
    z-index: 5;
    transform: translateY(0) scale(1);
}

.uv-st-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.uv-st-avatar-img {
    width: 50px; height: 50px; border-radius: 50%;
    object-fit: cover; border: 2px solid #e0e0e0; padding: 1px;
}
.uv-st-info { flex-grow: 1; }
.uv-st-name { margin: 0; font-size: 16px; font-weight: 700; color: #222; }
.uv-st-role { font-size: 12px; color: #008080; font-weight: 600; text-transform: uppercase; }

.uv-st-rating {
    background: #fffbf0; border: 1px solid #ffeeba; color: #b45309;
    padding: 4px 10px; border-radius: 8px; font-weight: 800; font-size: 13px;
}
.uv-star-gold { color: #FFC050; }

.uv-st-body p {
    font-size: 14px; color: #555; line-height: 1.6; margin: 0; font-style: italic;
    background: #f9fbfb; padding: 15px; border-radius: 10px;
}

.uv-st-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 20px; padding-top: 10px; border-top: 1px dashed #eee;
}
.uv-st-date { font-size: 11px; color: #999; font-weight: 600; }

/* --- BADGES --- */
.uv-st-badge { 
    font-size: 10px; padding: 4px 10px; border-radius: 20px; font-weight: 700; text-transform: uppercase;
}
.uv-st-badge.verified { color: #155724; background: #d4edda; border: 1px solid #c3e6cb; }
.uv-st-badge.pending { color: #856404; background: #fff3cd; border: 1px solid #ffeeba; }

/* --- NAVIGATION BUTTONS --- */
.uv-stack-nav { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    margin-left: 20px; 
}

.uv-nav-arrow {
    width: 45px; height: 45px; min-width: 45px;
    border-radius: 50%; border: 1px solid #ccc;
    background: #fff; cursor: pointer; color: #333; 
    font-size: 14px; display: flex; align-items: center; 
    justify-content: center; transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.uv-nav-arrow:hover { background: #003D3F; color: #fff; border-color: #003D3F; }

/* ========================
   5. RESPONSIVE FIXES
   ======================== */
@media (max-width: 900px) {
    .uv-reviews-grid-layout { flex-direction: column; gap: 40px; }
    .uv-col-form, .uv-col-slider { width: 100%; max-width: 100%; }
    
    .uv-stack-wrapper { 
        max-width: 100%; height: auto; min-height: 400px;
        flex-direction: column; 
    }
    
    .uv-stack-container { height: 380px; width: 100%; }

    .uv-stack-nav { 
        display: flex; flex-direction: row; margin-left: 0;
        margin-top: 20px; justify-content: center; width: 100%; gap: 25px;
    }
    
    .uv-nav-arrow { width: 50px; height: 50px; font-size: 18px; }
    .uv-review-form-container { width: 100%; max-width: 100%; box-sizing: border-box; }
}