/* QRSA Post Schema Plugin Styles */

/* Main Containers */
.qrsa-review-section {
    margin: 2em 0;
    padding-top: 2em;
    border-top: 2px solid #eee;
}

.qrsa-rating-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 2em;
    text-align: center;
}

.qrsa-rating-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    font-weight: 600;
}

.qrsa-review-prompt {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}

.qrsa-aggregate-rating {
    margin-bottom: 25px;
    font-size: 1.1em;
    color: #555;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    display: inline-block;
}

/* Form Styles */
#qrsa-rating-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrsa-form-fields {
    margin-bottom: 15px;
    width: 100%;
    max-width: 500px;
}

.qrsa-form-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 15px;
    width: 100%;
}

.qrsa-form-row label {
    font-weight: bold;
    margin-bottom: 5px;
}

.qrsa-form-row input[type="text"],
.qrsa-form-row input[type="email"],
.qrsa-form-row textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Star Styles */
.qrsa-stars {
    cursor: pointer;
    color: #ccc;
    font-size: 32px;
    margin-bottom: 10px;
}

.qrsa-stars .star {
    display: inline-block;
    transition: color 0.2s;
}

.qrsa-stars:hover .star,
.qrsa-stars .star.selected,
.qrsa-stars .star.hovered {
    color: #ffb400; /* Gold color */
}

.qrsa-stars .star:hover ~ .star {
    color: #ccc;
}

/* reCAPTCHA & Submit */
#qrsa-recaptcha-container {
    margin: 0 auto 15px auto;
}

#qrsa-submit-rating {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
    margin-top: 10px;
}

#qrsa-submit-rating:hover {
    background-color: #005a87;
}

#qrsa-submit-rating:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Messages */
#qrsa-rating-message,
.qrsa-already-rated {
    margin-top: 15px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
}

#qrsa-rating-message.success,
.qrsa-already-rated {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

#qrsa-rating-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}


/* Submitted Reviews List */
.qrsa-reviews-list {
    margin-top: 2em;
}

.qrsa-reviews-list h3 {
    font-size: 1.4em;
    margin-bottom: 1em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5em;
}

.qrsa-reviews-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qrsa-review-item {
    padding: 1.5em;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1.5em;
    background: #fff;
}

.qrsa-review-author {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.5em;
}

.qrsa-review-meta {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 1em;
    color: #666;
    font-size: 0.9em;
}

.qrsa-review-stars .star {
    font-size: 18px;
    color: #ccc;
}

.qrsa-review-stars .star.filled {
    color: #ffb400;
}

.qrsa-review-comment {
    line-height: 1.6;
}