@charset "UTF-8";

.rating {
    border: none;
    float: left;
}

.rating > input {
    display: none;
}

.rating > label {
    cursor: pointer;
    float: right;
}

.rating > label svg {
    fill: #90A0A3;
    transition: fill 0.2s ease;
}

.rating:not(:checked) > label:hover svg,
.rating:not(:checked) > label:hover ~ label svg {
    fill: #FF8C38;
}

.rating > input:checked ~ label svg {
    fill: #FF8C38;
}

.rating > input:checked + label:hover svg,
.rating > input:checked ~ label:hover svg,
.rating > label:hover ~ input:checked ~ label svg,
.rating > input:checked ~ label:hover ~ label svg {
    fill: #FECE31;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
    overflow-x: hidden;
}

.reviews-container > h1 {
    width: 100%;
    text-align: center;
    margin-top: -5px;
}

.review-card {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    min-height: 200px;
}

.review-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.review-card .card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    font-size: 1.3rem;
    color: #333;
}

.review-card small {
    font-size: 1rem;
    color: #888;
    margin-top: 1rem;
    display: block;
}

.reviews-container .rating {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.reviews-container .btn-submit {
    width: 100%;
    padding: 10px;
    background: #FF8C38;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 20px;
}

.reviews-container .btn-submit:hover:not(:disabled) { background: #e55a2b; }

.reviews-container .btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}


.reviews-container .review-form-section {
    position: sticky;
    top: 20px;
}

.reviews-container .review-form-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    box-sizing: border-box;
}

.reviews-container .review-form-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.reviews-container .review-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    line-height: 1;
}


.reviews-container .review-text {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.reviews-container .review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-container .review-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FF8C38;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.reviews-container .review-author-info {
    flex: 1;
}

.reviews-container .review-author-name {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 15px;
}

.reviews-container .review-author-date {
    color: #999;
    font-size: 13px;
    margin: 0;
}

.reviews-container .review-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.reviews-container .reviews-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.reviews-container .reviews-list {
    max-height: 500px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reviews-container .review-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reviews-container .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.reviews-container .form-control:focus {
    outline: none;
    border-color: #FF8C38;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.reviews-container .form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

@media (max-width: 992px) {
    .reviews-container .reviews-layout {
        grid-template-columns: 1fr;
    }

    .reviews-container .review-form-section {
        order: -1;
        position: static;
    }
}

.reviews-container .reviews-list {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    direction: rtl;
    padding-left: 10px;
}

.reviews-container .reviews-list > * {
    direction: ltr;
}

.reviews-container .reviews-list::-webkit-scrollbar {
    width: 5px;
}

.reviews-container .reviews-list::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 10px;
}

.reviews-container .reviews-list::-webkit-scrollbar-thumb {
    background: #FF8C38;
    border-radius: 10px;
}

.reviews-container .reviews-list::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

.reviews-container .reviews-list {
    scrollbar-width: thin;
    scrollbar-color: #FF8C38 #ffffff;
}
