:root {
    --color-green: #15803d;
    --color-green-hover: #166534;
    --color-cream: #fef3c7;
    --color-cream-dark: #fde68a;
    --color-plum: #6d28d9;
    --color-plum-light: rgba(109, 40, 217, 0.08);
    --color-slate: #475569;
    --color-slate-light: #94a3b8;
    --color-text: #1e293b;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --color-error: #dc2626;
    
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 10px 40px var(--color-plum-light), 0 2px 10px rgba(0,0,0,0.02);
    --radius-lg: 20px;
    --radius-md: 12px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.hidden {
    display: none !important;
}

/* Container */
.survey-container {
    width: 100%;
    max-width: 600px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
    margin: auto 0;
}

/* Progress Bar */
#progress-wrapper {
    width: 100%;
    height: 6px;
    background-color: #f1f5f9;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

#progress-bar {
    height: 100%;
    background-color: var(--color-green);
    width: 0%;
    transition: width 0.4s ease;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Step Layout */
.step {
    animation: fadeIn 0.4s ease forwards;
}

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

.hero-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--color-border);
}

.success-image {
    height: 280px;
    background-size: contain;
    background-color: var(--color-cream);
    border-bottom: none;
}

.step-content {
    padding: 2.5rem;
}

/* Typography */
.pill {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(21, 128, 61, 0.1);
    color: var(--color-green);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.question-meta {
    font-size: 0.85rem;
    color: var(--color-slate-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

p {
    color: var(--color-slate);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

p.help-text {
    font-size: 0.95rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.icon-header {
    width: 64px;
    height: 64px;
    background-color: rgba(109, 40, 217, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.privacy-notice {
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--color-slate);
    margin-bottom: 2rem;
}

.privacy-notice strong {
    color: var(--color-text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-green);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--color-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(21, 128, 61, 0.3);
}

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

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--color-slate);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: var(--color-text);
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.step-actions .btn-next,
.step-actions #btn-submit {
    margin-left: auto;
}

/* Question Types Styling */

/* eNPS (0-10) */
.nps-scale {
    margin-bottom: 1.5rem;
}
.nps-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.nps-label {
    position: relative;
    cursor: pointer;
    flex: 1 0 calc(18% - 0.5rem);
}
@media(min-width: 480px) {
    .nps-label { flex: 1; }
}
.nps-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.nps-label span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-weight: 500;
    color: var(--color-slate);
    transition: all 0.2s;
}
.nps-label:hover span {
    border-color: var(--color-plum);
    color: var(--color-plum);
}
.nps-label input:checked + span {
    background-color: var(--color-plum);
    border-color: var(--color-plum);
    color: white;
    box-shadow: 0 4px 10px rgba(109, 40, 217, 0.2);
}
.nps-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-slate-light);
}

/* Stacked Options (Agree/Disagree) */
.stacked-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.stacked-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--color-text);
}
.stacked-label:hover {
    background-color: #f8fafc;
    border-color: var(--color-plum);
}
.stacked-label input {
    position: absolute;
    opacity: 0;
}
.stacked-label .box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-slate-light);
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.stacked-label input:checked ~ .box {
    border-color: var(--color-plum);
}
.stacked-label input:checked ~ .box::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--color-plum);
    border-radius: 50%;
}
.stacked-label:has(input:checked) {
    border-color: var(--color-plum);
    background-color: rgba(109, 40, 217, 0.03);
}

/* Grid Options (Emoji Weather) */
.grid-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.grid-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}
.grid-label input {
    position: absolute;
    opacity: 0;
}
.grid-label .emoji {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    filter: grayscale(0.5);
    transition: all 0.2s;
}
.grid-label .text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-slate);
}
.grid-label:hover {
    border-color: var(--color-plum);
    background-color: #f8fafc;
}
.grid-label:hover .emoji {
    filter: grayscale(0);
    transform: scale(1.1);
}
.grid-label input:checked ~ .emoji {
    filter: grayscale(0);
    transform: scale(1.1);
}
.grid-label:has(input:checked) {
    border-color: var(--color-plum);
    background-color: rgba(109, 40, 217, 0.03);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.1);
}
.grid-label:has(input:checked) .text {
    color: var(--color-plum);
}

/* Forms */
textarea, input[type="text"], input[type="email"] {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: #f8fafc;
    color: var(--color-text);
    transition: all 0.2s;
    resize: vertical;
}
textarea:focus, input:focus {
    outline: none;
    border-color: var(--color-plum);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* Errors */
.error-msg {
    color: var(--color-error);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

#wbx-powered-by-slot {
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .step-content {
        padding: 1.5rem;
    }
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.25rem;
    }
}