/*
 * Modern Blue Survey Theme - Main Styles
 * Version: 1.0.0
 *
 * Professional dark theme with cyan-blue accents
 * Based on client reference design with gradient background
 *
 * Structure:
 * 1. Base & Reset
 * 2. Typography & Fonts
 * 3. Layout & Containers
 * 4. Header & Branding
 * 5. Progress Bar
 * 6. Welcome & Introduction
 * 7. Product Cards & Question Containers
 * 8. Form Elements
 * 9. Buttons & Navigation
 * 10. Messages & Alerts
 * 11. Footer
 * 12. Utilities
 */

/* ==================== 1. BASE & RESET ==================== */

/* Import Google Font - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Scope all styles to theme class to avoid conflicts */
.survey_modern_blue {
    /* Apply font family */
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Note: padding-top: 0 now handled in base.css */
}

/* Body with custom background image - Override all vanilla styles */
html,
body,
html body,
.survey_modern_blue,
.survey_modern_blue html,
.survey_modern_blue body {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('../images/Hintergrund SHK_small.jpg') !important;
    background-color: #000000 !important;
    background-size: 100% auto !important;
    background-position: top center !important;
    background-attachment: scroll !important;
    background-repeat: repeat-y !important;
    position: relative;
}

body,
.survey_modern_blue body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* Note: margin, padding now handled in base.css */
}

/* Ensure smooth scrolling */
.survey_modern_blue html {
    scroll-behavior: smooth;
}
/* Reset margins and padding */
.survey_modern_blue * {
    box-sizing: border-box;
}

/* ==================== 2. TYPOGRAPHY & FONTS ==================== */

/* Headings */
.survey_modern_blue h1,
.survey_modern_blue .h1 {
    font-family: var(--font-family-headings);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--corporate-primary);
    margin: 0 0 var(--spacing-6) 0;
    letter-spacing: var(--letter-spacing-tight);
}

.survey_modern_blue h2,
.survey_modern_blue .h2 {
    font-family: var(--font-family-headings);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin: 0 0 var(--spacing-5) 0;
}

.survey_modern_blue h3,
.survey_modern_blue .h3 {
    font-family: var(--font-family-headings);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    color: var(--text-primary);
    margin: 0 0 var(--spacing-4) 0;
}

.survey_modern_blue h4,
.survey_modern_blue .h4 {
    font-family: var(--font-family-headings);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-snug);
    color: var(--text-primary);
    margin: 0 0 var(--spacing-3) 0;
}

/* Paragraphs */
.survey_modern_blue p {
    margin: 0 0 var(--spacing-4) 0;
    color: var(--text-primary);
    line-height: var(--line-height-relaxed);
}

/* Links */
.survey_modern_blue a {
    color: var(--corporate-primary);
    text-decoration: none;
    transition: var(--transition-colors);
}

.survey_modern_blue a:hover {
    color: var(--corporate-primary-light);
    text-decoration: underline;
}

.survey_modern_blue a:focus {
    outline: 2px solid var(--corporate-primary);
    outline-offset: 2px;
}

/* Secondary text */
.survey_modern_blue .text-secondary,
.survey_modern_blue .survey-description {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
}

/* Muted text */
.survey_modern_blue .text-muted,
.survey_modern_blue .help-text {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* ==================== 3. LAYOUT & CONTAINERS ==================== */

/* Main content wrapper */
.survey_modern_blue #wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Note: padding-top: 0 now handled in base.css */
}

/* Note: body padding-top: 0 now handled in base.css */

/* Survey container */
.survey_modern_blue .container-fluid,
.survey_modern_blue .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    width: 100%;
}

/* Content area */
.survey_modern_blue #main-content {
    flex: 1;
    padding-top: var(--spacing-8);
    padding-bottom: var(--spacing-12);
}

/* Main column container - limit width to match progress bar */
.survey_modern_blue .space-col {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Question containers - Transparent base (glassmorphism added by specific rules) */
.survey_modern_blue .question-container,
.survey_modern_blue .group-container {
    font-family: var(--font-family-primary) !important;  /* Ensure Inter font */
    background: transparent !important;
    border-radius: var(--radius-lg);
    padding: var(--product-card-padding);
    margin-bottom: var(--spacing-8);
    border: none;
    box-shadow: none;
    transition: var(--transition-all);
}

/* Override margin for animated question containers */
/* Note: padding is now handled by comprehensive rule at line 1697 */
.survey_modern_blue .question-container.animate-in {
    margin-bottom: 0 !important;  /* Remove bottom margin completely */
}

/* Remove padding from group-container with space-col class on desktop */
@media (min-width: 992px) {
    .survey_modern_blue .group-container.space-col {
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: none;
    }
}

/* Remove padding and margin from all questions with row.list-dropdown */
.survey_modern_blue .row.list-dropdown.question-container.animate-in {
    padding: 0 !important;
    margin: 0 !important;
}

/* Override vanilla theme's 2em bottom margin on all question containers */
.survey_modern_blue .question-container {
    margin-bottom: 0 !important;
}

/* Remove left and right padding from group-outer-container space-col */
.survey_modern_blue .group-outer-container.space-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove left and right padding from group-title and group-description */
.survey_modern_blue .group-title.text-center.h3.space-col,
.survey_modern_blue .group-description.row.space-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Make group-description background transparent and center text */
/* Removed .survey_modern_blue prefix for direct matching */
.group-description.row.space-col,
.group-description.row.space-col.well,
.group-description.well,
.well.group-description,
div.well.group-description,
div.well.group-description.row.space-col,
.group-description {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    text-align: center !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    margin-bottom: 14px !important;
}

/* High-specificity override with html/body parent */
html .well.group-description,
html body .well.group-description.row,
body .group-description.well.row.space-col {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* Remove left and right padding from question-container animate-in */
/* DISABLED - Replaced by comprehensive padding rule at line 1697 */
/* .survey_modern_blue .question-container.animate-in {
    padding-left: 0 !important;
    padding-right: 0 !important;
} */

/* Remove padding and margin from alert row */
.survey_modern_blue .row.alert.alert-warning.alert-dismissible.fade.in.show,
.survey_modern_blue .row.alert.alert-dismissible {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Hide empty question-title-container to avoid unnecessary padding */
.survey_modern_blue .question-title-container.col-12:empty {
    display: none !important;
}

/* Also hide if it only contains whitespace or empty elements */
.survey_modern_blue .question-title-container.col-12:not(:has(*)) {
    display: none !important;
}

/* REMOVED: Hover effect on question containers - conflicts with transparent base */
/* .survey_modern_blue .question-container:hover {
    background: var(--container-bg-hover);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-color-medium);
} */

/* Group title/header styling */
.survey_modern_blue .group-name-container,
.survey_modern_blue .ls-group-name,
.survey_modern_blue .group-description-container,
.survey_modern_blue h3.group-name,
.survey_modern_blue .group-name,
.survey_modern_blue .ls-group-name-container {
    color: var(--text-primary);
    text-align: center;
    font-size: var(--font-size-base) !important;  /* 16px */
    font-weight: 600;  /* Semi-bold for better visibility */
}

/* Survey name styling - large bold title like .heizung-text */
.survey_modern_blue .survey-name.text-center,
.survey-name.text-center {
    font-size: 36px !important;
    font-weight: bold !important;
    color: var(--text-primary) !important;
    text-align: center !important;
    margin-bottom: var(--spacing-6) !important;
}

/* Group description cards - match question card styling */
.survey_modern_blue .space-col > .card:not(.question-container),
.survey_modern_blue .space-col > div > .card:not(.question-container),
.survey_modern_blue .card.card-primary.mb-4:not(.question-container),
.survey_modern_blue .card.card-primary,
.survey_modern_blue .card-body,
.survey_modern_blue .card.card-primary .card-body {
    background: var(--container-bg) !important;
    backdrop-filter: var(--backdrop-blur-base) !important;
    -webkit-backdrop-filter: var(--backdrop-blur-base) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--product-card-padding) !important;
    margin-bottom: var(--spacing-8) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color-base) !important;
    color: var(--text-primary) !important;
    text-align: center;
}

/* ==================== 4. HEADER & BRANDING ==================== */

/* Custom Header with Logos */
.survey_modern_blue .survey-header {
    background: transparent;
    padding: 25px 0;  /* Default: 25px top and bottom for ALL pages */
    margin: 0;
    margin-bottom: 0;  /* Remove bottom margin */
    transition: all 0.3s ease;
    width: 100%;
}

/* Fixed header on welcome page (first page) - OVERRIDE with smaller padding */
body[data-page-type="welcome"] .survey-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;  /* High z-index to stay above navbar */
    background: rgba(0, 0, 0, 0.1) !important;  /* 10% alpha - very transparent */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: var(--spacing-4) 0 !important;  /* Smaller padding on welcome page: 16px */
    box-shadow: none !important;
}

/* Adjust body padding when header is fixed */
body[data-page-type="welcome"] {
    padding-top: 100px !important;
}

/* Static header on question and submit pages (already has 25px from default) */
body[data-page-type="questions"] .survey-header,
body[data-page-type="submit"] .survey-header,
body[data-page-type="other"] .survey-header {
    position: static;
    /* Padding: 25px 0 inherited from .survey-header default */
}

.survey_modern_blue .header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-8);
    max-width: var(--container-max-width);
    margin: 0 auto 0 auto;  /* No bottom margin */
    padding: 0 var(--spacing-4) 0 var(--spacing-4);  /* No bottom padding */
}

.survey_modern_blue .header-logo {
    max-height: 80px;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Override Bootstrap .bg-light for navbar - make transparent */
.survey_modern_blue .navbar.bg-light,
.survey_modern_blue #survey-nav.bg-light,
.survey_modern_blue .navbar-light.bg-light {
    --bs-bg-opacity: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Move navbar to bottom of screen on welcome page */
body[data-page-type="welcome"] .navbar.navbar-light.bg-light.navbar-expand-md.fixed-top,
body[data-page-type="welcome"] .navbar.fixed-top.border-bottom,
body[data-page-type="welcome"] #survey-nav {
    top: auto !important;
    bottom: 0 !important;
    --bs-bg-opacity: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

/* Default navbar styling for other pages */
.navbar.navbar-light.bg-light.navbar-expand-md.fixed-top,
.navbar.fixed-top.border-bottom,
#survey-nav {
    --bs-bg-opacity: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Style the Resume Later button and other navbar content */
.navbar.fixed-top .navbar-nav,
.navbar.fixed-top .nav-item,
.navbar.fixed-top .nav-link {
    color: var(--text-primary) !important;
}

.navbar.fixed-top .btn,
.navbar.fixed-top button {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-primary) !important;
}

.navbar.fixed-top .btn:hover,
.navbar.fixed-top button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Survey header/navbar */
.survey_modern_blue #survey-nav,
.survey_modern_blue .navbar {
    background: transparent;
    border-bottom: 1px solid var(--border-color-base);
    padding-top: var(--spacing-6);
    padding-bottom: var(--spacing-4);
    position: relative;
}

/* Logo / Brand text "UMFRAGE" */
.survey_modern_blue .navbar-brand,
.survey_modern_blue .logo-text {
    font-family: var(--font-family-headings);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--corporate-primary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    margin: 0;
    padding: 0;
}

.survey_modern_blue .navbar-brand img,
.survey_modern_blue .logo-img {
    max-height: 48px;
    width: auto;
}

/* ==================== 5. PROGRESS BAR ==================== */

/* Minimalist Progress Bar Wrapper - matches reference design */
.survey_modern_blue .modern-progress-wrapper {
    width: 100%;
    padding: 0;  /* Remove all padding */
    margin-top: 0;  /* Remove top margin */
    margin-bottom: var(--spacing-6);
    background: transparent;
}

.survey_modern_blue .modern-progress-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Progress Bar Track (Background) - black track */
.survey_modern_blue .modern-progress-bar-track {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.55);  /* Semi-transparent black - glassmorphism */
    backdrop-filter: blur(14px);       /* Glassmorphism blur */
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);  /* Subtle white border */
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);  /* Subtle shadow */
    overflow: hidden;
}

/* Progress Bar Fill - white fill */
.survey_modern_blue .modern-progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    min-width: 0;
    background: #ffffff !important;
    border-radius: 3px;
    transition: width 0.6s ease-out;
    box-shadow: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .survey_modern_blue .modern-progress-bar-track {
        height: 4px;
    }
}

@media (max-width: 480px) {
    .survey_modern_blue .modern-progress-bar-track {
        height: 3px;
    }

    .survey_modern_blue .modern-progress-wrapper {
        padding: var(--spacing-3) 0;
        margin-bottom: var(--spacing-4);
    }
}

/* Legacy progress bar styling - kept for compatibility with glassmorphism */
.survey_modern_blue .progress-container {
    width: 100%;
    height: var(--progress-height);
    background: rgba(0, 0, 0, 0.55);  /* Semi-transparent black - glassmorphism */
    backdrop-filter: blur(14px);       /* Glassmorphism blur */
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);  /* Subtle white border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);  /* Subtle shadow */
    position: relative;
    margin-top: var(--spacing-4);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.survey_modern_blue .progress-bar,
.survey_modern_blue .progress-bar-fill {
    height: 100%;
    background: var(--progress-fill);
    background: linear-gradient(90deg, var(--corporate-primary-dark) 0%, var(--corporate-primary) 50%, var(--corporate-primary-light) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    box-shadow: var(--glow-base);
    position: relative;
}

/* Progress bar glow effect */
.survey_modern_blue .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 100%);
}

/* Bootstrap progress bar styling with glassmorphism */
.survey_modern_blue .ls-progress-bar {
    height: var(--progress-height);
    background: rgba(0, 0, 0, 0.55);  /* Semi-transparent black - glassmorphism */
    backdrop-filter: blur(14px);       /* Glassmorphism blur */
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);  /* Subtle white border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);  /* Subtle shadow */
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--spacing-4) 0;
}

.survey_modern_blue .ls-progress-bar .progress-bar {
    background: linear-gradient(90deg, var(--corporate-primary-dark) 0%, var(--corporate-primary) 50%, var(--corporate-primary-light) 100%);
    box-shadow: var(--glow-base);
}

/* ==================== 6. WELCOME & INTRODUCTION ==================== */

/* Welcome page container with glassmorphism card style */
.survey_modern_blue .welcome-container {
    text-align: center;
    padding: 14px 0 2.5rem 0;  /* Match product_evaluation_card: 14px top, 40px bottom, 0 sides */
    margin: 0 0 2rem 0;  /* Only bottom margin like product cards */
    background: rgba(0, 0, 0, 0.55);  /* Semi-transparent black - same as product cards */
    backdrop-filter: blur(14px);       /* Glassmorphism blur */
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);  /* Subtle white border */
    border-radius: 16px;               /* Card radius */
    box-shadow: none;  /* No shadow like product cards */
}

/* Inner padding for submit wrapper - matches product card inner padding */
.survey_modern_blue .welcome-container .submitwrapper,
.survey_modern_blue .welcome-container .submitwrappertext,
.survey_modern_blue .welcome-container .completed-text,
.survey_modern_blue .submitwrapper,
.survey_modern_blue .submitwrappertext {
    padding-left: 2rem !important;   /* 32px - matches product-card-layout left padding */
    padding-right: 28px !important;  /* 28px - matches product-card-layout right padding */
    text-align: center;  /* Centered text */
}

/* Welcome title - "Willkommen zu unserer Umfrage" */
.survey_modern_blue .welcome-title,
.survey_modern_blue .survey-title {
    font-size: 24px;  /* Match product_evaluation_card product name */
    font-weight: 700;
    color: #FFFFFF;  /* Pure white like product cards, not cyan */
    margin-bottom: 1.5rem;  /* 24px */
    line-height: 1.4;  /* Match product_evaluation_card */
    text-shadow: none;  /* No glow effect */
    text-align: center;  /* Centered text */
}

/* Welcome subtitle */
.survey_modern_blue .welcome-subtitle {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-8);
    line-height: var(--line-height-relaxed);
}

/* Survey description */
.survey_modern_blue .survey-description {
    color: #FFFFFF;  /* Pure white like product cards, not gray */
    font-size: 16px;
    line-height: 1.625;  /* Match product_evaluation_card */
    margin-bottom: 1.5rem;  /* 24px */
    text-align: center;  /* Centered text */
}

/* Survey welcome with card style */
.survey_modern_blue .survey-welcome,
.survey_modern_blue .ls-survey-welcome {
    background: rgba(0, 0, 0, 0.55);  /* Semi-transparent black - same as product cards */
    backdrop-filter: blur(14px);       /* Glassmorphism blur */
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);  /* Subtle white border */
    border-radius: 16px;               /* Card radius */
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);  /* Shadow */
    padding: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

/* Survey welcome h5 text-primary styling */
.survey_modern_blue .survey-welcome h5.text-primary,
.survey_modern_blue .ls-survey-welcome h5.text-primary {
    color: var(--corporate-primary);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-4);
}

/* Links in submit/welcome container */
.survey_modern_blue .welcome-container a {
    color: var(--corporate-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.survey_modern_blue .welcome-container a:hover {
    color: var(--corporate-primary-light);
    text-shadow: 0 0 8px rgba(6, 175, 255, 0.5);
}

/* Link container margins */
.survey_modern_blue .submitwrapperdiva,
.survey_modern_blue .submitwrapperdivb {
    margin-top: 1.5rem;
}

/* ==================== 7. PRODUCT CARDS & QUESTION CONTAINERS ==================== */

/* Remove bottom margin from product evaluation cards */
.survey_modern_blue .product-evaluation-card {
    margin-bottom: 0 !important;
}

/* Product card layout - image left, content right */
.survey_modern_blue .product-card,
.survey_modern_blue .question-with-image {
    display: flex;
    gap: var(--product-card-gap);
    align-items: flex-start;
}

/* Product image */
.survey_modern_blue .product-image,
.survey_modern_blue .question-image {
    flex: 0 0 var(--product-image-width);
    max-width: var(--product-image-width);
    border-radius: var(--product-image-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.survey_modern_blue .product-image img,
.survey_modern_blue .question-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--product-image-radius);
    transition: var(--transition-transform);
}

.survey_modern_blue .product-image:hover img,
.survey_modern_blue .question-image:hover img {
    transform: scale(1.02);
}

/* Product content */
.survey_modern_blue .product-content,
.survey_modern_blue .question-content {
    flex: 1;
    min-width: 0;
}

/* Product description - font-size controlled by question theme */
.survey_modern_blue .product-description {
    color: var(--color-gray-300);
    /* font-size: removed - controlled by question theme */
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-6);
}

/* Product manufacturer (above the image) - was product-name */
.survey_modern_blue .product-manufacturer {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--spacing-4) 0;
    text-align: left;
}

/* OLD product-name class - kept for backwards compatibility */
.survey_modern_blue .product-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: var(--spacing-6) 0 var(--spacing-4) 0;
}

/* Product Name + Dropdown Row (60% / 40% layout) */
.survey_modern_blue .product-name-dropdown-row {
    display: flex;
    gap: var(--spacing-4);
    align-items: center;
    margin-top: var(--spacing-4);
    width: 100%;
}

/* Product name inline (60% width, left side) */
.survey_modern_blue .product-name-inline {
    flex: 0 0 60%;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    line-height: var(--line-height-normal);
}

/* Dropdown inline (40% width, right side) */
.survey_modern_blue .product-dropdown-inline {
    flex: 0 0 40%;
}

/* Ensure dropdown inside inline container takes full width */
.survey_modern_blue .product-dropdown-inline select,
.survey_modern_blue .product-dropdown-inline .form-select {
    width: 100%;
}

/* Question text */
.survey_modern_blue .question-text,
.survey_modern_blue .question-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
}

/* Question code/number */
.survey_modern_blue .question-code {
    display: inline-block;
    color: var(--corporate-primary);
    font-weight: var(--font-weight-medium);
    margin-right: var(--spacing-2);
}

/* Mandatory indicator */
.survey_modern_blue .mandatory,
.survey_modern_blue .asterisk {
    color: var(--color-error);
    font-weight: var(--font-weight-bold);
    margin-left: var(--spacing-1);
}

/* Help text */
.survey_modern_blue .question-help,
.survey_modern_blue .help-block {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    margin-top: var(--spacing-3);
    font-style: italic;
}

/* ==================== 8. FORM ELEMENTS ==================== */

/* All input elements */
.survey_modern_blue input[type="text"],
.survey_modern_blue input[type="email"],
.survey_modern_blue input[type="number"],
.survey_modern_blue input[type="tel"],
.survey_modern_blue input[type="date"],
.survey_modern_blue input[type="time"],
.survey_modern_blue textarea,
.survey_modern_blue select,
.survey_modern_blue .form-control {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--input-radius);
    color: var(--input-text);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    padding: var(--input-padding-y) var(--input-padding-x);
    min-height: var(--input-height);
    width: 100%;
    transition: var(--transition-all);
    outline: none;
}

.survey_modern_blue input[type="text"]::placeholder,
.survey_modern_blue input[type="email"]::placeholder,
.survey_modern_blue textarea::placeholder {
    color: var(--input-placeholder);
}

/* Input hover state */
.survey_modern_blue input[type="text"]:hover,
.survey_modern_blue input[type="email"]:hover,
.survey_modern_blue input[type="number"]:hover,
.survey_modern_blue textarea:hover,
.survey_modern_blue .form-control:hover {
    background: var(--input-bg-hover);
    border-color: var(--input-border-hover);
}

/* Select hover state - RED */
.survey_modern_blue select:hover,
.survey_modern_blue .form-select:hover {
    background: var(--input-bg-hover);
    border-color: #FF5252;  /* Red border on hover */
}

/* Input focus state */
.survey_modern_blue input[type="text"]:focus,
.survey_modern_blue input[type="email"]:focus,
.survey_modern_blue input[type="number"]:focus,
.survey_modern_blue textarea:focus,
.survey_modern_blue .form-control:focus {
    background: var(--input-bg-focus);
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(6, 175, 255, 0.2);
}

/* Select focus state - RED */
.survey_modern_blue select:focus,
.survey_modern_blue .form-select:focus {
    background: var(--input-bg-focus);
    border-color: #FF5252;  /* Red border on focus */
    box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.2);  /* Red glow */
}

/* Textarea */
.survey_modern_blue textarea,
.survey_modern_blue textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Select / Dropdown - "Auswählen..." style */
.survey_modern_blue select,
.survey_modern_blue .form-select {
    background: var(--dropdown-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF5252' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-position: right var(--spacing-4) center;
    background-size: 12px;
    padding-right: var(--spacing-10);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    max-height: 45px;  /* Limit dropdown field height */
}

/* Force red arrow with higher specificity */
body.survey_modern_blue select,
body.survey_modern_blue .form-select,
.survey_modern_blue select,
.survey_modern_blue .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF5252' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-position: right var(--spacing-4) center !important;
    background-repeat: no-repeat !important;
}

/* Fix arrow position on focus/active states */
.survey_modern_blue select:focus,
.survey_modern_blue select:active,
.survey_modern_blue .form-select:focus,
.survey_modern_blue .form-select:active {
    background-position: right var(--spacing-4) center !important;
}

.survey_modern_blue select::-ms-expand {
    display: none;
}

/* Dropdown options (the opened menu) */
.survey_modern_blue select option {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--font-size-base);
    line-height: 1.5;
    background: var(--dropdown-bg);
    color: var(--input-text);
}

/* Limit dropdown menu max height when opened */
.survey_modern_blue select {
    overflow-y: auto;
    max-height: 300px;  /* Limit opened dropdown height */
}

/* Change "Please choose..." to "Auswählen..." for empty value option */
.survey_modern_blue select option[value=""] {
    font-style: italic;
    color: var(--input-placeholder);
}

/* German placeholder text override via JavaScript (see custom.js) */

/* Radio buttons and checkboxes */
.survey_modern_blue input[type="radio"],
.survey_modern_blue input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: var(--spacing-3);
    cursor: pointer;
    accent-color: var(--corporate-primary);
}

/* Custom radio/checkbox styling */
.survey_modern_blue .radio-item,
.survey_modern_blue .checkbox-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-3);
    margin-bottom: var(--spacing-2);
    border-radius: var(--radius-base);
    transition: var(--transition-colors);
    cursor: pointer;
}

.survey_modern_blue .radio-item:hover,
.survey_modern_blue .checkbox-item:hover {
    background: rgba(6, 175, 255, 0.05);
}

.survey_modern_blue .radio-item label,
.survey_modern_blue .checkbox-item label {
    cursor: pointer;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

/* ==================== 9. BUTTONS & NAVIGATION ==================== */

/* Primary buttons */
.survey_modern_blue .btn,
.survey_modern_blue button,
.survey_modern_blue input[type="submit"],
.survey_modern_blue input[type="button"] {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--button-font-weight);
    padding: var(--button-padding-y) var(--button-padding-x);
    min-height: var(--button-height);
    border-radius: var(--button-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition-all);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    outline: none;
}

/* Primary button style - RED (Next/Submit button) */
.survey_modern_blue .btn.btn-primary,
.survey_modern_blue button.btn-primary,
.survey_modern_blue .btn-primary.btn-lg,
.survey_modern_blue .button-primary,
.survey_modern_blue input[type="submit"] {
    background-color: var(--button-primary-bg) !important;
    background: var(--button-primary-bg) !important;
    color: var(--button-primary-text) !important;
    border-color: var(--button-primary-border) !important;
    border: 2px solid var(--button-primary-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.survey_modern_blue .btn.btn-primary:hover,
.survey_modern_blue button.btn-primary:hover,
.survey_modern_blue .btn-primary.btn-lg:hover,
.survey_modern_blue .button-primary:hover,
.survey_modern_blue input[type="submit"]:hover {
    background-color: var(--button-primary-bg-hover) !important;
    background: var(--button-primary-bg-hover) !important;
    color: var(--button-primary-text) !important;
    border-color: var(--button-primary-bg-hover) !important;
    box-shadow: 0 4px 12px rgba(226, 6, 31, 0.5) !important;
    transform: translateY(-1px);
}

.survey_modern_blue .btn.btn-primary:active,
.survey_modern_blue button.btn-primary:active,
.survey_modern_blue input[type="submit"]:active {
    background-color: var(--button-primary-bg-active) !important;
    background: var(--button-primary-bg-active) !important;
    transform: translateY(0);
}

/* Secondary button style - Dark gray with white text (Previous/Zurück button) */
.survey_modern_blue .btn.btn-secondary,
.survey_modern_blue .btn.btn-outline,
.survey_modern_blue .btn.btn-outline-secondary,
.survey_modern_blue button.btn-outline-secondary,
.survey_modern_blue .btn-outline-secondary.btn-lg {
    background-color: var(--button-secondary-bg) !important;
    background: var(--button-secondary-bg) !important;
    color: var(--button-secondary-text) !important;
    border-color: var(--button-secondary-border) !important;
    border: 1px solid var(--button-secondary-border) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.survey_modern_blue .btn.btn-secondary:hover,
.survey_modern_blue .btn.btn-outline:hover,
.survey_modern_blue .btn.btn-outline-secondary:hover,
.survey_modern_blue button.btn-outline-secondary:hover,
.survey_modern_blue .btn-outline-secondary.btn-lg:hover {
    background-color: var(--button-secondary-bg-hover) !important;
    background: var(--button-secondary-bg-hover) !important;
    color: var(--button-secondary-text) !important;
    border-color: var(--button-secondary-border) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-1px);
}

.survey_modern_blue .btn.btn-secondary:active,
.survey_modern_blue .btn.btn-outline-secondary:active,
.survey_modern_blue button.btn-outline-secondary:active {
    background-color: var(--button-secondary-bg-active) !important;
    background: var(--button-secondary-bg-active) !important;
    transform: translateY(0);
}

/* Navigation buttons container - Black background like in reference */
.survey_modern_blue .navigation-buttons,
.survey_modern_blue .survey-navigation {
    display: flex;
    gap: var(--spacing-4);
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-8);
    padding: var(--spacing-6) var(--spacing-8);
    background: #000000;  /* Black background */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: calc(var(--spacing-6) * -1);
    margin-right: calc(var(--spacing-6) * -1);
    margin-bottom: calc(var(--spacing-6) * -1);
}

/* Move previous button to left, next to right */
.survey_modern_blue .btn-previous,
.survey_modern_blue .button-previous {
    margin-right: auto;
}

/* Add left arrow icon to previous/back button */
.survey_modern_blue .btn-previous::before,
.survey_modern_blue .button-previous::before {
    content: "←";
    margin-right: var(--spacing-2);
    font-size: 1.2em;
    font-weight: bold;
}

.survey_modern_blue .btn-next,
.survey_modern_blue .button-next {
    margin-left: auto;
}

/* Add right arrow icon to next button */
.survey_modern_blue .btn-next::after,
.survey_modern_blue .button-next::after {
    content: "→";
    margin-left: var(--spacing-2);
    font-size: 1.2em;
    font-weight: bold;
}

/* Button focus state */
.survey_modern_blue .btn:focus,
.survey_modern_blue button:focus {
    box-shadow: 0 0 0 3px rgba(6, 175, 255, 0.3);
}

/* Disabled button state */
.survey_modern_blue .btn:disabled,
.survey_modern_blue button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== 10. MESSAGES & ALERTS ==================== */

/* Alert base */
.survey_modern_blue .alert {
    padding: var(--spacing-4);
    border-radius: var(--radius-base);
    margin-bottom: var(--spacing-4);
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
}

/* Success alert */
.survey_modern_blue .alert-success {
    background: rgba(0, 217, 163, 0.1);
    border-color: var(--color-success);
    color: var(--color-success);
}

/* Warning alert */
.survey_modern_blue .alert-warning {
    background: rgba(255, 167, 38, 0.1);
    border-color: var(--color-warning);
    color: var(--color-warning);
}

/* Error alert */
.survey_modern_blue .alert-error,
.survey_modern_blue .alert-danger {
    background: rgba(255, 82, 82, 0.1);
    border-color: var(--color-error);
    color: var(--color-error);
}

/* Info alert */
.survey_modern_blue .alert-info {
    background: rgba(0, 184, 212, 0.1);
    border-color: var(--color-info);
    color: var(--color-info);
}

/* Validation messages */
.survey_modern_blue .validation-error,
.survey_modern_blue .error-message {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-2);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

/* Question help tip alert - Red color */
.survey_modern_blue .ls-questionhelp.alert,
.survey_modern_blue .ls-questionhelp .alert,
.survey_modern_blue .tip.alert {
    color: var(--color-error);
    border-color: var(--color-error);
    background: rgba(255, 82, 82, 0.1);
}

/* Questions have errors alert - Padding adjustment */
.survey_modern_blue .ls-questions-have-errors,
.survey_modern_blue .row.alert.alert-danger.ls-questions-have-errors {
    padding-left: 14px;
    padding-right: 14px;
}

/* Error alert icons - Make question mark / info icons red */
/* Override Bootstrap .text-info inside error alerts */
.survey_modern_blue .alert-danger .text-info,
.survey_modern_blue .alert-danger.text-info,
.survey_modern_blue .ls-questions-have-errors .text-info,
.survey_modern_blue .ls-questions-have-errors.text-info,
.survey_modern_blue .alert-danger .fa-question-circle,
.survey_modern_blue .alert-danger .fa-info-circle,
.survey_modern_blue .alert-danger .fa-question,
.survey_modern_blue .alert-danger .fa-info,
body.survey_modern_blue .text-info.fa-question-circle,
body.survey_modern_blue .alert-danger .text-info,
.alert-danger .text-info {
    color: #E2061F !important;  /* Corporate red - override Bootstrap */
}

/* ==================== 11. FOOTER ==================== */

.survey_modern_blue .survey-footer,
.survey_modern_blue footer {
    margin-top: var(--spacing-12);
    padding: var(--spacing-8) 0;
    border-top: 1px solid var(--border-color-base);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.survey_modern_blue .survey-footer a {
    color: var(--corporate-primary);
}

/* ==================== 12. UTILITIES ==================== */

/* Text alignment */
.survey_modern_blue .text-left { text-align: left; }
.survey_modern_blue .text-center { text-align: center; }
.survey_modern_blue .text-right { text-align: right; }

/* Display utilities */
.survey_modern_blue .d-none { display: none !important; }
.survey_modern_blue .d-block { display: block !important; }
.survey_modern_blue .d-flex { display: flex !important; }

/* Spacing utilities */
.survey_modern_blue .mb-0 { margin-bottom: 0 !important; }
.survey_modern_blue .mb-2 { margin-bottom: var(--spacing-2) !important; }
.survey_modern_blue .mb-4 { margin-bottom: var(--spacing-4) !important; }
.survey_modern_blue .mb-6 { margin-bottom: var(--spacing-6) !important; }
.survey_modern_blue .mb-8 { margin-bottom: var(--spacing-8) !important; }

.survey_modern_blue .mt-0 { margin-top: 0 !important; }
.survey_modern_blue .mt-2 { margin-top: var(--spacing-2) !important; }
.survey_modern_blue .mt-4 { margin-top: var(--spacing-4) !important; }
.survey_modern_blue .mt-6 { margin-top: var(--spacing-6) !important; }
.survey_modern_blue .mt-8 { margin-top: var(--spacing-8) !important; }

/* Loading spinner */
.survey_modern_blue .loading-spinner {
    border: 3px solid var(--border-color-base);
    border-top-color: var(--corporate-primary);
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade in animation for questions */
.survey_modern_blue .question-container.animate-in {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions for all interactive elements */
.survey_modern_blue *:focus-visible {
    outline: 2px solid var(--corporate-primary);
    outline-offset: 2px;
}

/* ==================== BACKGROUND OVERLAY OVERRIDE ==================== */
/* Force background overlay with high specificity - Version 2.0.5 */
html.survey_modern_blue,
body.survey_modern_blue,
html body.survey_modern_blue,
body#bodyelement {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('../images/Hintergrund SHK_small.jpg') !important;
    background-color: #000000 !important;
    background-size: 100% auto !important;
    background-position: top center !important;
    background-attachment: scroll !important;
    background-repeat: repeat-y !important;
}

/* ==================== FINAL OVERRIDE: .well class ==================== */
/* This MUST be at the END of custom.css to override vanilla theme */
/* Loaded AFTER vanilla/css/base.css which sets background-color: #f5f5f5 */
.well,
div.well,
.well.group-description,
div.well.group-description,
.group-description.well,
.row.space-col.well,
div.row.space-col.well,
.group-description.row.space-col.well,
div.group-description.row.space-col.well {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* Remove bottom margin from .col-12.well */
.col-12.well,
div.col-12.well,
.well.col-12 {
    margin-bottom: 0 !important;
}

/* ==================== 13. TOKEN PAGE (Zugangscode) ==================== */
/* Glassmorphism design matching product_evaluation_card_v2 */

/* Make token-page container transparent */
.token-page,
.token-page > div {
    background: transparent !important;
}

/* Token Card - Glassmorphism Effect */
.token-page .card,
.token-page .card-body {
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: none !important;  /* Removed to match Welcome Page */
}

/* Token Card Body - Remove double styling */
.token-page .card .card-body {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 14px 28px 2.5rem 2rem !important;  /* Match Welcome Page: Top:14px, Right:28px, Bottom:40px, Left:32px */
}

/* Typography - White text */
.token-page,
.token-page .card,
.token-page .card-body,
.token-page label,
.token-page p,
.token-page span {
    color: #FFFFFF !important;
}

.token-page h1,
.token-page h2,
.token-page h3,
.token-page h4,
.token-page h5 {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

/* Page title above token box */
.token-page .h3,
.token-page h3.h3,
.token-page div.h3 {
    font-size: 28px !important;
    margin-top: 30px !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
}

/* Input Field - Dark Style */
.token-page input[type="text"],
.token-page input[type="password"],
.token-page .form-control {
    background-color: #1a1a1a !important;
    border: 1px solid #555555 !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
    min-height: 44px !important;
    padding: 0.75rem 1rem !important;
    font-size: 16px !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.token-page input[type="text"]::placeholder,
.token-page input[type="password"]::placeholder,
.token-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.token-page input[type="text"]:hover,
.token-page input[type="password"]:hover,
.token-page .form-control:hover {
    border-color: #B3B3B3 !important;
    background-color: #252525 !important;
}

.token-page input[type="text"]:focus,
.token-page input[type="password"]:focus,
.token-page .form-control:focus {
    border-color: #E2061F !important;
    box-shadow: 0 0 0 3px rgba(226, 6, 31, 0.2) !important;
    outline: none !important;
    background-color: #1a1a1a !important;
}

/* Eye Icon (Password Toggle) */
.token-page .input-group-text,
.token-page .btn-outline-secondary {
    background-color: #1a1a1a !important;
    border: 1px solid #555555 !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    color: #FFFFFF !important;
}

.token-page .input-group-text:hover,
.token-page .btn-outline-secondary:hover {
    background-color: #252525 !important;
    border-color: #B3B3B3 !important;
}

/* Input Group - Flexbox layout for input + toggle button side by side */
.token-page .input-group,
.token-page .form-token .input-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

.token-page .input-group input,
.token-page .input-group .form-control {
    flex: 1 1 auto !important;
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
}

/* Toggle button directly attached to input */
.token-page .input-group button,
.token-page .input-group .input-group-text,
.token-page .input-group .btn-outline-secondary,
.token-page #ls-toggle-token-show {
    flex: 0 0 auto !important;
    max-width: 15% !important;
    min-width: 44px !important;
    border-radius: 0 8px 8px 0 !important;
    border-left: none !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding: 0.5rem !important;
}

/* Input takes remaining 85% */
.token-page .input-group input,
.token-page .input-group .form-control {
    flex: 1 1 85% !important;
    min-width: 0 !important;
}

/* Weiter Button - Corporate Red */
.token-page .btn-primary,
.token-page input[type="submit"],
.token-page button[type="submit"] {
    background-color: #E2061F !important;
    border: none !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    min-height: 44px !important;
    padding: 0.75rem 2rem !important;
    font-size: 16px !important;
    transition: background-color 0.25s ease, transform 0.15s ease !important;
    box-shadow: 0 4px 12px rgba(226, 6, 31, 0.3) !important;
}

.token-page .btn-primary:hover,
.token-page input[type="submit"]:hover,
.token-page button[type="submit"]:hover {
    background-color: #c70519 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(226, 6, 31, 0.4) !important;
}

.token-page .btn-primary:active,
.token-page input[type="submit"]:active,
.token-page button[type="submit"]:active {
    background-color: #a50416 !important;
    transform: translateY(0) !important;
}

/* Label styling */
.token-page label {
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    font-size: 16px !important;
    white-space: nowrap !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

/* Control label specific (Zugangscode label) */
.token-page .control-label,
.token-page label.control-label {
    white-space: nowrap !important;
    text-align: center !important;
}

/* Hide required asterisk on token page */
.token-page .text-danger,
.token-page .asterisk,
.token-page .mandatory,
.token-page label .text-danger {
    display: none !important;
}

/* Form container spacing */
.token-page .form-token,
.token-page .form-group {
    margin-bottom: 1.5rem !important;
}

/* Card centering and max-width */
.token-page .card {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Desktop: Wider card with 20px side margins */
@media (min-width: 992px) {
    .token-page .card {
        max-width: calc(100% - 40px) !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
}

/* ==================== SUBMIT PAGE - FORM ELEMENTS (GEWINNSPIEL) ==================== */
/* Match product_evaluation_card_v2 input styling */

/* Text inputs (E-Mail, Vorname, Nachname) */
.welcome-container input[type="text"],
.welcome-container input[type="email"] {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #555555;
    border-radius: 8px;
    color: #FFFFFF;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-container input[type="text"]:hover,
.welcome-container input[type="email"]:hover {
    background: #252525;
    border-color: #B3B3B3;
}

.welcome-container input[type="text"]:focus,
.welcome-container input[type="email"]:focus {
    outline: none;
    border-color: #E2061F;
    box-shadow: 0 0 0 3px rgba(226, 6, 31, 0.2);
}

/* Radio buttons */
.welcome-container input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #555555;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    position: relative;
    transition: border-color 0.25s ease;
}

.welcome-container input[type="radio"]:hover {
    border-color: #B3B3B3;
}

.welcome-container input[type="radio"]:checked {
    border-color: #E2061F;
}

.welcome-container input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E2061F;
}

/* Checkbox (Datenschutzerklärung) */
.welcome-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #555555;
    border-radius: 4px;
    background: #1a1a1a;
    cursor: pointer;
    position: relative;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.welcome-container input[type="checkbox"]:hover {
    border-color: #B3B3B3;
}

.welcome-container input[type="checkbox"]:checked {
    background: #E2061F;
    border-color: #E2061F;
}

.welcome-container input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
}

/* Labels in submit/gewinnspiel forms */
.welcome-container label {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.625;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Form sections - Match Product Card background */
.welcome-container .form-group,
.welcome-container .question-wrapper {
    background: var(--container-bg);  /* rgba(30, 40, 55, 0.85) - same as Product Cards */
    backdrop-filter: var(--backdrop-blur-base);  /* blur(8px) */
    -webkit-backdrop-filter: var(--backdrop-blur-base);
    border: 1px solid var(--border-color-base);  /* rgba(255, 255, 255, 0.1) */
    border-radius: var(--radius-lg);  /* 12px */
    box-shadow: var(--shadow-lg);  /* Match Product Card shadow */
    padding: 14px 28px 2.5rem 2rem;  /* Match Product Card padding: Top: 14px, Right: 28px, Bottom: 40px, Left: 32px */
    margin-bottom: 1.5rem;
    /* Bootstrap Grid Override - Force consistent width */
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 100% !important;  /* Override Bootstrap's flex-basis */
}

/* Required asterisk - hide like in product_evaluation_card */
.welcome-container .text-danger.asterisk {
    display: none !important;
}

/* ==================== STANDARD QUESTION TYPES - PRODUCT CARD STYLE ==================== */

/* 0. STANDARD QUESTION TYPES - Match Product Card Styling */
/* Theme-basierte Regel für Standard-Fragetypen (OHNE product_evaluation_card_v2) */
/* Zielt auf spezifische Fragetypen über .row Klassen */
.survey_modern_blue .row.list-radio.question-container,
.survey_modern_blue .row.multiple-short-txt.question-container,
.survey_modern_blue .row.boilerplate.question-container,
.survey_modern_blue .row.list-dropdown.question-container,
.survey_modern_blue .row.text-display.question-container {
    /* Match Product Card background */
    background: var(--container-bg) !important;  /* rgba(30, 40, 55, 0.25) */
    backdrop-filter: var(--backdrop-blur-base) !important;  /* blur(8px) */
    -webkit-backdrop-filter: var(--backdrop-blur-base) !important;
    border: 1px solid var(--border-color-base) !important;  /* rgba(255, 255, 255, 0.1) */
    border-radius: var(--radius-lg) !important;  /* 12px */
    box-shadow: var(--shadow-lg) !important;  /* Match Product Card shadow */
    /* Padding and Margins */
    padding: 14px 28px 2.5rem 2rem !important;  /* Top: 14px, Right: 28px, Bottom: 40px, Left: 32px */
    margin-left: 0 !important;   /* Override Bootstrap .row negative margins */
    margin-right: 0 !important;  /* Force consistent width across all questions */
    margin-bottom: 2rem !important;  /* Space between questions */
}

/* PRODUCT CARDS - Make outer container transparent */
/* Override glassmorphism for list-dropdown containers that contain Product Cards */
.survey_modern_blue .row.list-dropdown.question-container:has(.product-evaluation-card) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;  /* Remove padding from outer container */
    border-radius: 0 !important;
}

/* SUBMIT PAGE RAFFLE FORM - Transparent containers (no glassmorphism) */
.survey_modern_blue .welcome-container .answer-container {
    /* Transparent background - no glassmorphism */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    /* Padding */
    padding: 14px 28px 2.5rem 2rem !important;  /* Top: 14px, Right: 28px, Bottom: 40px, Left: 32px */
    /* Bootstrap Grid Override - Force consistent width */
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 100% !important;  /* Override Bootstrap's flex-basis */
}

/* Remove hover effects on answer containers */
.survey_modern_blue .welcome-container .answer-container:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 1. QUESTION TEXT - Match product name styling */
.survey_modern_blue .ls-answers .question-text h3,
.survey_modern_blue .ls-answers .question-text .h3,
.survey_modern_blue .question-text h3 {
    font-size: 20px;  /* Slightly smaller than product name (24px) for hierarchy */
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    padding-left: 0;   /* No additional padding - uses container padding */
    padding-right: 0;
    text-shadow: none;
}

/* 2. ANSWER ITEMS - No additional horizontal padding */
.survey_modern_blue .answer-item,
.survey_modern_blue .ls-answers .answer-item {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0.75rem;
}

/* 3. TEXT INPUTS (Multiple Short Text) */
.survey_modern_blue input[type="text"]:not([class*="token"]),
.survey_modern_blue input[type="email"],
.survey_modern_blue textarea.form-control {
    background: #1a1a1a !important;
    border: 1px solid #555555 !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.survey_modern_blue input[type="text"]:hover,
.survey_modern_blue input[type="email"]:hover,
.survey_modern_blue textarea.form-control:hover {
    background: #252525 !important;
    border-color: #B3B3B3 !important;
}

.survey_modern_blue input[type="text"]:focus,
.survey_modern_blue input[type="email"]:focus,
.survey_modern_blue textarea.form-control:focus {
    outline: none !important;
    border-color: #E2061F !important;
    box-shadow: 0 0 0 3px rgba(226, 6, 31, 0.2) !important;
}

/* 4. RADIO BUTTONS (List Radio, Image Select) */
.survey_modern_blue .ls-answers input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #555555;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    position: relative;
    margin-right: 0.75rem;
    transition: border-color 0.25s ease;
    flex-shrink: 0;
}

.survey_modern_blue .ls-answers input[type="radio"]:hover {
    border-color: #B3B3B3;
}

.survey_modern_blue .ls-answers input[type="radio"]:checked {
    border-color: #E2061F;
}

.survey_modern_blue .ls-answers input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E2061F;
}

/* 5. LABELS */
.survey_modern_blue .ls-answers label {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.625;
    cursor: pointer;
    padding-left: 0;  /* No additional padding */
    padding-right: 0;
}

/* 6. IMAGE SELECT - Special styling for image-based radio */
.survey_modern_blue .answer-item.image-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.survey_modern_blue .answer-item.image-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.survey_modern_blue .answer-item.image-item input[type="radio"]:checked + label {
    color: #E2061F;
}

.survey_modern_blue .answer-item.image-item img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* 7. TEXT DISPLAY - Simple white text */
.survey_modern_blue .text-display,
.survey_modern_blue .question-help {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.625;
}

/* 8. HIDE ASTERISKS */
.survey_modern_blue .ls-answers .asterisk,
.survey_modern_blue .ls-answers .text-danger.fa-asterisk {
    display: none !important;
}

/* ============================================
   GEWINNSPIEL TEILNAHMEBEDINGUNGEN
   ============================================ */
.survey_modern_blue .gewinnspiel-text {
    font-size: 16px !important;
    font-family: Arial, sans-serif !important;
    color: #FFFFFF !important;
    line-height: 1.6;
}

.survey_modern_blue .gewinnspiel-text h2 {
    font-size: 24px !important;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 1.5rem;
}

.survey_modern_blue .gewinnspiel-text p {
    font-size: 16px !important;
    color: #FFFFFF !important;
    margin-bottom: 0.75rem;
}

.survey_modern_blue .gewinnspiel-text b {
    font-weight: 700;
}

.survey_modern_blue .gewinnspiel-text u {
    text-decoration: underline;
}

.survey_modern_blue .gewinnspiel-text a {
    color: #007bff !important;
    text-decoration: underline;
}

.survey_modern_blue .gewinnspiel-text a:hover {
    color: #0056b3 !important;
}

.survey_modern_blue .gewinnspiel-text hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 1.5rem 0;
}

/* ==================== BOOTSTRAP OVERRIDES (MUST BE LAST) ==================== */
/* Override Bootstrap .text-info in error alerts - needs high specificity */
.text-info.fa-question-circle,
.alert-danger .text-info,
.alert.alert-danger .text-info,
.row.alert.alert-danger .text-info,
.survey_modern_blue .text-info.fa-question-circle,
html body .alert-danger .text-info {
    color: #E2061F !important;
}
