:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg-color: #F8FAFC;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    /* NPS Colors */
    --nps-detractor-bg: #FEF2F2;
    --nps-detractor-border: #FECACA;
    --nps-detractor-text: #DC2626;
    
    --nps-passive-bg: #FFFBEB;
    --nps-passive-border: #FDE68A;
    --nps-passive-text: #D97706;
    
    --nps-promoter-bg: #F0FDF4;
    --nps-promoter-border: #BBF7D0;
    --nps-promoter-text: #16A34A;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* Background Visuals */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/jr8d9r/site/media/69cdde5aebd140.67668410.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

/* Main Layout */
.page-layout {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.survey-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 700px;
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Typography */
.survey-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.site-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.site-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.survey-page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #334155;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* Form & Questions */
.question-wrap {
    margin-bottom: 2rem;
    animation: fadeIn 0.4s ease forwards;
}

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

.question-text {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1E293B;
    line-height: 1.5;
}

.question-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.required-asterisk {
    color: var(--nps-detractor-text);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Standard Inputs: Radio/Checkbox */
.options-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.radio-label:hover {
    border-color: #CBD5E1;
    background: #fff;
}

.radio-label input[type="radio"],
.radio-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
}

/* NPS specific UI */
.nps-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    width: 100%;
}

.nps-btn {
    flex: 1 1 calc(9.09% - 0.5rem);
    min-width: 32px;
    max-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover and Active states based on NPS zones */
.nps-btn.detractor:hover, .nps-btn.detractor.active {
    background-color: var(--nps-detractor-bg);
    border-color: var(--nps-detractor-border);
    color: var(--nps-detractor-text);
}

.nps-btn.passive:hover, .nps-btn.passive.active {
    background-color: var(--nps-passive-bg);
    border-color: var(--nps-passive-border);
    color: var(--nps-passive-text);
}

.nps-btn.promoter:hover, .nps-btn.promoter.active {
    background-color: var(--nps-promoter-bg);
    border-color: var(--nps-promoter-border);
    color: var(--nps-promoter-text);
}

.nps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.nps-btn.active {
    transform: translateY(0);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05) inset;
}

.nps-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Rating Stars */
.rating-group {
    display: flex;
    gap: 0.5rem;
}
.rating-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #CBD5E1;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.rating-btn:hover { transform: scale(1.1); }
.rating-btn.active { color: #F59E0B; }

/* Scale UI */
.scale-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.scale-slider {
    flex: 1;
    accent-color: var(--primary);
    height: 6px;
}
.scale-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Personal Info Section */
.personal-info-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.personal-info-section .input-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Actions Area */
.survey-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.action-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.btn-primary:disabled {
    background-color: #94A3B8;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #F1F5F9;
    color: #475569;
}

.btn-secondary:hover {
    background-color: #E2E8F0;
    color: #1E293B;
}

/* Alerts and Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert.error {
    background-color: var(--nps-detractor-bg);
    color: var(--nps-detractor-text);
    border: 1px solid var(--nps-detractor-border);
}

.status-box, .success-box {
    text-align: center;
    padding: 3rem 1rem;
}

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

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

.success-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1E293B;
}

.success-box p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Powered By Badge Slot */
#wbx-powered-by-slot {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .survey-card {
        padding: 2rem 1.5rem;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .nps-btn {
        flex: 1 1 calc(16% - 0.5rem);
        height: 40px;
    }
    
    .survey-actions {
        flex-direction: column-reverse;
        gap: 1.5rem;
    }
    
    .action-right {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .btn-secondary {
        width: 100%;
    }
}