.reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #e8bdff;
    padding-bottom: clamp(12px, calc(12px + (38 * ((100vw - 300px) / 250))), 50px);
    margin-top: clamp(12px, calc(12px + (38 * ((100vw - 300px) / 250))), 50px);
}

.reviewsBanner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 45px;
    margin-top: clamp(25px, calc(25px + (25 * ((100vw - 380px) / 170))), 50px);
    margin-bottom: clamp(12px, calc(12px + (38 * ((100vw - 300px) / 250))), 50px);
}
.reviewsBanner img {
    width: clamp(28px, calc(28px + (22 * ((100vw - 300px) / 250))), 50px);
}
.reviewsBanner h1 {
    color: #1bfc54;
    -webkit-text-stroke: 1px black; /* Outline width and color */
    font-weight: bold;
    font-size: clamp(28px, calc(28px + (22 * ((100vw - 300px) / 250))), 50px);
    margin: 0;
    margin-left: clamp(5px, calc(5px + (5 * ((100vw - 300px) / 250))), 10px);
    white-space: nowrap;
}

/* Styling for the wrapper that holds all review items */
.reviewsTextWrapper {
    position: relative; /* Crucial for positioning individual review items */
    width: 100%;
    min-height: 150px; /* Give it a minimum height to prevent layout shifts */
    overflow: hidden; /* Hide content that overflows */
    display: flex;
    justify-content: center; /* Center the review items horizontally */
    align-items: center; /* Center the review items vertically */
}

/* Styling for each individual review item */
.review-item {
    position: absolute; /* Allows items to stack on top of each other */
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease-in-out; /* Smooth fade transition */
    text-align: center; /* Center the text within each review item */
    box-sizing: border-box;
    padding: 0 20px; /* Add horizontal padding to the review text */
}

/* Styling for the currently active review item */
.review-item.active-review {
    opacity: 1; /* Make active review visible */
    position: relative; /* Active item takes up space in the flow, preventing collapse */
}

/* Ensure h2 elements within review items are centered and have no extra margins */
.review-item h2 {
    margin: 0; /* Remove default browser margins */
    padding: 5px 0; /* Add a little vertical padding */
    line-height: 1.4; /* Improve readability */
    font-size: clamp(16px, calc(16px + (14 * ((100vw - 300px) / 250))), 30px);
}

/* Your existing CSS for .reviewsContainer and navigation arrows remains */
.reviewsContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 1150px;
    padding-top: 0px;
}

.navigateReviews {
    display: flex;
    justify-content: space-between; /* This pushes the arrows to the ends and keeps the middle button centered */
    align-items: center;            /* Vertically centers everything */
    width: 100%;
    padding: 20px 10px;             /* This gives the green box actual height/space */
    box-sizing: border-box;         /* Ensures padding doesn't break the width */
    margin-top: auto;               /* Pushes the whole nav bar to the bottom of the container */
}

.nextReview, .previousReview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(60px, calc(60px + (40 * ((100vw - 300px) / 250))), 100px);
    height: clamp(32px, calc(32px + (18 * ((100vw - 300px) / 250))), 50px);
    background-color: #A50cf8;
    border-radius: 25px;
    font-weight: bold;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.5s;
    letter-spacing: 1px;
    gap: 10px;
    cursor: pointer;
    transition: 0.5s;
    border-color: black;
    border-style: solid;
    border-width: 2px;
}

.customerReview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(120px, calc(120px + (80 * ((100vw - 300px) / 250))), 200px);
    height: clamp(32px, calc(32px + (18 * ((100vw - 300px) / 250))), 50px);
    background-color: #A50cf8;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.5s;
    gap: 10px;
    cursor: pointer;
    transition: 0.5s;
    border-color: black;
    border-style: solid;
    border-width: 2px;
}
.customerReview h1 {
    font-size: clamp(20px, calc(20px + (10 * ((100vw - 300px) / 250))), 30px);;
    margin-top: 0px;
    margin-bottom: 0px;
    color: #1bfc54;
    -webkit-text-stroke: 1px black;
    white-space: nowrap;
    font-weight: bold;
    letter-spacing: 1px;
}
.customerReview:hover {
    background-color: #1bfc54;
}
.customerReview:hover h3{
    color: #A50cf8;
}

.customerReview h3 {
    font-size: clamp(16px, calc(16px + (14 * ((100vw - 300px) / 250))), 30px);;
    margin-top: 0px;
    margin-bottom: 0px;
    color: #1bfc54;
    -webkit-text-stroke: 1px black;
    white-space: nowrap;
    font-weight: bold;
    letter-spacing: 1px;
}

.nextReview:hover, .previousReview:hover {
    background-color: #1bfc54;
}
.nextReview:hover h1, .previousReview:hover h1 {
    color: #A50cf8;
}
.nextReview:hover .rightArrowDefault, .previousReview:hover .leftArrowDefault {
    opacity: 0;
    display: none;
}
.nextReview:hover .rightArrowHover, .previousReview:hover .leftArrowHover {
    opacity: 1;
    display: inline-block;
}

.rightArrowDefault, .leftArrowDefault {
    width: clamp(30px, calc(30px + (30 * ((100vw - 300px) / 250))), 60px);
    height: clamp(30px, calc(30px + (30 * ((100vw - 300px) / 250))), 60px);
    display: inline-block;
    transition: opacity 0.3s ease-in-out;
}

.rightArrowHover, .leftArrowHover {
    width: clamp(30px, calc(30px + (30 * ((100vw - 300px) / 250))), 60px);
    height: clamp(30px, calc(30px + (30 * ((100vw - 300px) / 250))), 60px);
    display: none;
    transition: opacity 0.3s ease-in-out;
}

@media screen and (max-width: 1200px) {
    .reviewsContainer {
        width: 97vw;
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Modal Form Specific Styling */
.reviewFormContainer {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    width: 100%;
    max-width: 600px; /* Limit form width */
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* Allow scrolling if form content is long */
}

.reviewFormContainer h1 {
    font-size: clamp(30px, 3vw, 45px);
    color: #A50cf8;
    -webkit-text-stroke: 1px black;
    margin-bottom: 20px;
    text-align: center;
}

.reviewFormContainer p {
    font-size: clamp(14px, 1.2vw, 18px);
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.reviewFormContainer form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between form groups */
}

.reviewFormContainer .form-group {
    display: flex;
    flex-direction: column;
}

.reviewFormContainer label {
    font-size: clamp(14px, 1.2vw, 16px);
    color: #555;
    margin-bottom: 5px;
    font-weight: bold;
}

.reviewFormContainer input[type="text"],
.reviewFormContainer textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: clamp(14px, 1.2vw, 16px);
    width: 100%; /* Ensure they take full width */
    box-sizing: border-box; /* Include padding in width */
    resize: vertical; /* Allow vertical resizing for textarea */
}

.reviewFormContainer input[type="text"]:focus,
.reviewFormContainer textarea:focus {
    border-color: #A50cf8;
    outline: none;
    box-shadow: 0 0 5px rgba(165, 12, 248, 0.5);
}

.submitReviewContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.submitReview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(100px, calc(100px + (100 * ((100vw - 300px) / 250))), 200px);
    height: clamp(40px, calc(40px + (10 * ((100vw - 300px) / 250))), 50px);
    background-color: #A50cf8;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.5s;
    gap: 10px;
    cursor: pointer;
    transition: 0.5s;
}
.submitReview h1 {
    font-family: "Chewy", system-ui;
    font-size: clamp(20px, calc(20px + (10 * ((100vw - 300px) / 250))), 30px);;
    margin-top: 0px;
    margin-bottom: 0px;
    color: #1bfc54;
    -webkit-text-stroke: 1px black;
    white-space: nowrap;
    font-weight: bold;
    letter-spacing: 1px;
}
.submitReview:hover {
    background-color: #1bfc54;
}
.submitReview:hover h1{
    color: #A50cf8;
}


/* Star Rating CSS - Corrected for Left-to-Right Fill */
.star-rating {
    display: flex;
    flex-direction: row-reverse; /* This is the key. It visually reverses the order. */
    justify-content: center;
    width: 100%;
}

.star-rating input[type="radio"] {
    display: none; /* Hide the actual radio buttons */
}

.star-rating label {
    font-size: clamp(24px, 2.5vw, 36px); /* Adjust star size */
    color: #ccc; /* Default grey color for unselected stars */
    cursor: pointer;
    padding: 0 3px; /* Space between stars */
    transition: color 0.2s;
    -webkit-text-stroke: 0.5px #666; /* Subtle outline for stars */
}

/* Highlight stars on hover and when selected */
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #1bfc54; /* Green color on hover */
    -webkit-text-stroke: 0.5px #000000;
}

/* Fill all stars "after" the checked one (which are visually to the left) */
.star-rating input[type="radio"]:checked ~ label {
    color: #1bfc54; /* Green color for checked stars */
    -webkit-text-stroke: 0.5px #000000;
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    .feedbackButton {
        padding: 8px 20px;
    }
    .feedbackButton h1 {
        font-size: 16px;
    }
    .feedbackButton .writeReviewIcon {
        height: 20px;
    }

    .reviewFormContainer {
        padding: 15px;
    }
    .reviewFormContainer h1 {
        font-size: clamp(12px, calc(12px + (16 * ((100vw - 300px) / 250))), 28px);;
    }
    .reviewFormContainer p {
        font-size: 14px;
    }
    .reviewFormContainer input[type="text"],
    .reviewFormContainer textarea {
        font-size: 14px;
    }
    .submitReviewButton {
        font-size: 16px;
        padding: 10px 20px;
    }
    .star-rating label {
        font-size: 28px;
    }
}


