/* EliteSky Perfumes Review Styling */

/* Review Tab Panel */
#review-panel {
    padding: 30px 0;
    font-family: 'Montserrat', sans-serif;
}

/* Review Form */
.review-form {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 30px;
    background-color: #0a0a0a;
    border-radius: 4px;
}

.review-form .form-title {
    color: #b99158;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 600;
}

.review-form .product-name {
    text-align: left;
    margin-bottom: 25px;
    color: #ffffff;
}

.review-form .form-label {
    display: block;
    margin: 15px 0 8px;
    color: #b99158;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
}

.review-form .input-field,
.review-form .textarea-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
}

.review-form .textarea-field {
    min-height: 120px;
    resize: vertical;
}

.review-form .submit-btn {
    display: block;
    width: 100%;
    margin: 25px auto 0;
    padding: 12px 20px;
    background-color: #b99158;
    color: #000;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-form .submit-btn:hover {
    background-color: #c9a227;
}

/* Star Rating */
.stars {
    display: flex;
    margin: 10px 0 20px;
    font-size: 30px;
}

.stars .radio {
    position: absolute;
    opacity: 0;
}

.stars .star {
    color: #c0c0c0;
    cursor: pointer;
    font-size: 30px;
    margin-right: 5px;
    transition: color 0.2s ease;
}

.stars .radio:checked~.star,
.stars .radio:checked+.star {
    color: #b99158;
}

.stars .star:hover,
.stars .star:hover ~ .star {
    color: #b99158;
}

.review-section .review-form .stars .star.active {
    color: #b99158;
}

/* Submitted Reviews */
.submitted-reviews {
    margin-top: 50px;
    border-top: 1px solid #333;
    padding-top: 30px;
}

.submitted-reviews .submitted-title {
    color: #b99158;
    font-size: 20px;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 600;
}

.review {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.review:last-child {
    border-bottom: none;
}

.review-name {
    margin-bottom: 5px;
    color: #fff;
}

.review-stars {
    margin-bottom: 10px;
}

.review-stars .star {
    color: #c0c0c0;
    font-size: 18px;
}

.review-stars .filled {
    color: #b99158;
}

.review-text {
    color: #aaa;
    line-height: 1.6;
}

/* Magento Review Component Overrides */
.block.review-list {
    background-color: #111111;
    border: 1px solid #b99158;
    padding: 20px;
    margin-bottom: 30px;
}

.block.review-list .block-title strong {
    color: #b99158;
    font-size: 20px;
    text-transform: uppercase;
}

.review-control-vote label:before {
    color: #c0c0c0;
}

.review-control-vote label:hover:before,
.review-control-vote label:hover~label:before {
    color: #b99158;
}

.review-control-vote .rating-5:before,
.review-control-vote .rating-4:before,
.review-control-vote .rating-3:before,
.review-control-vote .rating-2:before,
.review-control-vote .rating-1:before {
    color: #b99158;
}

.review-ratings .rating-label {
    color: #b99158;
}

.review-ratings .rating-result {
    width: 120px;
}

.review-ratings .rating-result:before {
    color: #c0c0c0;
}

.review-ratings .rating-result>span:before {
    color: #b99158;
}

.review-item {
    border-bottom: 1px solid #222;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.review-item:last-child {
    border-bottom: none;
}

.review-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.review-content {
    color: #aaa;
    margin: 15px 0;
    line-height: 1.6;
}

.review-details {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 12px;
}

.review-details-label {
    color: #999;
}

.review-details-value {
    color: #b99158;
}

/* Form validation */
.mage-error {
    color: #ff5252;
    font-size: 12px;
    margin-top: 5px;
}

input.mage-error,
textarea.mage-error {
    border-color: #ff5252;
}

/* Message for logged out users */
.message.info.notlogged {
    background-color: #1a1a1a;
    padding: 15px;
    border-left: 3px solid #d4af37;
    color: #fff;
}

.message.info.notlogged a {
    color: #d4af37;
    text-decoration: none;
}

.message.info.notlogged a:hover {
    text-decoration: underline;
}

/* No reviews message */
.no-reviews {
    text-align: center;
    padding: 30px 20px;
    background-color: #111111;
    border: 1px solid #222;
    border-radius: 4px;
    margin: 20px 0;
}

.no-reviews p {
    color: #aaa;
    font-size: 16px;
    font-style: italic;
    margin: 0;
}

/* Responsive styles */
@media (max-width: 767px) {
    .review-form {
        padding: 20px 15px;
    }

    .stars {
        font-size: 24px;
    }

    .review-details {
        flex-direction: column;
    }

    .review-details p {
        margin-bottom: 5px;
    }
}