/* ============================================
    REVIEW MODAL STYLES - WordPress Theme
    ============================================ */

.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg, 32px) var(--spacing-md, 24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.review-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-modal {
    background-color: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 586px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg, 32px);
    border-bottom: 1px solid #e0e0e0;
}

.review-modal-header h2 {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.review-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    color: #333;
}

.review-modal-close:hover {
    background-color: #f5f5f5;
}

.review-form {
    padding: var(--spacing-lg, 32px);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg, 32px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm, 16px);
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.form-input {
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 50px;
    width: 100%;
    box-sizing: border-box;
}

.form-textarea {
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 128px;
    width: 100%;
    resize: vertical;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Star Picker */
.star-picker {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stars-container {
    display: flex;
    gap: 12px;
}

.star {
    font-size: 32px;
    color: #b0b0b0;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    user-select: none;
}

.star:hover {
    color: #f0ad4e;
    transform: scale(1.1);
}

.star.active {
    color: #f0ad4e;
}

.star i {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.rating-hint {
    font-size: 14px;
    color: #666;
    min-height: 20px;
    margin-top: 4px;
}

/* Image Upload */
.image-upload-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-upload-image {
    background-color: #fff;
    border: 2px dashed #e0e0e0;
    padding: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-upload-image:hover {
    border-color: #3498db;
    color: #3498db;
}

.btn-upload-image i {
    font-size: 32px;
}

/* Image Preview */
.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    display: inline-flex;
    margin-top: 8px;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.remove-image:hover {
    background-color: rgba(220, 38, 38, 0.9);
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-text {
    font-size: 16px;
}

/* Submit Button */
.btn-submit-review {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit-review:hover:not(:disabled) {
    background-color: #2980b9;
}

.btn-submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .review-modal {
        max-width: 646px;
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .review-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .review-modal {
        max-width: 100%;
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
    }

    .review-modal-header {
        padding: 24px;
    }

    .review-modal-header h2 {
        font-size: 28px;
    }

    .review-form {
        padding: 24px;
    }

    .form-input,
    .form-textarea {
        padding: 12px 16px;
    }

    .btn-upload-image {
        padding: 24px;
    }

    /* Star picker mobile adjustments */
    .stars-container {
        gap: 8px;
    }

    .star {
        width: 36px;
        height: 36px;
    }

    .star i {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
}
