
/* Review CTA Section Styles */

.review-cta-icon {
    margin-bottom: 20px;
    font-size: 28px;
    color: #ffd700;
    animation: starShine 2s ease-in-out infinite;
}

.review-cta-icon i {
    margin: 0 2px;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes starShine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.review-cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.review-cta-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto 30px;
    max-width: 600px;
    line-height: 1.6;
}

.review-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #667eea;
    padding: 10px 9px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.review-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.review-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.review-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.review-cta-btn .btn-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
}

.review-cta-btn .btn-text {
    position: relative;
    z-index: 1;
}

.review-cta-btn .btn-arrow {
    font-size: 14px;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
}

.review-cta-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.review-cta-note {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.review-cta-note i {
    font-size: 16px;
}

/* Alternative Style 1 - Outlined Box */
.review-cta-box.style-outline {
    background: #fff;
    border: 3px solid #667eea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.review-cta-box.style-outline .review-cta-title {
    color: #667eea;
}

.review-cta-box.style-outline .review-cta-text {
    color: #666;
}

.review-cta-box.style-outline .review-cta-note {
    color: #999;
}

.review-cta-box.style-outline .review-cta-btn {
    background: #667eea;
    color: #fff;
}

/* Alternative Style 2 - Dark Theme */
.review-cta-box.style-dark {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* Alternative Style 3 - Orange Theme */
.review-cta-box.style-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Responsive */
@media (max-width: 767px) {
    .review-cta-box {
        padding: 40px 25px;
    }
    
    .review-cta-title {
        font-size: 26px;
    }
    
    .review-cta-text {
        font-size: 15px;
    }
    
    .review-cta-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .review-cta-icon {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .review-cta-btn {
        gap: 8px;
        padding: 12px 24px;
    }
    
    .review-cta-btn .btn-icon {
        font-size: 16px;
    }
}

/* Modal Styles */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
}

.review-modal.active {
    display: block;
}

.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.review-modal-content {
    position: relative;
    max-width: 700px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 10000;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.review-modal-close:hover {
    background: #d32f2f;
    transform: rotate(90deg);
}

.review-modal-header {
    padding: 30px 40px 20px;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

.review-modal-header h3 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #222;
    font-weight: 700;
}

.review-modal-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.review-modal-body {
    padding: 30px 40px 40px;
}

/* Form Styles */
.review-form .form-group {
    margin-bottom: 22px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.review-form .required {
    color: #ff6b6b;
}

.review-form .form-control {
    width: 100%;
    padding: 13px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.review-form .form-control:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.review-form textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

/* Clickable Star Rating System */
.rating-input-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 25px;
    border-radius: 12px;
    border: 2px solid #dee2e6;
}

.rating-stars-clickable {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    font-size: 50px;
    cursor: pointer;
}

.star-clickable {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-clickable:hover {
    transform: scale(1.15);
}

.star-half,
.star-full {
    color: #ddd;
    transition: color 0.2s ease;
    display: inline-block;
}

.star-clickable.active .star-half,
.star-clickable.active .star-full {
    color: #ffa500;
    text-shadow: 0 2px 8px rgba(255, 165, 0, 0.5);
    animation: starBounce 0.3s ease;
}

.star-clickable.hover .star-half,
.star-clickable.hover .star-full {
    color: #ffcc80;
}

/* Half star styling */
.star-half {
    position: relative;
}

.star-half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ddd;
}

.star-clickable.active .star-half::before {
    color: #ffa500;
}

.star-clickable.hover .star-half::before {
    color: #ffcc80;
}

@keyframes starBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
}

.rating-number {
    font-size: 36px;
    font-weight: 700;
    color: #ff6b6b;
    line-height: 1;
}

.rating-text {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.rating-error {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
}

/* Alert Styles */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 15px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert i {
    margin-right: 10px;
}

.text-danger {
    color: #dc3545;
    font-size: 13px;
    display: block;
    margin-top: 6px;
}

.text-muted {
    color: #6c757d;
    font-size: 13px;
}

/* Button Styles */
.submit-review-btn {
    min-width: 200px;
    margin-top: 15px;
    padding: 15px 35px;
}

/* Responsive */
@media (max-width: 991px) {
    .review-cta-box {
        padding: 45px 30px;
    }
}

@media (max-width: 767px) {
    .review-modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .review-modal-header,
    .review-modal-body {
        padding: 25px 20px;
    }
    
    .review-modal-header h3 {
        font-size: 26px;
    }
    
    .review-cta-box {
        padding: 40px 20px;
        border-radius: 15px;
    }
    
    .review-cta-title {
        font-size: 28px;
    }
    
    .review-cta-subtitle {
        font-size: 15px;
    }
    
    .review-cta-button {
        padding: 15px 30px;
        font-size: 16px;
        gap: 10px;
    }
    
    .review-cta-stars {
        font-size: 28px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .rating-stars-display {
        font-size: 40px;
        gap: 6px;
    }
    
    .rating-stars-clickable {
        font-size: 42px;
        gap: 3px;
    }
    
    .rating-number {
        font-size: 30px;
    }
    
    .rating-text {
        font-size: 14px;
    }
    
    .review-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .review-cta-button {
        gap: 8px;
        padding: 14px 26px;
        font-size: 15px;
    }
    
    .review-btn-icon {
        font-size: 18px;
    }
    
    .rating-input {
        font-size: 32px;
        gap: 8px;
    }
    
    .rating-stars-clickable {
        font-size: 38px;
        gap: 2px;
        flex-wrap: wrap;
    }
    
    .rating-number {
        font-size: 28px;
    }
    
    .rating-text {
        font-size: 13px;
    }
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}