/**
 * Lead Quiz SaaS - Frontend Styles
 * Material Design 3 inspired quiz design
 */

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

:root {
    --lqs-primary: #5B5BD6;
    --lqs-primary-hover: #4A4AC4;
    --lqs-success: #2E9E6E;
    --lqs-error: #D93B3B;
    --lqs-warning: #D4890C;
    --lqs-text: #1B1B1F;
    --lqs-text-muted: #5F5E68;
    --lqs-border: #E0DEE9;
    --lqs-bg: #F7F5F9;
    --lqs-white: #FFFFFF;
    --lqs-radius: 16px;
    --lqs-shadow: 0 2px 6px 2px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .1);
    --lqs-font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Container */
.lqs-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--lqs-font);
    color: var(--lqs-text);
    -webkit-font-smoothing: antialiased;
}

/* Quiz Card */
.lqs-card {
    background: var(--lqs-white);
    border: none;
    border-radius: var(--lqs-radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--lqs-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--lqs-font);
}

.lqs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.lqs-card.lqs-card-active {
    border-color: var(--lqs-primary);
    border-width: 2px;
}

/* Hero Image */
.lqs-hero {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--lqs-radius);
    margin-bottom: 20px;
}

/* Question */
.lqs-question-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
    font-family: var(--lqs-font);
    letter-spacing: -0.01em;
}

.lqs-question-number {
    color: var(--lqs-primary);
    margin-right: 8px;
}

/* Radio Options */
.lqs-radio {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin: 8px 0;
    background: var(--lqs-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--lqs-font);
}

.lqs-radio:hover {
    background: #EEF2FF;
    border-color: #C7D2FE;
}

.lqs-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: var(--lqs-primary);
}

.lqs-radio.selected {
    background: #EEF2FF;
    border-color: var(--lqs-primary);
}

/* Form Inputs */
.lqs-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--lqs-border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.lqs-input:focus {
    outline: none;
    border-color: var(--lqs-primary);
    box-shadow: 0 0 0 2px rgba(91, 91, 214, 0.2);
}

.lqs-input.lqs-input-error {
    border-color: var(--lqs-error);
}

.lqs-input-group {
    margin-bottom: 16px;
}

.lqs-input-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--lqs-text-muted);
}

.lqs-input-hint {
    font-size: 13px;
    color: var(--lqs-text-muted);
    margin-top: 4px;
}

/* Phone Input with Country Code */
.lqs-phone-input {
    display: flex;
    gap: 8px;
}

.lqs-phone-input select {
    width: 120px;
    padding: 12px;
    border: 2px solid var(--lqs-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--lqs-white);
}

.lqs-phone-input input {
    flex: 1;
}

/* Consent Checkbox */
.lqs-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--lqs-bg);
    border-radius: 8px;
    margin: 16px 0;
}

.lqs-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--lqs-primary);
}

.lqs-consent span {
    font-size: 14px;
    color: var(--lqs-text-muted);
    line-height: 1.5;
}

/* Button */
.lqs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--lqs-font);
    color: var(--lqs-white);
    background: var(--lqs-primary);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    letter-spacing: 0.02em;
}

.lqs-btn:hover:not(:disabled) {
    background: var(--lqs-primary-hover);
    transform: translateY(-1px);
}

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

.lqs-btn-loading {
    position: relative;
    color: transparent;
}

.lqs-btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--lqs-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: lqs-spin 0.8s linear infinite;
}

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

/* Messages */
.lqs-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

.lqs-message-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.lqs-message-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.lqs-message-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

/* Thank You Page */
.lqs-thank-you {
    text-align: center;
    padding: 40px 20px;
}

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

.lqs-thank-you h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.lqs-thank-you p {
    color: var(--lqs-text-muted);
    margin-bottom: 20px;
}

/* Progress Bar */
.lqs-progress {
    height: 6px;
    background: var(--lqs-border);
    border-radius: 3px;
    margin-bottom: 24px;
    overflow: hidden;
}

.lqs-progress-bar {
    height: 100%;
    background: var(--lqs-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Dashboard Styles */
.lqs-dashboard {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.lqs-dashboard-card {
    background: var(--lqs-white);
    border: 1px solid var(--lqs-border);
    border-radius: var(--lqs-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.lqs-dashboard-card h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.lqs-link-box {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.lqs-link-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--lqs-border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--lqs-bg);
}

.lqs-link-box button {
    padding: 10px 16px;
    background: var(--lqs-primary);
    color: var(--lqs-white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

/* Leads Table */
.lqs-leads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lqs-leads-table th,
.lqs-leads-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--lqs-border);
}

.lqs-leads-table th {
    background: var(--lqs-bg);
    font-weight: 600;
}

.lqs-leads-table tr:hover {
    background: var(--lqs-bg);
}

/* Responsive */
@media (max-width: 640px) {
    .lqs-container {
        padding: 0px;
    }

    .lqs-card {
        padding: 16px;
    }

    .lqs-question-label {
        font-size: 16px;
    }

    .lqs-phone-input {
        flex-direction: column;
    }

    .lqs-phone-input select {
        width: 100%;
    }
}

/* ========================================
   PLAN & USAGE STYLES
   ======================================== */

/* Plan Card in Dashboard */
.lqs-plan-card {
    background: var(--lqs-primary);
    color: var(--lqs-white);
    border: none;
}

.lqs-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lqs-plan-header h3 {
    color: var(--lqs-white);
    margin: 0;
}

.lqs-plan-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lqs-plan-free {
    background: rgba(255, 255, 255, 0.2);
}

.lqs-plan-basic {
    background: #10B981;
}

.lqs-plan-pro {
    background: #F59E0B;
}

.lqs-plan-enterprise {
    background: #EF4444;
}

/* Usage Stats */
.lqs-usage-stats {
    margin-bottom: 20px;
}

.lqs-usage-item {
    margin-bottom: 16px;
}

.lqs-usage-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.lqs-usage-numbers {
    font-weight: 600;
}

.lqs-progress-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.lqs-progress-bar-fill {
    height: 100%;
    background: var(--lqs-white);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.lqs-progress-bar-fill.lqs-warning {
    background: #FCD34D;
}

.lqs-usage-warning {
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

.lqs-btn-upgrade {
    background: var(--lqs-white);
    color: #764ba2;
    font-weight: 600;
}

.lqs-btn-upgrade:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
}

.lqs-btn-disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
}

/* ========================================
   PLANS PAGE STYLES
   ======================================== */

.lqs-plans-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0px;
}

.lqs-plans-header {
    text-align: center;
    margin-bottom: 40px;
}

.lqs-plans-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--lqs-text);
}

.lqs-plans-header p {
    font-size: 18px;
    color: var(--lqs-text-muted);
}

.lqs-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.lqs-plan-box {
    background: var(--lqs-white);
    border: none;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 1px 3px 1px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .1);
}

.lqs-plan-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px 3px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .1);
}

.lqs-plan-popular {
    border: 2px solid var(--lqs-primary);
    transform: scale(1.02);
}

.lqs-plan-popular:hover {
    transform: scale(1.02) translateY(-4px);
}

.lqs-plan-current {
    border-color: var(--lqs-success);
    background: #F0FDF4;
}

.lqs-plan-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lqs-primary);
    color: var(--lqs-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.lqs-plan-box .lqs-plan-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--lqs-text);
    margin-bottom: 16px;
}

.lqs-plan-price {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.lqs-price-currency {
    font-size: 20px;
    color: var(--lqs-text-muted);
}

.lqs-price-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--lqs-text);
    line-height: 1;
}

.lqs-price-period {
    font-size: 16px;
    color: var(--lqs-text-muted);
}

.lqs-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.lqs-plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--lqs-border);
    font-size: 14px;
    color: var(--lqs-text);
}

.lqs-plan-features li:last-child {
    border-bottom: none;
}

.lqs-feature-highlight {
    color: var(--lqs-primary) !important;
}

.lqs-feature-included {
    color: var(--lqs-success) !important;
}

.lqs-feature-excluded {
    color: var(--lqs-text-muted) !important;
    text-decoration: line-through;
}

.lqs-plan-box .lqs-btn {
    width: 100%;
}

.lqs-btn-primary {
    background: var(--lqs-primary);
}

.lqs-btn-current {
    background: var(--lqs-success);
    cursor: default;
}

.lqs-btn-current:hover {
    transform: none;
}

.lqs-plans-footer {
    text-align: center;
    color: var(--lqs-text-muted);
}

.lqs-plans-footer p {
    margin: 8px 0;
    font-size: 14px;
}

/* Subscription Management */
.lqs-subscription-manage {
    text-align: center;
    padding: 24px;
    margin-bottom: 24px;
    background: var(--lqs-bg);
    border-radius: var(--lqs-radius);
}

.lqs-subscription-manage .lqs-btn {
    width: auto;
    display: inline-flex;
}

.lqs-subscription-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--lqs-text-muted);
}

/* Responsive Plans */
@media (max-width: 768px) {
    .lqs-plans-grid {
        grid-template-columns: 1fr;
    }

    .lqs-plan-popular {
        transform: none;
    }

    .lqs-plan-popular:hover {
        transform: translateY(-4px);
    }

    .lqs-plans-header h2 {
        font-size: 24px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .lqs-container.lqs-dark-mode {
        --lqs-text: #F9FAFB;
        --lqs-text-muted: #9CA3AF;
        --lqs-border: #374151;
        --lqs-bg: #1F2937;
        --lqs-white: #111827;
    }
}

/* ========================================
   QUIZ VISUAL STYLES
   ======================================== */

/* ---- STYLE: MODERN (default) ---- */
.lqs-quiz-style-modern {
    background: var(--lqs-primary);
    min-height: 100vh;
    padding: 40px 20px;
}

.lqs-quiz-style-modern .lqs-quiz-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.lqs-quiz-style-modern h1 {
    color: white;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: var(--lqs-font);
}

.lqs-quiz-style-modern .lqs-hero {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.lqs-quiz-style-modern .lqs-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: lqs-fade-up 0.4s ease forwards;
    opacity: 0;
}

.lqs-quiz-style-modern .lqs-card:nth-child(1) {
    animation-delay: 0.1s;
}

.lqs-quiz-style-modern .lqs-card:nth-child(2) {
    animation-delay: 0.2s;
}

.lqs-quiz-style-modern .lqs-card:nth-child(3) {
    animation-delay: 0.3s;
}

.lqs-quiz-style-modern .lqs-card:nth-child(4) {
    animation-delay: 0.4s;
}

.lqs-quiz-style-modern .lqs-card:nth-child(5) {
    animation-delay: 0.5s;
}

.lqs-quiz-style-modern .lqs-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes lqs-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.lqs-quiz-style-modern .lqs-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--lqs-primary);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
}

.lqs-quiz-style-modern .lqs-radio {
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    background: white;
    transition: all 0.3s ease;
}

.lqs-quiz-style-modern .lqs-radio:hover {
    border-color: var(--lqs-primary);
    background: var(--lqs-bg);
    transform: translateX(4px);
}

.lqs-quiz-style-modern .lqs-radio.selected {
    border-color: var(--lqs-primary);
    background: var(--lqs-bg);
}

.lqs-quiz-style-modern .lqs-btn {
    background: var(--lqs-primary);
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 17px;
    box-shadow: var(--lqs-shadow);
    transition: all 0.3s ease;
}

.lqs-quiz-style-modern .lqs-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.lqs-quiz-style-modern .lqs-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-bottom: 32px;
}

.lqs-quiz-style-modern .lqs-progress-bar {
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ---- STYLE: CLASSIC ---- */
.lqs-quiz-style-classic {
    background: #F8F7F4;
    min-height: 100vh;
    padding: 40px 20px;
}

.lqs-quiz-style-classic .lqs-quiz-wrapper {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.lqs-quiz-style-classic h1 {
    color: #2D3748;
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: Arial, Helvetica, sans-serif;
}

.lqs-quiz-style-classic .lqs-quiz-subtitle {
    text-align: center;
    color: #718096;
    font-size: 15px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #E2E8F0;
}

.lqs-quiz-style-classic .lqs-hero {
    border-radius: 4px;
    border: 1px solid #E2E8F0;
}

.lqs-quiz-style-classic .lqs-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid #E2E8F0;
    border-radius: 0;
    padding: 24px 0;
    box-shadow: none;
    margin-bottom: 0;
}

.lqs-quiz-style-classic .lqs-card:last-of-type {
    border-bottom: none;
}

.lqs-quiz-style-classic .lqs-card:hover {
    transform: none;
    box-shadow: none;
}

.lqs-quiz-style-classic .lqs-question-label {
    font-size: 17px;
    color: #2D3748;
}

.lqs-quiz-style-classic .lqs-question-number {
    color: #805AD5;
    font-weight: 700;
}

.lqs-quiz-style-classic .lqs-radio {
    background: #FAFAF9;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 14px 16px;
}

.lqs-quiz-style-classic .lqs-radio:hover {
    background: #F0EBFF;
    border-color: #805AD5;
}

.lqs-quiz-style-classic .lqs-radio.selected {
    background: #F0EBFF;
    border-color: #805AD5;
    border-width: 2px;
}

.lqs-quiz-style-classic .lqs-btn {
    background: #805AD5;
    border-radius: 4px;
    padding: 14px 28px;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.5px;
}

.lqs-quiz-style-classic .lqs-btn:hover:not(:disabled) {
    background: #6B46C1;
}

.lqs-quiz-style-classic .lqs-progress {
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    margin-bottom: 32px;
}

.lqs-quiz-style-classic .lqs-progress-bar {
    background: #805AD5;
}

.lqs-quiz-style-classic .lqs-consent {
    background: #FAFAF9;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
}

/* ---- STYLE: MINIMAL ---- */
.lqs-quiz-style-minimal {
    background: white;
    min-height: 100vh;
    padding: 60px 20px;
}

.lqs-quiz-style-minimal .lqs-quiz-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

.lqs-quiz-style-minimal h1 {
    color: #111;
    text-align: left;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    font-family: Arial, Helvetica, sans-serif;
}

.lqs-quiz-style-minimal .lqs-quiz-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 48px;
}

.lqs-quiz-style-minimal .lqs-hero {
    border-radius: 8px;
    margin-bottom: 48px;
}

.lqs-quiz-style-minimal .lqs-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 40px 0;
    box-shadow: none;
    margin-bottom: 0;
}

.lqs-quiz-style-minimal .lqs-card:hover {
    transform: none;
    box-shadow: none;
}

.lqs-quiz-style-minimal .lqs-question-label {
    font-size: 18px;
    font-weight: 500;
    color: #111;
    margin-bottom: 20px;
}

.lqs-quiz-style-minimal .lqs-question-number {
    color: #111;
    font-weight: 800;
}

.lqs-quiz-style-minimal .lqs-radio {
    background: transparent;
    border: 1px solid #DDD;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 10px 0;
}

.lqs-quiz-style-minimal .lqs-radio:hover {
    background: #F9F9F9;
    border-color: #111;
}

.lqs-quiz-style-minimal .lqs-radio.selected {
    background: #111;
    border-color: #111;
    color: white;
}

.lqs-quiz-style-minimal .lqs-radio.selected input[type="radio"] {
    accent-color: white;
}

.lqs-quiz-style-minimal .lqs-input {
    border: 1px solid #DDD;
    border-radius: 8px;
    padding: 16px;
}

.lqs-quiz-style-minimal .lqs-input:focus {
    border-color: #111;
    box-shadow: none;
}

.lqs-quiz-style-minimal .lqs-btn {
    background: #111;
    border-radius: 8px;
    padding: 18px 32px;
    font-weight: 600;
}

.lqs-quiz-style-minimal .lqs-btn:hover:not(:disabled) {
    background: #333;
}

.lqs-quiz-style-minimal .lqs-progress {
    height: 2px;
    background: #EEE;
    border-radius: 1px;
    margin-bottom: 48px;
}

.lqs-quiz-style-minimal .lqs-progress-bar {
    background: #111;
}

.lqs-quiz-style-minimal .lqs-consent {
    background: #F9F9F9;
    border: none;
    border-radius: 8px;
}

.lqs-quiz-style-minimal .lqs-phone-input select {
    border: 1px solid #DDD;
}

/* Style selector in editor */
.lqs-style-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.lqs-style-option {
    border: 2px solid var(--lqs-border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.lqs-style-option:hover {
    border-color: var(--lqs-primary);
}

.lqs-style-option.active {
    border-color: var(--lqs-primary);
    background: var(--lqs-primary-light, #EEF2FF);
}

.lqs-style-option input {
    display: none;
}

.lqs-style-preview {
    height: 80px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.lqs-style-preview-modern {
    background: var(--lqs-primary);
    color: var(--lqs-white);
}

.lqs-style-preview-classic {
    background: #F8F7F4;
    border: 1px solid #E2E8F0;
}

.lqs-style-preview-minimal {
    background: white;
    border: 1px solid #DDD;
}

.lqs-style-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.lqs-style-desc {
    font-size: 12px;
    color: var(--lqs-text-muted);
}

@media (max-width: 600px) {
    .lqs-style-selector {
        grid-template-columns: 1fr;
    }

    .lqs-quiz-style-modern,
    .lqs-quiz-style-classic,
    .lqs-quiz-style-minimal {
        padding: 20px 16px;
    }

    .lqs-quiz-style-classic .lqs-quiz-wrapper {
        padding: 24px;
    }
}

/* ========================================
   WIZARD LAYOUT
   ======================================== */

/* Wizard Steps Indicator */
.lqs-wizard-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    font-family: Arial, Helvetica, sans-serif;
}

.lqs-wizard-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.lqs-wizard-step::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.lqs-wizard-step:last-child::after {
    display: none;
}

.lqs-wizard-step-number {
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.lqs-wizard-step.active {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lqs-wizard-step.active .lqs-wizard-step-number {
    color: var(--lqs-primary, #4F46E5);
}

.lqs-wizard-step.completed {
    background: rgba(16, 185, 129, 0.9);
}

.lqs-wizard-step.completed .lqs-wizard-step-number {
    color: white;
}

.lqs-wizard-step.completed::after {
    background: rgba(16, 185, 129, 0.5);
}

/* Wizard Navigation */
.lqs-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--lqs-border, #E5E7EB);
}

.lqs-btn-secondary {
    background: transparent;
    color: var(--lqs-text, #E5E7EB);
    border: 2px solid var(--lqs-border, #E5E7EB);
}

.lqs-btn-secondary:hover:not(:disabled) {
    background: var(--lqs-bg, #F9FAFB);
    border-color: var(--lqs-text-muted, #6B7280);
    transform: none;
}

/* Hidden state for wizard questions */
.lqs-wizard-hidden {
    display: none !important;
}

/* Wizard animation */
.lqs-layout-wizard .lqs-question-card,
.lqs-layout-wizard .lqs-contact-card {
    animation: lqs-slide-in 0.4s ease forwards;
}

@keyframes lqs-slide-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Style-specific wizard adjustments */
.lqs-quiz-style-classic .lqs-wizard-steps {
    margin-bottom: 24px;
}

.lqs-quiz-style-classic .lqs-wizard-step {
    background: #E2E8F0;
    border: 2px solid transparent;
}

.lqs-quiz-style-classic .lqs-wizard-step::after {
    background: #E2E8F0;
}

.lqs-quiz-style-classic .lqs-wizard-step-number {
    color: #718096;
}

.lqs-quiz-style-classic .lqs-wizard-step.active {
    background: white;
    border-color: #805AD5;
}

.lqs-quiz-style-classic .lqs-wizard-step.active .lqs-wizard-step-number {
    color: #805AD5;
}

.lqs-quiz-style-classic .lqs-wizard-step.completed {
    background: #805AD5;
    border-color: #805AD5;
}

.lqs-quiz-style-classic .lqs-wizard-nav {
    border-top-color: #E2E8F0;
}

.lqs-quiz-style-classic .lqs-btn-secondary {
    border-color: #E2E8F0;
    color: white;
}

.lqs-quiz-style-minimal .lqs-wizard-steps {
    gap: 16px;
    margin-bottom: 48px;
}

.lqs-quiz-style-minimal .lqs-wizard-step {
    width: 32px;
    height: 32px;
    background: #EEE;
    border: none;
}

.lqs-quiz-style-minimal .lqs-wizard-step::after {
    width: 16px;
    background: #EEE;
}

.lqs-quiz-style-minimal .lqs-wizard-step-number {
    color: #999;
    font-size: 13px;
}

.lqs-quiz-style-minimal .lqs-wizard-step.active {
    background: #111;
    transform: none;
    box-shadow: none;
}

.lqs-quiz-style-minimal .lqs-wizard-step.active .lqs-wizard-step-number {
    color: white;
}

.lqs-quiz-style-minimal .lqs-wizard-step.completed {
    background: #111;
}

.lqs-quiz-style-minimal .lqs-wizard-nav {
    border-top: none;
    padding-top: 32px;
}

.lqs-quiz-style-minimal .lqs-btn-secondary {
    border-color: #DDD;
    color: #111;
}

.lqs-quiz-style-minimal .lqs-btn-secondary:hover:not(:disabled) {
    background: #F9F9F9;
    border-color: #111;
}

/* Layout selector in editor */
.lqs-layout-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.lqs-layout-option {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 2px solid var(--lqs-border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.lqs-layout-option:hover {
    border-color: var(--lqs-primary);
}

.lqs-layout-option.active {
    border-color: var(--lqs-primary);
    background: var(--lqs-primary-light, #EEF2FF);
}

.lqs-layout-option input {
    display: none;
}

.lqs-layout-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lqs-bg);
    border-radius: 12px;
}

.lqs-layout-info {
    flex: 1;
}

.lqs-layout-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.lqs-layout-desc {
    font-size: 13px;
    color: var(--lqs-text-muted);
}

@media (max-width: 600px) {
    .lqs-layout-selector {
        grid-template-columns: 1fr;
    }

    .lqs-wizard-steps {
        gap: 4px;
    }

    .lqs-wizard-step {
        width: 36px;
        height: 36px;
    }

    .lqs-wizard-nav {
        flex-direction: column;
        gap: 12px;
    }

    .lqs-wizard-nav .lqs-btn {
        width: 100%;
    }
}

/* Shake animation for validation */
@keyframes lqs-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}