/* ==========================================================================
   Feedback Page - Light Theme with Classic Professional Style
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Page Layout */
body.feedback-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

/* Subtle background pattern */
body.feedback-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse 80% 80% at 50% 0%, rgba(9, 122, 166, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Main Container */
.feedback-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    z-index: 1;
}

/* Feedback Card */
.feedback-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Header Section */
.feedback-header {
    padding: 32px 32px 28px;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
    position: relative;
}

.business-logo {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: #fff;
    transition: transform 0.2s ease;
}

.business-logo:hover {
    transform: scale(1.03);
}

.feedback-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
    letter-spacing: -0.01em;
}

.feedback-header p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 15px;
}

/* Body Section */
.feedback-body {
    padding: 28px 32px 32px;
}

/* Rating Selection */
.rating-question {
    text-align: center;
}

.rating-question h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 22px;
    color: var(--color-text-primary);
}

.star-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.star-btn {
    width: 52px;
    height: 52px;
    border: none;
    background: #f8fafc;
    border-radius: 14px;
    cursor: pointer;
    font-size: 28px;
    color: #cbd5e1;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
}

.star-btn:hover {
    color: #fbbf24;
    background: #fffbeb;
    border-color: #fcd34d;
}

.star-btn.active {
    color: #f59e0b;
    background: #fef3c7;
    border-color: #fbbf24;
}

.rating-label {
    margin-top: 14px;
    font-size: 14px;
    color: var(--color-text-secondary);
    height: 20px;
    font-weight: 500;
}

/* Form Base Styles */
.feedback-form {
    display: none;
}

.feedback-form.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Positive Flow */
.positive-flow {
    text-align: center;
}

/* AI Assistant Styles */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f0ff;
    color: #7c3aed;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.ai-badge.success {
    background: #ecfdf5;
    color: #059669;
}

.ai-badge i {
    font-size: 14px;
}

.ai-step {
    animation: fadeIn 0.3s ease;
}

.ai-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 8px 0;
}

.ai-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0 0 22px 0;
    line-height: 1.5;
}

/* Prompt Card */
.ai-prompt-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    text-align: left;
    margin-bottom: 12px;
}

.ai-prompt-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

/* Quick Select Chips */
.ai-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-chip {
    padding: 9px 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.ai-chip:hover {
    border-color: var(--color-primary-400);
    color: var(--color-primary-600);
    background: var(--color-primary-50);
}

.ai-chip.selected {
    background: var(--color-primary-500);
    border-color: var(--color-primary-500);
    color: #fff;
}

/* Form Controls */
.form-control {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--color-text-primary);
    font-size: 14px;
    transition: border-color 0.15s ease;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 2px rgba(9, 122, 166, 0.08);
}

.form-label {
    color: var(--color-text-primary);
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

/* AI Review Draft */
.ai-review-draft {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.ai-review-draft textarea {
    background: transparent;
    border: none;
    resize: none;
    color: var(--color-text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.ai-review-draft textarea:focus {
    box-shadow: none;
    outline: none;
}

.draft-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.char-count {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

/* Platform Selection */
.platform-select-section {
    text-align: left;
    margin-bottom: 12px;
}

.platform-options {
    display: flex;
    gap: 12px;
}

.platform-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.platform-option input[type="radio"] {
    display: none;
}

.platform-option:hover {
    border-color: var(--color-primary-400);
}

.platform-option.selected {
    border-color: var(--color-primary-500);
    background: var(--color-primary-50);
}

.platform-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 15px;
}

.platform-icon.google {
    background: #e8f0fe;
    color: #4285F4;
}

.platform-icon.facebook {
    background: #e7f3ff;
    color: #1877F2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
    background: var(--color-primary-500);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-600);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    background: #f3f4f6;
    color: var(--color-text-primary);
}

.btn-sm {
    padding: 9px 14px;
    font-size: 13px;
}

/* Negative Flow Styles */
#negativeFlow h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

#negativeFlow p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

#negativeFlow .btn-outline-secondary {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: var(--color-text-secondary);
    border-radius: 6px;
    font-size: 13px;
    padding: 8px 12px;
}

#negativeFlow .btn-outline-secondary:hover,
#negativeFlow .btn-outline-secondary.active {
    background: var(--color-primary-500);
    border-color: var(--color-primary-500);
    color: #fff;
}

#negativeFlow .form-group {
    text-align: left;
    margin-bottom: 16px;
}

/* Thank You Screen */
.thank-you {
    display: none;
    text-align: center;
    padding: 32px 0;
}

.thank-you.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: #10b981;
}

.thank-you h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.thank-you p {
    color: var(--color-text-secondary);
}

/* Footer */
.powered-by {
    text-align: center;
    padding: 16px 32px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: var(--color-text-tertiary);
    background: #fafafa;
}

.powered-by a {
    color: var(--color-primary-600);
    font-weight: 500;
    text-decoration: none;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* Platform Buttons (legacy) */
.platform-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: border-color 0.15s ease;
    text-decoration: none;
}

.platform-btn:hover {
    border-color: var(--color-primary-500);
}

/* Responsive Styles */
@media (max-width: 500px) {
    .feedback-container {
        padding: 16px;
    }

    .feedback-card {
        border-radius: 10px;
    }

    .feedback-header {
        padding: 28px 24px 24px;
    }

    .feedback-header h1 {
        font-size: 22px;
    }

    .business-logo {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .feedback-body {
        padding: 24px;
    }

    .star-btn {
        font-size: 30px;
        padding: 2px;
    }

    .ai-quick-chips {
        gap: 6px;
    }

    .ai-chip {
        padding: 7px 11px;
        font-size: 12px;
    }

    .platform-options {
        flex-direction: column;
        gap: 8px;
    }

    .ai-title {
        font-size: 17px;
    }
}

/* Form improvements */
.form-group.mb-4 .form-label {
    color: var(--color-text-primary);
}

.d-flex.flex-wrap.gap-2 {
    gap: 8px !important;
}

.btn.btn-sm.btn-outline-secondary {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: var(--color-text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.btn.btn-sm.btn-outline-secondary:hover,
.btn.btn-sm.btn-outline-secondary.active {
    background: var(--color-primary-500);
    border-color: var(--color-primary-500);
    color: #fff;
}