/* ═══════════════════════════════════════════════════════════
   REVIEW CTA BUTTON
   ═══════════════════════════════════════════════════════════ */
.review-cta-wrapper {
    text-align: center;
    margin-top: 60px;
}

.review-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.review-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.review-cta-btn:active {
    transform: translateY(0);
}

.review-cta-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.review-cta-subtitle {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   REVIEW MODAL
   ═══════════════════════════════════════════════════════════ */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.review-modal.active {
    opacity: 1;
    visibility: visible;
}

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.review-modal-container {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.review-modal.active .review-modal-container {
    transform: scale(1);
}

@media (max-width: 768px) {
    .review-modal-container {
        padding: 30px 24px;
        max-height: 95vh;
    }
}

.review-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.review-modal-close:hover {
    background: var(--color-border);
    color: var(--color-text);
    transform: rotate(90deg);
}

/* Modal Header */
.review-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.review-modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.review-modal-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   STAR RATING
   ═══════════════════════════════════════════════════════════ */
.review-stars-display {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--color-bg);
    border-radius: 16px;
}

.review-stars-interactive {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.review-star {
    width: 48px;
    height: 48px;
    fill: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-star:hover {
    transform: scale(1.15);
}

.review-star.filled {
    fill: #FFD700;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.review-star.selected {
    animation: starPulse 0.3s ease;
}

@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.review-stars-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════
   REVIEW FORM
   ═══════════════════════════════════════════════════════════ */
.review-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .review-form-row {
        grid-template-columns: 1fr;
    }
}

.review-form-group {
    margin-bottom: 20px;
}

.review-form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.review-form-group input,
.review-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.review-form-group input:focus,
.review-form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.review-form-group input.error,
.review-form-group textarea.error {
    border-color: #ef4444;
}

.review-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.review-form-error {
    display: block;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
}

.review-form-hint {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Submit Button */
.review-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.review-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.review-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.review-submit-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.spinner circle {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    stroke-linecap: round;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════
   SUCCESS & ERROR MESSAGES
   ═══════════════════════════════════════════════════════════ */
.review-success,
.review-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.review-success svg {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.review-success h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.review-success p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
}

.review-error svg {
    color: #ef4444;
    margin-bottom: 16px;
}

.review-error p {
    font-size: 1rem;
    color: var(--color-text);
}