/*********************************************/
/* Wagner Meters Quiz V2 - Modern Design */
/*********************************************/

:root {
    /* Brand Colors */
    --wagner-blue: #0066CC;
    --wagner-blue-dark: #0052A3;
    --wagner-blue-light: #E3F2FD;
    --wagner-orange: #FF6600;
    --wagner-orange-dark: #E55A00;
    --wagner-orange-light: #FFF4E6;

    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Semantic Colors */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}


/* Background Gradient */
.quiz-wrapper {
    position: relative;
    overflow: hidden;
	margin-top:40px;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--wagner-blue-light) 0%, var(--gray-50) 50%, var(--wagner-orange-light) 100%);
    opacity: 0.5;
    z-index: -1;
}

/* Container */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl);
    position: relative;
    z-index: 1;
}

/* Loading State */
.quiz-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gray-200);
    border-top-color: var(--wagner-blue);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

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

/* Header */
.quiz-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.header-content h2 {
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--wagner-blue) 0%, var(--wagner-blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.quiz-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    font-weight: 400;
}

/* Animations */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-in-delayed {
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

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

/* Progress Section */
.progress-section {
    margin-bottom: var(--space-xl);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.progress-track {
    flex: 1;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wagner-blue) 0%, var(--wagner-blue-dark) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-steps {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 500;
    color: var(--gray-600);
}

.current-step {
    font-size: 16px;
    font-weight: 700;
    color: var(--wagner-blue);
}

.total-steps {
    font-size: 16px;
}

/* Question Card */
.question-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    animation: slideIn 0.5s ease;
}

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

.question-header {
    position: relative;
    margin-bottom: var(--space-xl);
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
    padding-right: 50px;
}

/* Info Tooltip */
.info-tooltip-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--gray-100);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-tooltip-btn:hover {
    background-color: var(--wagner-blue);
    border-color: var(--wagner-blue);
    transform: scale(1.1);
}

.info-tooltip-btn:hover .info-icon {
    color: var(--white);
}

.info-icon {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.info-tooltip {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space);
    max-width: 300px;
    box-shadow: var(--shadow-xl);
    z-index: 10;
    animation: tooltipIn 0.3s ease;
}

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

/* Answers */
.answers-container {
    display: flex;
    flex-direction: column;
    gap: var(--space);
}

.answer-option {
    padding: var(--space-lg);
    background-color: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    overflow: hidden;
}

.answer-option:hover {
    background-color: var(--white);
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.answer-option.selected {
    background-color: var(--wagner-blue-light);
    border-color: var(--wagner-blue);
    color: var(--wagner-blue-dark);
    font-weight: 600;
}

.answer-option.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--wagner-blue);
}

/* Navigation */
.navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-2xl);
    min-height: 60px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space) var(--space-xl);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.nav-arrow {
    font-size: 18px;
    transition: transform var(--transition-base);
}

.back-btn {
    background-color: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.back-btn:hover:not(:disabled) {
    background-color: var(--gray-50);
    border-color: var(--gray-300);
}

.back-btn:hover .nav-arrow {
    transform: translateX(-3px);
}

.next-btn {
    background: linear-gradient(135deg, var(--wagner-orange) 0%, var(--wagner-orange-dark) 100%);
    color: var(--white);
    margin-left: auto;
    box-shadow: var(--shadow);
}

.next-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--wagner-orange-dark) 0%, var(--wagner-orange) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.next-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.next-btn:hover .nav-arrow {
    transform: translateX(3px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.nav-btn .nav-text {
    position: relative;
    z-index: 1;
}

/* Results Container */
.results-container {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.result-hero {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.result-hero h2 {
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--wagner-blue) 0%, var(--wagner-blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space);
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-card.compact {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
}

.product-image {
    width: 250px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: var(--space);
	align-self: flex-start;
}

.product-card.compact .product-image {
    width: 300px;
    margin: 0 auto var(--space);
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--wagner-blue);
    margin-bottom: var(--space-sm);
}

.product-price {
    font-size: 24px;
    font-weight: 600;
    color: var(--wagner-orange);
    margin-bottom: var(--space);
}

.product-description {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

.features-section h4,
.matched-features strong {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.product-features,
.feature-list-compact {
    list-style: none;
    padding: 0;
	margin-left: 10px;
}

.product-features li,
.feature-list-compact li {
    padding: var(--space-sm) 0;
    padding-left: 30px;
    position: relative;
	font-size:16px;
    color: var(--gray-600);
}

.product-features li{
	line-height:16px;
	margin:0;
}

.product-features li::before,
.feature-list-compact li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

/* CTA Buttons */
.cta-container {
    gap: var(--space);
    margin-top: var(--space-lg);
}

.cta-btn {
    padding: var(--space) var(--space-xl);
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, var(--wagner-orange) 0%, var(--wagner-orange-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--wagner-orange-dark) 0%, var(--wagner-orange) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


.cta-secondary {
    background: var(--white);
    color: var(--wagner-blue);
    border: 2px solid var(--wagner-blue);
}

.cta-secondary:hover {
    background: var(--wagner-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cta-btn span {
    position: relative;
    z-index: 1;
}

/* Comparison Table */
.comparison-section {
    margin-top: var(--space-2xl);
}

.comparison-section h3 {
    font-size: 30px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.comparison-table {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--wagner-blue) 0%, var(--wagner-blue-dark) 100%);
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.comparison-table th:first-child {
    border-top-left-radius: var(--radius);
}

.comparison-table th:last-child {
    border-top-right-radius: var(--radius);
}

.comparison-table th a {
    color: var(--white);
    text-decoration: none;
}

.comparison-table th a:hover {
    text-decoration: underline;
}

.comparison-table tr:hover {
    background-color: var(--gray-50);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Near Misses Section */
.near-misses-section {
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 2px solid var(--gray-200);
}

.near-misses-section h3 {
    font-size: 30px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.near-misses-intro {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    font-size: 18px;
}

.near-misses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.near-miss-card {
    background: linear-gradient(135deg, var(--wagner-orange-light) 0%, var(--white) 100%);
    border: 2px solid var(--warning);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.near-miss-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.near-miss-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space);
}

.near-miss-header h4 {
    color: var(--wagner-blue);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.match-percentage {
    background: linear-gradient(135deg, var(--warning) 0%, var(--wagner-orange) 100%);
    color: var(--white);
    padding: var(--space-xs) var(--space);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
}

.requirements-comparison {
    margin: var(--space-lg) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.requirements-met h5,
.requirements-missed h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.requirements-met h5 {
    color: var(--success);
}

.requirements-missed h5 {
    color: var(--error);
}

.requirements-met ul,
.requirements-missed ul {
    list-style: none;
    padding: 0;
	margin-left:14px !important;
}

.requirements-met li,
.requirements-missed li {
    padding: var(--space-xs) 0;
    font-size: 14px;
	margin:0 !important;
	line-height:16px;
}

.requirement-met {
    color: var(--gray-700);
}

.requirement-missed {
    color: var(--gray-600);
    text-decoration: line-through;
    opacity: 0.7;
}

/* Upsell Section */
.upsell-section {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--gray-200);
}

.upsell-section h5 {
    color: var(--wagner-blue);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.upsell-intro {
    color: var(--gray-600);
    font-size: 16px;
    margin-bottom: var(--space);
}

.upsell-products {
    display: flex;
    flex-direction: column;
    gap: var(--space);
}

.upsell-product {
    background: linear-gradient(135deg, var(--wagner-blue-light) 0%, var(--white) 100%);
    border: 1px solid var(--wagner-blue-light);
    border-radius: var(--radius-lg);
    padding: var(--space);
    transition: all var(--transition-base);
}

.upsell-product:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.upsell-header {
    color: var(--wagner-blue);
    font-size: 20px;
    margin-bottom: var(--space-xs);
}

.upsell-description {
    color: var(--gray-600);
    font-size: 16px;
    margin-bottom: var(--space-xs);
}

.upsell-features {
    color: var(--gray-700);
    font-size: 16px;
    margin-bottom: var(--space);
}

.cta-small {
    padding: var(--space-xs) var(--space);
    font-size: 16px;
}

/* Full Comparison Matrix */
.full-comparison-section {
    margin-top: var(--space-2xl);
}

.comparison-accordion {
    background: var(--white);
    border: 2px solid var(--wagner-blue-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.comparison-accordion-header {
    background: linear-gradient(135deg, var(--wagner-blue) 0%, var(--wagner-blue-dark) 100%);
    color: var(--white);
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
}

.comparison-accordion-header:hover {
    background: linear-gradient(135deg, var(--wagner-blue-dark) 0%, var(--wagner-blue) 100%);
}

.comparison-accordion-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
	color:#fff;
}

.accordion-icon {
    font-size: 20px;
    transition: transform var(--transition-base);
}

.comparison-accordion[open] .accordion-icon {
    transform: rotate(180deg);
}

.comparison-accordion-content {
    padding: var(--space-xl);
}

.comparison-intro {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.full-comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.full-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.full-comparison-table thead {
    background: linear-gradient(135deg, var(--wagner-blue) 0%, var(--wagner-blue-dark) 100%);
    color: var(--white);
}

.full-comparison-table th {
    padding: var(--space-sm) var(--space-xs);
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    font-size: 14px;
}

.full-comparison-table th:first-child {
    text-align: left;
    padding-left: var(--space-sm);
}

.full-comparison-table th a {
    color: var(--white);
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.full-comparison-table th a:hover {
    opacity: 0.8;
}

.full-comparison-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
}

.full-comparison-table tbody tr:nth-child(even) {
    background-color: var(--gray-50);
}

.full-comparison-table tbody tr:hover {
    background-color: var(--wagner-blue-light);
}

.full-comparison-table td {
    padding: var(--space-xs);
    text-align: center;
    font-size: 14px;
}

.full-comparison-table td:first-child {
    font-weight: 500;
    color: var(--gray-700);
    text-align: left;
    padding-left: var(--space-sm);
}

.full-comparison-table .price-row {
    background-color: var(--wagner-orange-light) !important;
    font-weight: 600;
}

/* Email Form */
.email-form-container {
    margin-top: var(--space-2xl);
}

.email-form-card {
    background: linear-gradient(135deg, var(--wagner-blue-light) 0%, var(--white) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow);
}

.email-form-card h3 {
    font-size: 30px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.email-form-card p {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
}

.email-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: var(--space-sm);
}

.email-input {
    flex: 1;
    padding: var(--space) var(--space-lg);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 16px;
    transition: all var(--transition-base);
    background: var(--white);
}

.email-input:focus {
    outline: none;
    border-color: var(--wagner-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.submit-btn {
    padding: var(--space) var(--space-xl);
    background: linear-gradient(135deg, var(--wagner-blue) 0%, var(--wagner-blue-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--wagner-blue-dark) 0%, var(--wagner-blue) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

/* Form Messages */
.form-message {
    padding: var(--space);
    margin-top: var(--space);
    border-radius: var(--radius);
    text-align: center;
    font-weight: 500;
}

.form-message-success {
    background-color: var(--success);
    color: var(--white);
}

.form-message-error {
    background-color: var(--error);
    color: var(--white);
}

/* Utility Classes */
.hidden {
    display: none !important;
}


/* Wagner Meters Quiz V2 - Mobile Styles */

/* Tablet adjustments (up to 768px) */
@media screen and (max-width: 768px) {
    /* Container */
    .quiz-container {
        padding: var(--space);
    }

    /* Header */
    .header-content h2 {
        font-size: 30px;
        white-space: normal;
    }

    /* Progress */
    .progress-container {
        flex-direction: column;
        gap: var(--space);
    }

    .progress-track {
        width: 100%;
    }

    /* Question Card */
    .question-card {
        padding: var(--space-lg);
    }

    .question-text {
        padding-right: 40px;
    }

    /* Info Tooltip */
    .info-tooltip {
        max-width: 280px;
        right: -10px;
    }

    /* Answers */
    .answer-option {
        padding: var(--space);
    }

    /* Navigation */
    .navigation-container {
        gap: var(--space);
    }

    .nav-btn {
        padding: var(--space-sm) var(--space-lg);
    }

    /* Product Cards */
    .product-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }

    .product-image {
        width: 100%;
        max-width: 250px;
        height: auto;
        margin: 0 auto var(--space-lg);
    }

    /* CTA Container */
    .cta-container {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        padding: var(--space) var(--space-lg);
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Comparison Table */
    .comparison-table {
        padding: var(--space);
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-sm);
	}

    /* Near Misses */
    .near-misses-grid {
        grid-template-columns: 1fr;
    }

    .near-miss-header {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .requirements-comparison {
        grid-template-columns: 1fr;
        gap: var(--space);
    }

    /* Upsell Section - Mobile */
    .upsell-product {
        padding: var(--space-sm);
    }

    /* Full Comparison Matrix - Mobile */
    .comparison-accordion-header {
        padding: var(--space) var(--space-lg);
    }

    .comparison-accordion-content {
        padding: var(--space-sm);
    }

    .full-comparison-table th,
    .full-comparison-table td {
        padding: 4px 2px;
    }

    .full-comparison-table th:first-child,
    .full-comparison-table td:first-child {
        padding-left: var(--space-xs);
    }

    /* Email Form */
    .email-form-card {
        padding: var(--space-lg);
    }

    .form-group {
        flex-direction: column;
    }

    .email-input,
    .submit-btn {
        width: 100%;
    }
}

/* Small mobile devices (up to 480px) */
@media screen and (max-width: 480px) {
    /* Info Tooltip */
    .info-tooltip-btn {
        width: 28px;
        height: 28px;
    }

    .info-tooltip {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        max-width: 90%;
        width: 320px;
        z-index: 100;
    }

    /* Answers */
    .answer-option {
        padding: var(--space-sm);
    }

    /* Product Cards */
    .product-card {
        padding: var(--space);
    }

    /* Near Miss Card */
    .near-miss-card {
        padding: var(--space);
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .answer-option {
        min-height: 64px;
        display: flex;
        align-items: center;
    }

    .nav-btn,
    .cta-btn,
    .submit-btn {
        min-height: 48px;
    }

    .info-tooltip-btn {
        width: 36px;
        height: 36px;
    }

    .answer-option:active {
        background-color: var(--white);
        border-color: var(--gray-300);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .nav-btn:active:not(:disabled),
    .cta-btn:active {
        transform: translateY(-1px);
    }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .quiz-header {
        margin-bottom: var(--space-lg);
    }

    .quiz-subtitle {
        display: none;
    }

    .progress-section {
        margin-bottom: var(--space);
    }

    .question-card {
        padding: var(--space);
    }

    .question-text {
        margin-bottom: var(--space);
    }

    .answers-container {
        gap: var(--space-sm);
    }

    .answer-option {
        padding: var(--space-sm) var(--space);
    }

    .navigation-container {
        margin-top: var(--space);
    }
}

/* Smooth scrolling for all devices */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles here if desired */
}
