/* Reviews Section */
.product-reviews-section {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 12px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
   
}

/* Title of the reviews section */
.reviews-title {
    font-size: 1.75rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Container to hold both reviews and form */
.reviews-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1100px; /* Increased max-width for larger screens */
    align-items: stretch;
    position: relative; /* To position the separator line */
}

/* Reviews List (left section) */
.reviews-list {
    flex: 1;
    max-height: 500px; /* Set max height for reviews section */
    overflow-y: auto;  /* Improved scroll behavior */
    padding-right: 10px;
    padding-bottom: 20px;
}

/* Hide the scrollbar */
.reviews-list::-webkit-scrollbar {
    display: none;
}

/* Review Item */
.review-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;  /* Increased border-radius for smoother corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow for each review */
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;  /* Smooth hover effect */
}

.review-item:hover {
    transform: translateY(-5px); /* Hover effect to lift the review card */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Darker shadow on hover */
}

/* Review Rating */
.review-rating {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 10px;
    display: flex;  /* Use flexbox to align the stars */
}

.review-rating .star {
    cursor: pointer;
    transition: color 0.3s ease;
    margin-right: 5px;
}

/* Filled stars (when the user selects a rating) */
.review-rating .star.filled {
    color: #FFD700;  /* Keep the selected stars filled */
}

/* Empty stars */
.review-rating .star.empty {
    color: #ccc;  /* Set the default empty star color */
}

/* Reviewer Name and Date */
.reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;  /* Bold the reviewer name */
    color: #470b49;
}

.review-date {
    font-size: 0.9rem;
    color: #777;
}

/* Review Text */
.review-text {
    font-size: 1rem;
    color: #333;
    margin-top: 10px;
    line-height: 1.6;
}

/* Review Form (right section) */
.review-form {
    flex: 0 0 400px; /* Fixed width for the review form */
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Increased shadow */
    height: 500px;  /* Same height as the reviews section */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Review Form Styles */
.review-form h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Label Styling */
.review-form label {
    font-size: 1.1rem;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

/* Input and Textarea Styling */
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9; /* Subtle background */
    transition: border-color 0.3s ease; /* Smooth focus transition */
}

.review-form select:focus,
.review-form textarea:focus {
    border-color: #470b49;  /* Focus border color */
}

/* Review Form Button */
.review-form button {
    background-color: #470b49;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.review-form button:hover {
    background-color: #5b1f6a; /* Darker shade on hover */
}

/* Separator Line between Reviews and Form */
.reviews-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px; /* Line width */
    height: 100%; /* Full height of the container */
    background-color: #ccc; /* Line color */
}

/* Style for the Name input box */
#reviewer-name {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
    font-size: 1.1rem;
    font-family: 'Helvetica', sans-serif;
    box-sizing: border-box; /* Ensure padding is included in width */
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
}

/* Focus state for the input */
#reviewer-name:focus {
    border-color: #470b49;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(71, 11, 73, 0.2); /* Subtle shadow on focus */
    outline: none;
}

/* Hover effect for the input */
#reviewer-name:hover {
    border-color: #5b1f6a;
    background-color: #f3f3f3;
}

/* Placeholder styling */
#reviewer-name::placeholder {
    color: #bbb;
    font-style: italic;
}

/* Input box with focus effect */
#reviewer-name:focus::placeholder {
    color: transparent; /* Hide placeholder when focused */
}


/* Responsive Styles */
@media (max-width: 768px) {
    .reviews-container {
        flex-direction: column;
        align-items: center;
    }

    .reviews-list,
    .review-form {
        width: 100%;
        max-width: 600px;
    }

    .review-form textarea {
        height: 120px;
    }
}
