
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh !important;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-container {
    max-width: 800px;
    width: 90%;
    max-height: auto;
    min-height: 45vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal .img-block {
    width: 100%;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal .img-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content {
    margin: auto;
    padding: 20px;
    width: 100%;
    max-width: 50%;
    height: 100%;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.close {
    color: #aaa;
    font-size: 24px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.password-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.password-container input {
    width: 100%;
    margin-bottom: 0;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    color: #007BFF;
    font-size: 16px;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.toggle-password:hover {
    color: #0056b3;
}

.toggle-password:focus {
    outline: none;
}

.login-form .login-btn {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form .login-btn:hover {
    background-color: #0056b3;
}

.warning {
    color: #d9534f;
    background-color: #f8d7da;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.forgot-password-link,
.signup-link {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password-link:hover,
.signup-link:hover {
    color: #0056b3;
}

.forgot-password-text,
.signup-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#review-modal .modal-content {
    background: #FDF2B4;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    border-top: 10px solid #FFC107;
    margin: 0 auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.4s ease-out;
    max-height: 700px;
}

#review-modal h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #000;
}

.error-message {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
    font-size: 14px;
    text-align: left;
    animation: fadeIn 0.3s ease-in;
}

#review-modal .close {
    color: #333;
    font-size: 28px;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#review-modal .close:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.1);
}

#review-modal p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #000;
}

#review-modal .name-input {
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

#review-modal .name-input:focus {
    border-color: #FFC107;
    box-shadow: 0 0 5px #FFC107;
    outline: none;
}

#review-modal .star-rating {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#review-modal .star {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    margin: 0 5px;
    transition: color 0.3s ease;
}

#review-modal .star.selected,
#review-modal .star:hover,
#review-modal .star:hover~.star {
    color: #FFC107;
}

#review-modal textarea {
    width: 100%;
    min-height: 120px;
    margin-bottom: 20px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

textarea:focus {
    border-color: #FFC107;
    box-shadow: 0 0 5px #FFC107;
    outline: none;
}

#review-modal .modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 15px;
}

#review-modal .submit-button,
#review-modal .cancel-button {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    flex: 1;
    transition: all 0.3s ease;
}

#review-modal .submit-button {
    background-color: #000;
    color: #fff;
    transition: background-color 0.3s;
}

#review-modal .submit-button:hover {
    background-color: #333;
}

#review-modal .cancel-button {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    transition: background-color 0.3s, color 0.3s;
}

#review-modal .cancel-button:hover {
    background-color: #000;
    color: #fff;
}

.reviews {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    flex: 0 0 auto;
    background: #5a5e50;
    width: 350px;
    height: 200px;
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}



.profile-img {
    width: 65px;
    height: 65px;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 50%;
    padding: 3px;
}

.profile-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment p {
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 40px;
}

.user-name h3 {
    color: rgb(252, 252, 252);
    font-weight: bold;
    font-size: 1.4rem;
    margin-top: 10px;
}

.star-rating {
    text-align: center;
    margin-top: 5px;
}

.star {
    font-size: 18px;
    color: gold;
    margin: 0 2px;
}


.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.user-content {
    display: none;
    padding: 30px 0;
    position: absolute;
    top: 100%;
}

.user-dropdown-content {
    width: 250px;
    padding: 10px;
    background-color: black;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1000;
}

.user-dropdown-content a {
    text-align: left !important;
    color: white;
    padding: 10px;
    text-decoration: none;
    display: block;
    border-radius: 5px;
}

.user-dropdown-content a:hover {
    background-color: #ddd;
}

.user-dropdown:hover > .user-content {
    display: block;
}

/* Responsive styles for login modal */
@media screen and (max-width: 992px) {
    .modal-container {
        max-width: 90%;
        flex-direction: column;
    }
    
    .modal .img-block {
        max-width: 100%;
        height: auto;
        padding: 20px 20px 0;
    }
    
    .modal .img-block img {
        max-width: 200px;
        height: auto;
    }
    
    .modal-content {
        max-width: 100%;
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .modal-container {
        min-height: auto;
    }
    
    .modal .img-block img {
        max-width: 150px;
    }
    
    .login-form label {
        font-size: 14px;
    }
    
    .login-form input {
        padding: 8px;
        font-size: 14px;
    }
    
    .login-form .login-btn {
        padding: 8px;
        font-size: 14px;
    }
    
    .forgot-password-text,
    .signup-text {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .modal-container {
        width: 95%;
    }
    
    .modal .img-block {
        padding: 15px 15px 0;
    }
    
    .modal .img-block img {
        max-width: 120px;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .close {
        top: 5px;
        right: 5px;
        font-size: 20px;
    }
    
    .login-form .login-btn {
        margin-top: 5px;
    }
}