@import url('https://fonts.googleapis.com/css2?family=Adamina&family=Darker+Grotesque:wght@300..900&family=Poetsen+One&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Review Section */
.review-wrapper {
    font-family: "Poetsen One", sans-serif;
    font-weight: 400;
    font-style: normal;
    background: #f8f8f8;
    padding: 50px 20px 0px 20px;
}

.review-container {
    max-width: 1080px;
    margin: auto;
}

.review-container h2{
    font-family: "Poetsen One", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    color: rgb(20, 37, 74);
    font-size: 50px;
    line-height: 40px;
    margin-bottom: 15px;
}

.review-container .divider{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 55px;
}

.review-container .line{
    height: 3px;
    width: 150px;
    background-color: rgb(20, 37, 74);;
}

/* review form */
.review-form {
    font-family: 'Times New Roman', Times, serif;
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 40px 40px;
    border-radius: 30px 0px 30px 0px;
    border: 2px solid #14254A;
    box-shadow: 3px 3px #14254A;
}

.form-heading{
    margin: 0 0 40px 0;
    color: #02027F;
    font-size: 30px;
    text-align: center;
}

.name-field{
    width: 100%;
}

.comment-field{
    width: 100%;
}

.review-form input,
.review-form textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 16px;
    box-sizing: border-box;
    background-color: #E8E8E8;
    border-radius: 15px 0px 15px 0px;
    border: 1px solid #F3D861;
    outline: none;
    color: #000;
    resize: none;
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
}

.review-form input::placeholder,
.review-form textarea::placeholder {
    color: #000;
}

.rating{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.rate-us{
    font-size: 20px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    margin-left: 10px;
}

.stars {
    direction: rtl;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.stars input[type="radio"] {
    display: none;
}

.stars label {
    font-size: 32px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.stars input[type="radio"]:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
    color: gold;
}

.star {
    color: #fff;
    font-size: 18px;
    margin-right: 2px;
}

.star.filled {
    color: gold;
}

.review-form .submit-btn{
    width: 100%;
    text-align: center;
}

.review-form button {
    font-family: 'Times New Roman', Times, serif;
    background-color: #3A2258;
    color: #fff;
    padding: 16px;
    font-weight: 500;
    font-size: 18px;
    border: none;
    outline: none;
    border-radius: 5px;
    cursor: pointer;
    width: 175px;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .review-form{
        padding: 35px 25px;
    }

    .form-heading{
        font-size: 26px;
    }
}


/* Thank you Container */
.thank-you-container {
    display: none;
}

.thumbs-up {
    display: none;
    font-size: 80px;
    animation: thumbsUpAnimation 2s ease-in-out;
}

.thumbs-up img{
    height: 150px;
    width: 100%;
}

.thank-you-message {
    display: none;
    font-family: "Poetsen One", sans-serif;
    font-size: 24px;
    color: rgb(20, 37, 74);;
    margin-top: 20px;
}

@keyframes thumbsUpAnimation {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/*  Comment Container */
#commentsContainer{
    margin-top: 70px;
}

.comment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 70px;
}

.comment-box {
    position: relative;
    flex: 1 1 calc(25% - 20px);
    background: #A0D0E9;
    padding:20px;
    border-radius: 30px;
}

.comment-box::after{
    content: "";
    position: absolute;
    bottom: -30px;
    left: 30px;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    background-color: #A0D0E9;
    border-radius: 0px 0px 50px 0px;
    transform: rotate(15deg);
}

.tail {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #add8e6; /* Same as bubble */
    bottom: -15px;
    left: 30px;
    transform: rotate(45deg);
    border-bottom-right-radius: 20px;
  }

@media (max-width: 768px) {
    .review-wrapper{
        padding: 50px 20px 30px 20px;
    }

    .comment-row{
        margin-bottom: 30px;
    }
    .comment-box {
        flex: 1 1 calc(50% - 20px);
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .comment-box {
        flex: 1 1 100%;
    }
}

.user-name{
    color: #00017B;
    font-size: 17px;
    font-weight: 400;
}

.user-comment{
    margin: 0;
    margin-top: 10px;
}