/* WoodRock Reviews Pro - Frontend Styles */

/* Reviews Section */
.reviews-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    overflow: hidden;
}

.reviews-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Reviews Track */
.reviews-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    flex: 1;
    padding: 20px 0;
}

.reviews-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Review Cards */
.review-card {
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

.review-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    font-style: italic;
}

.review-card span {
    font-weight: 600;
    color: #DC9A3A;
    font-size: 14px;
}

/* Navigation Buttons - FIXED POSITIONING */
.review-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    border: none !important;
    border-radius: 50% !important;
    background: #DC9A3A !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.review-btn:hover {
    background: #b5792e !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.review-btn:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.review-btn svg {
    width: 20px !important;
    height: 20px !important;
}

.review-btn.prev-review {
    left: -25px !important;
}

.review-btn.next-review {
    right: -25px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-section {
        padding: 20px 10px;
    }
    
    .reviews-wrapper {
        gap: 10px;
    }
    
    .review-card {
        min-width: 250px;
        padding: 20px;
    }
    
    .review-btn {
        width: 40px !important;
        height: 40px !important;
        left: -20px !important;
    }
    
    .review-btn.next-review {
        right: -20px !important;
    }
    
    .review-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (max-width: 480px) {
    .review-card {
        min-width: 200px;
        padding: 15px;
    }
    
    .review-card p {
        font-size: 14px;
    }
    
    .review-card span {
        font-size: 12px;
    }
    
    .review-btn {
        width: 35px !important;
        height: 35px !important;
        left: -17px !important;
    }
    
    .review-btn.next-review {
        right: -17px !important;
    }
}

/* Contact Form Styles */
.woodrock-contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.woodrock-contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.woodrock-contact-form .form-group {
    margin-bottom: 25px;
}

.woodrock-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.woodrock-contact-form input,
.woodrock-contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.woodrock-contact-form input:focus,
.woodrock-contact-form textarea:focus {
    outline: none;
    border-color: #DC9A3A;
}

.woodrock-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.woodrock-contact-form .submit-btn {
    background: #DC9A3A;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.woodrock-contact-form .submit-btn:hover {
    background: #b5792e;
    transform: translateY(-2px);
}

.woodrock-contact-form .submit-btn:active {
    transform: translateY(0);
}

.woodrock-contact-form .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages - Only for errors */
.form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Loading State */
.woodrock-contact-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive Form */
@media (max-width: 768px) {
    .woodrock-contact-form-container {
        padding: 20px 10px;
    }
    
    .woodrock-contact-form {
        padding: 30px 20px;
    }
    
    .woodrock-contact-form input,
    .woodrock-contact-form textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .woodrock-contact-form .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
.review-btn:focus,
.review-card:focus-within {
    outline: 2px solid #DC9A3A;
    outline-offset: 2px;
}

/* Smooth scrolling for older browsers */
.reviews-track {
    scroll-behavior: smooth;
}

/* Fallback for browsers that don't support scroll-behavior */
@media (prefers-reduced-motion: reduce) {
    .reviews-track {
        scroll-behavior: auto;
    }
    
    .review-card {
        animation: none;
    }
}

/* Force button visibility and positioning */
.reviews-wrapper {
    position: relative !important;
}

.review-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
}

.review-btn.prev-review {
    left: -25px !important;
}

.review-btn.next-review {
    right: -25px !important;
}

/* Ensure buttons are above other elements */
.review-btn {
    z-index: 9999 !important;
}