/* reviews.css - Reviews section and modal styles */

/* =============================================
   REVIEWS SECTION
   ============================================= */
.reviews-section {
    background-color: #fafafa;
    padding: 100px 0px;
}

.reviews-section .section-heading h6 {
    color: #f35525;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.reviews-section .section-heading h2 {
    color: #1e1e1e;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 50px;
}

.reviews-slider-container {
    margin-bottom: 80px;
}

.review-item {
    padding: 0 15px;
}

.review-content {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stars {
    margin-bottom: 25px;
}

.stars i {
    color: #f35525;
    font-size: 18px;
    margin: 0 2px;
}

.stars .fa-star-o {
    color: #ddd;
}

.review-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #4a4a4a;
    font-style: italic;
    margin-bottom: 30px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 5px 0;
}

.reviewer-info span {
    font-size: 14px;
    color: #888;
}

.leave-review-section {
    margin-top: 60px;
}

.leave-review-section h3 {
    font-size: 28px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 15px;
}

.leave-review-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* =============================================
   REVIEWS SLIDER NAVIGATION
   ============================================= */
.reviews-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.reviews-slider .owl-nav .owl-prev,
.reviews-slider .owl-nav .owl-next {
    position: absolute;
    background: #f35525 !important;
    color: #fff !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    transition: all 0.3s;
}

.reviews-slider .owl-nav .owl-prev {
    left: -25px;
}

.reviews-slider .owl-nav .owl-next {
    right: -25px;
}

.reviews-slider .owl-nav .owl-prev:hover,
.reviews-slider .owl-nav .owl-next:hover {
    background: #e04414 !important;
    transform: scale(1.1);
}

.reviews-slider .owl-dots {
    text-align: center;
    margin-top: 40px;
}

.reviews-slider .owl-dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s;
}

.reviews-slider .owl-dot.active {
    background: #f35525;
    transform: scale(1.2);
}

/* =============================================
   REVIEW MODAL STYLES
   ============================================= */
.review-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.review-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    position: relative;
    animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px 30px;
    border-bottom: 2px solid #f1f3f4;
    position: relative;
}

.review-modal-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 3px;
    background: linear-gradient(90deg, #f35525, #ff7849);
    border-radius: 2px;
}

.review-modal-header h2 {
    margin: 0;
    color: #1e1e1e;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e1e1e, #333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.review-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(243, 85, 37, 0.1);
}

.review-close:hover {
    color: #f35525;
    background: rgba(243, 85, 37, 0.2);
    transform: scale(1.1);
}

.review-modal-body {
    padding: 30px;
}

/* =============================================
   REVIEW FORM STYLES
   ============================================= */
.review-modal .form-group {
    margin-bottom: 25px;
}

.review-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.review-modal .form-group input[type="text"],
.review-modal .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
}

.review-modal .form-group input[type="text"]:focus,
.review-modal .form-group textarea:focus {
    outline: none;
    border-color: #f35525;
    box-shadow: 0 0 0 3px rgba(243, 85, 37, 0.1);
    background: #fff;
    transform: translateY(-1px);
}

.review-modal .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* =============================================
   STAR RATING
   ============================================= */
.star-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.star {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: #f35525;
    transform: scale(1.1);
}

.star:hover {
    animation: starPulse 0.3s ease;
}

.rating-text {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* =============================================
   CHARACTER COUNTER
   ============================================= */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.char-counter.warning {
    color: #ff6b35;
    font-weight: 600;
}

.char-counter.danger {
    color: #dc3545;
    font-weight: 700;
}

/* =============================================
   FORM ACTIONS
   ============================================= */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
}

.btn-cancel,
.btn-submit {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cancel {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: #fff;
    min-width: 100px;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #f35525, #ff7849);
    color: #fff;
    min-width: 180px;
    position: relative;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #e04414, #f35525);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 85, 37, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =============================================
   ALERT STYLES FOR MODAL
   ============================================= */
#review-alert-container .alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    animation: slideInDown 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

#review-alert-container .alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

#review-alert-container .alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

#review-alert-container .alert-success::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

#review-alert-container .alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

#review-alert-container .alert-danger::before {
    background: linear-gradient(90deg, #dc3545, #e55353);
}

#review-alert-container .alert ul {
    margin: 0;
    padding-left: 20px;
}

#review-alert-container .alert .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#review-alert-container .alert .close-btn:hover {
    opacity: 1;
}

/* =============================================
   MODAL ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes starPulse {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

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