:root {
    --bg-color: #ffffff;
    --text-color: #222222;
    --text-muted: #666666;
    
    /* NPS Colors matching the image exactly */
    --nps-detractor: #f4766e; /* 0-6 Red */
    --nps-passive: #fcbd35;   /* 7-8 Yellow */
    --nps-promoter: #43c965;  /* 9-10 Green */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f9fa;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
}

/* Top Black Header */
.main-header {
    width: 100%;
    background-color: #000000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
}

.header-logo {
    height: 32px;
    object-fit: contain;
}

/* Layout */
.nps-container {
    width: 100%;
    max-width: 650px;
    padding: 2rem;
    flex: 1;
    display: flex;
    align-items: center;
}

.nps-card {
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.03);
    padding: 3rem 2.5rem;
    width: 100%;
    transition: all 0.3s ease;
}

/* Container step logic */
.step-container {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#step-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#step-success.active {
    display: flex;
}

/* Header & Question */
.header-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Header removed, now using main-header */

.question {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
}

.question strong {
    font-weight: 700;
    color: #111;
}

/* Rating scale */
.rating-wrapper {
    width: 100%;
}

.rating-numbers {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.rating-btn {
    flex: 1;
    aspect-ratio: 1;
    max-width: 48px;
    max-height: 48px;
    border: none;
    border-radius: 8px; /* Rounded squares like the image */
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Colors from image */
.rating-btn.detractor { background-color: var(--nps-detractor); }
.rating-btn.passive { background-color: var(--nps-passive); }
.rating-btn.promoter { background-color: var(--nps-promoter); }

.rating-btn:hover {
    filter: brightness(0.95);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.rating-btn:active {
    transform: translateY(1px) scale(0.98);
}

.rating-btn.selected {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 3px solid #111;
}

/* Labels below rating */
.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.label-left, .label-right {
    display: flex;
    align-items: center;
}

/* Feedback Step */
.feedback-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 600;
}

.feedback-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feedback-form {
    width: 100%;
}

.input-group {
    margin-bottom: 1.5rem;
}

textarea {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s ease;
}

textarea:focus {
    outline: none;
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.text-input {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.text-input:focus {
    outline: none;
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    cursor: pointer;
}

.chip input {
    display: none;
}

.chip span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f1f1f1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s ease;
}

.chip:hover span {
    background: #e9e9e9;
    transform: translateY(-1px);
}

.chip input:checked + span {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.step-indicator {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-back, .btn-submit, .btn-home {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-back {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid #ddd;
}

.btn-back:hover {
    background: #f1f1f1;
    color: #333;
}

.btn-submit, .btn-home {
    background: #222;
    color: white;
}

.btn-submit:hover:not(:disabled), .btn-home:hover {
    background: #000;
}

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

/* Success step */
.success-icon {
    width: 64px;
    height: 64px;
    background: #e6f9ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--nps-promoter);
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-message {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
    .nps-container {
        padding: 1.5rem 1rem;
    }
    
    .nps-card {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }
    
    .rating-numbers {
        gap: 0.2rem;
        flex-wrap: nowrap;
    }
    
    .rating-btn {
        max-width: none;
        max-height: 44px;
        font-size: 0.95rem;
        border-radius: 8px;
        aspect-ratio: auto;
        padding: 0.5rem 0;
    }
    
    .question {
        font-size: 1.15rem;
    }
    
    .rating-labels {
        font-size: 0.65rem;
    }
}
