/* ============================================
   REVIEWS PAGE STYLES
   ============================================ */

/* Reviews Hero */
.reviews-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: calc(80px + var(--spacing-lg)) var(--spacing-md) var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.reviews-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: gradientShift 8s ease infinite;
}

.reviews-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.reviews-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    animation: slideInLeft 0.8s ease;
}

.reviews-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    animation: slideInLeft 0.8s ease 0.2s backwards;
}

.rating-summary {
    animation: slideInLeft 0.8s ease 0.4s backwards;
}

.stars-display {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.star {
    color: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.star.filled {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.star.half {
    background: linear-gradient(90deg, #ffd700 50%, rgba(255, 255, 255, 0.2) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Reviews Section */
.reviews-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.review-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 136, 0.1);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.reviewer-info {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--bg-dark);
}

.reviewer-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.reviewer-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.review-stars {
    font-size: 1.25rem;
}

.review-body {
    flex-grow: 1;
    margin-bottom: var(--spacing-sm);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

.review-date {
    color: var(--text-muted);
}

.review-project {
    color: var(--primary);
    font-weight: 600;
}

/* Submit Review Section */
.submit-review-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f1433 100%);
}

.submit-review-container {
    max-width: 800px;
    margin: 0 auto;
}

.submit-review-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.review-form {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 136, 0.2);
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

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

.star-label {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.star-rating-input input[type="radio"]:checked ~ .star-label,
.star-rating-input .star-label:hover,
.star-rating-input .star-label:hover ~ .star-label {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Checkbox Group */
.checkbox-group {
    background: rgba(0, 255, 136, 0.05);
    padding: var(--spacing-sm);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.checkbox-label {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Reviews CTA */
.reviews-cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.reviews-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.reviews-cta .cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.reviews-cta h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
}

.reviews-cta p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-title {
        font-size: 2.5rem;
    }

    .reviews-subtitle {
        font-size: 1.25rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .reviews-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .stars-display {
        font-size: 2rem;
    }

    .star-label {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .reviews-title {
        font-size: 2rem;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .reviewer-name {
        font-size: 1rem;
    }

    .review-stars {
        font-size: 1rem;
    }
}

/* ============================================
   ENHANCED SUBMIT REVIEW FORM STYLES
   ============================================ */

.submit-review-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f1433 100%);
}

.submit-review-container {
    max-width: 900px;
    margin: 0 auto;
}

.submit-review-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.review-form {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.review-form::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.03) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

.review-form .form-group {
    position: relative;
    z-index: 1;
}

/* Enhanced Form Inputs */
.review-form input[type="text"],
.review-form input[type="email"],
.review-form select,
.review-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all var(--transition-normal);
    width: 100%;
}

.review-form input[type="text"]:hover,
.review-form input[type="email"]:hover,
.review-form select:hover,
.review-form textarea:hover {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.review-form input[type="text"]:focus,
.review-form input[type="email"]:focus,
.review-form select:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.review-form input::placeholder,
.review-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Enhanced Labels */
.review-form label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    display: block;
}

.required {
    color: var(--secondary);
    margin-left: 4px;
    font-weight: 900;
}

/* Field Notes */
.field-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Enhanced Select Dropdown */
.review-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2300ff88' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.review-form select option {
    background-color: #1a1f4d !important;
    color: #ffffff !important;
    padding: 1rem;
}

/* Enhanced Textarea */
.review-form textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

/* Enhanced Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: var(--spacing-sm) 0;
}

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

.star-label {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all var(--transition-fast);
    filter: drop-shadow(0 0 0 transparent);
}

.star-label:hover {
    transform: scale(1.15);
    color: rgba(255, 215, 0, 0.5);
}

.star-rating-input input[type="radio"]:checked ~ .star-label,
.star-rating-input .star-label:hover,
.star-rating-input .star-label:hover ~ .star-label {
    color: #ffd700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    transform: scale(1.1);
}

.star-rating-input input[type="radio"]:checked ~ .star-label {
    animation: starPulse 0.3s ease;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.25);
    }
}

/* Enhanced Checkbox Group */
.checkbox-group {
    background: rgba(0, 255, 136, 0.05);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: var(--transition-normal);
}

.checkbox-group:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
}

.checkbox-label {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary);
    border-radius: 4px;
}

.checkbox-label span {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Enhanced Submit Button */
.review-form .submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

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

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

.review-form .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.4);
}

.review-form .submit-btn:active {
    transform: translateY(-1px);
}

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

.review-form .submit-btn .btn-text,
.review-form .submit-btn .btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    font-size: 1.5rem;
    transition: var(--transition-normal);
}

.review-form .submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Form Status Messages */
.form-status {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: center;
    display: none;
    font-size: 1rem;
    font-weight: 600;
    animation: slideUp 0.3s ease;
}

.form-status.success {
    display: block;
    background: rgba(0, 255, 136, 0.15);
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(255, 0, 85, 0.15);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.2);
}

/* Form Group Spacing */
.review-form .form-group {
    margin-bottom: var(--spacing-md);
}

.review-form .form-group:last-of-type {
    margin-bottom: var(--spacing-sm);
}

/* Focus Glow Effect */
.review-form input[type="text"]:focus,
.review-form input[type="email"]:focus,
.review-form select:focus,
.review-form textarea:focus {
    animation: inputGlow 1.5s ease infinite;
}

@keyframes inputGlow {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.2), 0 0 20px rgba(0, 255, 136, 0.1);
    }
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .review-form {
        padding: var(--spacing-lg);
    }
    
    .star-label {
        font-size: 2.5rem;
    }
    
    .review-form .submit-btn {
        font-size: 1.125rem;
        padding: 1.125rem 2rem;
    }
    
    .review-form input[type="text"],
    .review-form input[type="email"],
    .review-form select,
    .review-form textarea {
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 480px) {
    .review-form {
        padding: var(--spacing-md);
    }
    
    .star-label {
        font-size: 2rem;
        gap: 0.5rem;
    }
    
    .star-rating-input {
        gap: 0.5rem;
    }
    
    .review-form .submit-btn {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .submit-review-intro {
        font-size: 1rem;
    }
}