/* ========================================
   FEEDBACK MODAL — Rizzling
   ======================================== */

/* Overlay */
.feedback-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.feedback-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Box */
.feedback-modal-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 24px;
    padding: 40px;
    max-width: 520px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.feedback-modal-overlay.active .feedback-modal-box {
    transform: scale(1) translateY(0);
}

.feedback-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.feedback-modal-close:hover {
    background: rgba(255, 107, 107, 0.3);
}

/* Header */
.feedback-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    font-family: 'Space Grotesk', sans-serif;
}

.feedback-modal-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Star Rating */
.star-rating-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    display: block;
}

.star-rating-group {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: transform 0.15s ease, filter 0.15s ease;
    filter: grayscale(1) opacity(0.45);
    color: #FFD700;
}

.star-btn:hover,
.star-btn.active {
    filter: grayscale(0) opacity(1);
    transform: scale(1.2);
}


/* Form Groups */
.feedback-form-group {
    margin-bottom: 20px;
}

.feedback-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.feedback-form-input,
.feedback-form-select,
.feedback-form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.feedback-form-input:focus,
.feedback-form-select:focus,
.feedback-form-textarea:focus {
    outline: none;
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.06);
}

.feedback-form-input::placeholder,
.feedback-form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.feedback-form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.feedback-form-select option {
    background: #1a1a2e;
    color: white;
}

.feedback-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.feedback-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #FF6B6B, #FF4D8F);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

.feedback-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.feedback-submit-btn:active {
    transform: translateY(0);
}

.feedback-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Success State */
.feedback-success-state {
    text-align: center;
    padding: 20px 0;
    display: none;
}

.feedback-success-state.active {
    display: block;
}

.feedback-success-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: bounce-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounce-in {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.feedback-success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    font-family: 'Space Grotesk', sans-serif;
}

.feedback-success-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Trigger Button (in nav) */
.feedback-nav-btn {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 77, 143, 0.15));
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #FF6B6B;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feedback-nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25), rgba(255, 77, 143, 0.25));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

/* Mobile feedback nav link */
.feedback-mobile-link {
    color: #FF6B6B !important;
    font-weight: 700 !important;
}

/* Error text */
.feedback-error-text {
    color: #FF6B6B;
    font-size: 0.82rem;
    margin-top: 6px;
    display: none;
}

.feedback-error-text.visible {
    display: block;
}

/* Scrollbar for modal */
.feedback-modal-box::-webkit-scrollbar {
    width: 6px;
}

.feedback-modal-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.feedback-modal-box::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.4);
    border-radius: 3px;
}

/* ========================================
   MOOD SELECTOR
   ======================================== */
.mood-selector-section {
    padding: 40px 20px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mood-selector-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary, #555);
    margin-bottom: 16px;
}

.mood-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mood-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    color: var(--color-text, #1a1a2e);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: 'Inter', sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

.mood-pill:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.4);
    color: #FF4D8F;
    transform: translateY(-2px);
}

.mood-pill.active {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 77, 143, 0.15));
    border-color: #FF6B6B;
    color: #FF4D8F;
    box-shadow: 0 0 16px rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
}

/* Dark background override (for pages with dark bg) */
.dark-bg .mood-pill,
[data-theme="dark"] .mood-pill {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

.mood-pill-emoji {
    font-size: 1.1rem;
}

.mood-hint {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-secondary, #888);
}

@media (max-width: 500px) {
    .mood-pill {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .feedback-modal-box {
        padding: 28px 20px;
    }

    .feedback-modal-title {
        font-size: 1.4rem;
    }
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    padding: 40px 20px 60px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-text, #1a1a2e);
}

.testimonials-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary, #666);
    margin-bottom: 32px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    text-align: left;
}

.testimonial-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 14px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.82rem;
    font-weight: 700;
    color: #FF6B6B;
}

.testimonial-feature {
    font-size: 0.78rem;
    color: #999;
    margin-top: 2px;
}

.testimonials-empty {
    color: var(--text-secondary, #999);
    font-size: 0.9rem;
    padding: 40px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}