/* ============================================
   FIAUSSE Feedback — Styles
   ============================================ */

/* ---------- Variables ---------- */
:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --primary-dark: #5A4BD1;
    --accent: #00CEC9;
    --accent-light: #55EFC4;
    --bg: #0F0E17;
    --bg-card: #1A1A2E;
    --bg-input: #16213E;
    --text: #FFFFFE;
    --text-muted: #A7A9BE;
    --text-dim: #72757E;
    --error: #FF6B6B;
    --success: #00B894;
    --warning: #FDCB6E;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Background Shapes ---------- */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ---------- Container ---------- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---------- Header ---------- */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(15, 14, 23, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-tagline {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
}

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stat-icon {
    font-size: 1.4rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translate(3px, -3px);
}

/* ---------- Form Section ---------- */
.form-section {
    padding: 40px 0 80px;
}

.form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.required {
    color: var(--error);
    font-weight: 600;
}

/* ---------- Progress Bar ---------- */
.progress-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

/* ---------- Form Steps ---------- */
.form-step {
    display: none;
    animation: fadeSlideIn 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.step-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ---------- Form Groups ---------- */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text);
}

.field-hint {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.input-wrapper input::placeholder {
    color: var(--text-dim);
}

.input-wrapper input.input-error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.textarea-wrapper {
    position: relative;
}

.textarea-wrapper textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    resize: vertical;
    min-height: 80px;
}

.textarea-wrapper textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.textarea-wrapper textarea::placeholder {
    color: var(--text-dim);
}

.textarea-wrapper textarea.input-error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.char-count {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.error-msg {
    display: block;
    font-size: 0.82rem;
    color: var(--error);
    margin-top: 6px;
    min-height: 0;
    transition: var(--transition);
}

/* ---------- Star Rating ---------- */
.star-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
    color: var(--text-dim);
}

.star:hover {
    transform: scale(1.2);
}

.star.active svg {
    fill: var(--warning);
    stroke: var(--warning);
}

.star.hover-preview svg {
    fill: rgba(253, 203, 110, 0.5);
    stroke: var(--warning);
}

.star-label {
    margin-left: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- NPS Scale ---------- */
.nps-scale {
    margin-top: 4px;
}

.nps-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nps-btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.nps-btn:hover {
    border-color: var(--primary-light);
    color: var(--text);
    transform: translateY(-2px);
}

.nps-btn.active.detractor {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--error);
    color: var(--error);
}

.nps-btn.active.passive {
    background: rgba(253, 203, 110, 0.2);
    border-color: var(--warning);
    color: var(--warning);
}

.nps-btn.active.promoter {
    background: rgba(0, 184, 148, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.nps-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ---------- Buttons ---------- */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-prev {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.btn-next {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, var(--success), #00a885);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3);
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 184, 148, 0.4);
}

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

.btn-submit .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-submit.loading .spinner {
    display: block;
}

.btn-submit.loading svg {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Success Message ---------- */
.success-message {
    text-align: center;
    padding: 60px 20px;
    animation: fadeSlideIn 0.5s ease forwards;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    color: var(--success);
    margin-bottom: 24px;
    animation: successPop 0.6s ease forwards;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-message h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-note {
    margin-top: 8px;
    font-size: 0.78rem !important;
    color: var(--text-dim);
    opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .hero-stats {
        gap: 20px;
    }

    .form-wrapper {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .nps-buttons {
        gap: 4px;
    }

    .nps-btn {
        width: 38px;
        height: 38px;
        font-size: 0.82rem;
    }

    .form-navigation {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .form-navigation .btn {
        width: 100%;
        justify-content: center;
    }

    .star svg {
        width: 26px;
        height: 26px;
    }

    .star-label {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
}

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

    .step-header {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
}
