/* Review Form Widget Styles */
.review-form-widget {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: 0;
    overflow-x: hidden;
}

.review-form-container {
    background: #fff;
    border: 1px solid rgba(208, 208, 208, 1);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    overflow-x: hidden;
}
@media (max-width: 768px) {
    .review-form-container {
        padding: 30px !important;
    }
}
/* Positioning wrapper for the card button area */
.card_button {
    position: relative;
}

@media (max-width: 768px) {
    .card_button {
        margin-top: 24px !important;
        overflow-x: hidden;
    }
}

.review-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(208, 208, 208, 0.5);
}

.review-form-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: rgba(0, 49, 60, 1);
}

.review-form-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.review-form-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.review-form-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 49, 60, 1);
    margin: 0;
}

/* Star Rating Styles */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    align-items: center;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating .star {
    cursor: pointer;
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

.star-rating .star svg {
    width: 100%;
    height: 100%;
    fill: rgba(208, 208, 208, 1);
    transition: fill 0.2s ease;
}

.star-rating input[type="radio"]:checked ~ .star svg,
.star-rating .star:hover svg,
.star-rating input[type="radio"]:checked ~ .star:hover svg {
    fill: #FFD700;
}

.star-rating .star:hover ~ .star svg {
    fill: #FFD700;
}

/* Detailed Ratings */
.detailed-ratings {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 140, 149, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 140, 149, 0.1);
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.rating-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 49, 60, 1);
    min-width: 120px;
}

/* Form Inputs */
.form-input {
    padding: 12px 16px;
    border: 1px solid rgba(208, 208, 208, 1);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: rgba(0, 140, 149, 1);
    box-shadow: 0 0 0 3px rgba(0, 140, 149, 0.1);
}

.form-textarea {
    padding: 12px 16px;
    border: 1px solid rgba(208, 208, 208, 1);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-textarea:focus {
    outline: none;
    border-color: rgba(0, 140, 149, 1);
    box-shadow: 0 0 0 3px rgba(0, 140, 149, 0.1);
}

/* Pros and Cons Container */
.pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pros-group .form-label {
    color: rgba(34, 139, 34, 1);
}

.cons-group .form-label {
    color: rgba(220, 53, 69, 1);
}

.pros-textarea {
    border-color: rgba(34, 139, 34, 0.3);
}

.pros-textarea:focus {
    border-color: rgba(34, 139, 34, 1);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

.cons-textarea {
    border-color: rgba(220, 53, 69, 0.3);
}

.cons-textarea:focus {
    border-color: rgba(220, 53, 69, 1);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid rgba(208, 208, 208, 0.5);
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel {
    background: rgba(111, 111, 111, 0.1);
    color: rgba(111, 111, 111, 1);
    border: 1px solid rgba(208, 208, 208, 1);
}

.btn-cancel:hover {
    background: rgba(111, 111, 111, 0.2);
}

.btn-submit {
    background: rgba(0, 140, 149, 1);
    color: white;
}

.btn-submit:hover {
    background: rgba(0, 120, 129, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 140, 149, 0.3);
}

/* Form Errors */
.form-error {
    color: rgba(220, 53, 69, 1);
    font-size: 12px;
    margin-top: 4px;
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.captcha-img {
    border: 1px solid rgba(208, 208, 208, 1);
    border-radius: 4px;
}

.captcha-refresh {
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(0, 140, 149, 0.1);
    color: rgba(0, 140, 149, 1);
    border: 1px solid rgba(0, 140, 149, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.captcha-refresh:hover {
    background: rgba(0, 140, 149, 0.2);
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.alert-success {
    background-color: rgba(34, 139, 34, 0.1);
    color: rgba(34, 139, 34, 1);
    border: 1px solid rgba(34, 139, 34, 0.3);
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: rgba(220, 53, 69, 1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* Animation for smooth appearance */
.review-form-widget {
    opacity: 0;
    transform: scaleY(0) translateY(-20px);
    transform-origin: top center;
    transition: all 0.3s ease-out;
}

.review-form-widget.show {
    opacity: 1;
    transform: scaleY(1) translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .review-form-container {
        padding: 16px;
        margin: 0;
        border-radius: 8px;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pros-cons-container {
        grid-template-columns: 1fr;
    }
    
    .rating-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rating-label {
        min-width: auto;
    }
    
    .detailed-ratings {
        padding: 12px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
} 
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .review-form-container {
            padding: 30px !important;
        }
    }
} 
@media (max-width: 768px) {
	.review-form-widget,
	.review-form-container {
		max-width: 100%;
		width: 100%;
		overflow-x: hidden;
	}
} 