/**
 * Review Page Styles
 * Styling for the write-review page template
 */

.write-review-page-wrapper {
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Product Info Section */
.review-product-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.review-product-image {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.review-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-product-details h2 {
    font-size: 16px;
    margin: 0 0 5px;
    color: #777;
}

.review-product-details h3 {
    font-size: 20px;
    margin: 0;
    color: #333;
}

/* Product Selection (when no product is pre-selected) */
.no-product-selected {
    text-align: center;
    margin-bottom: 30px;
}

.no-product-selected h1 {
    margin-bottom: 20px;
    font-size: 28px;
}

.product-selection {
    max-width: 400px;
    margin: 0 auto;
}

.product-selection p {
    margin-bottom: 15px;
}

.product-selection select {
    width: 100%;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 16px;
    background-color: #fff;
    height: 45px;
}

/* Review Form Container */
#write-review-form-container {
    padding: 30px;
    border: 4px solid #000;
    border-radius: 0;
    box-shadow: 6px 6px 0px 0px rgba(0,0,0,0.8);
    background-color: #fff;
}

#write-review-form-container:not(.active) {
    display: none;
}

/* Form Styles */
.review-form .form-row {
    margin-bottom: 25px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 16px;
}

.review-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Rating Stars */
.review-rating-input {
    display: flex;
    margin-bottom: 10px;
}

.review-rating-input .rating-star {
    font-size: 35px;
    color: #ddd;
    margin-right: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.review-rating-input .rating-star:hover,
.review-rating-input .rating-star.filled {
    color: #ff69b4;
}

/* Image Upload Area */
.review-image-upload {
    position: relative;
    border: 2px dashed #000;
    border-radius: 0;
    background-color: white;
    transition: background-color 0.3s;
}

.review-image-upload:hover {
    background-color: #f9f9f9;
}

.review-image-upload.highlight {
    background-color: #f0f7ff;
    border-color: #3897ff;
}

.upload-label {
    display: block;
    padding: 30px;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-instructions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #999;
}

.upload-instructions p {
    margin: 5px 0;
    color: #555;
}

.upload-details {
    font-size: 14px;
    color: #999;
}

#review-images {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Image Previews */
.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-previews.has-images {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-image:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Verification Checkbox */
.verification {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.checkbox-label span {
    font-size: 14px;
    color: #555;
}

/* Submit Button */
.submit-review-btn {
    background-color: #ff69b4;
    color: #fff;
    border: 2px solid #000;
    box-shadow: 3px 3px 0px 0px rgba(0,0,0,0.8);
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    border-radius: 0;
    width: 100%;
}

.submit-review-btn:hover {
    background-color: #e5509e;
}

/* Form Errors */
.form-errors {
    margin-top: 20px;
    padding: 15px;
    background-color: #ffecec;
    border: 1px solid #f5aca6;
    color: #e74c3c;
    border-radius: 4px;
}

/* Success Message */
#review-success {
    text-align: center;
    padding: 30px;
}

.review-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
}

.review-success-message h3 {
    font-size: 24px;
    margin: 0 0 10px;
}

.review-success-message p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.review-actions {
    display: flex;
    gap: 15px;
}

.return-to-product,
.continue-shopping {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.return-to-product {
    background-color: #ff69b4;
    color: #fff;
    border: 2px solid #000;
    box-shadow: 3px 3px 0px 0px rgba(0,0,0,0.8);
}

.continue-shopping {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.return-to-product:hover {
    background-color: #e5509e;
}

.continue-shopping:hover {
    background-color: #eee;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .write-review-page-wrapper {
        padding: 20px 0;
    }
    
    #write-review-form-container {
        padding: 20px;
    }
    
    .review-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .return-to-product,
    .continue-shopping {
        width: 100%;
        text-align: center;
    }
    
    .review-rating-input .rating-star {
        font-size: 30px;
    }
} 