/**
 * Transtoyou Anamnese Frontend Styles
 * Modern styling with animations and complete dark theme support
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Use theme variables from theme.css */
    --anamnese-border-radius: 30px;
    --anamnese-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --anamnese-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --anamnese-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --anamnese-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    :root {
        --anamnese-border-radius: 16px;
    }
}

.footer-newsletter-container {
  display: none;
}

.question-text .required {
  color: var(--tty-error);
}

.progress-stats-grid {
  display: none !important;
}

/* ========================================
   Question Text HTML Support
   ======================================== */
.question-text {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--tty-text-primary);
    line-height: 1.4;
}

/* HTML elementen binnen question-text */
.question-text p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.question-text p:last-child {
    margin-bottom: 0;
}

.question-text strong,
.question-text b {
    font-weight: 700;
    color: var(--tty-header-primary);
}

.question-text em,
.question-text i:not(.fa):not(.fa-duotone) {
    font-style: italic;
}

.question-text u {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.question-text a {
    color: var(--tty-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.question-text a:hover {
    color: var(--tty-primary-dark);
    text-decoration: none;
}

.question-text ul,
.question-text ol {
    margin: 12px 0;
    padding-left: 24px;
}

.question-text ul li,
.question-text ol li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.question-text ul li:last-child,
.question-text ol li:last-child {
    margin-bottom: 0;
}

.question-text ul {
    list-style-type: disc;
}

.question-text ol {
    list-style-type: decimal;
}

.question-text blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    background: var(--tty-bg-secondary);
    border-left: 4px solid var(--tty-primary);
    border-radius: 4px;
    font-style: italic;
}

.question-text code {
    display: inline-block;
    padding: 2px 6px;
    background: var(--tty-bg-secondary);
    border: 1px solid var(--tty-border-light);
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--tty-primary);
}

.question-text pre {
    display: block;
    margin: 12px 0;
    padding: 12px;
    background: var(--tty-bg-secondary);
    border: 1px solid var(--tty-border-light);
    border-radius: 6px;
    overflow-x: auto;
}

.question-text pre code {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--tty-text-primary);
}

.question-text h1,
.question-text h2,
.question-text h3,
.question-text h4,
.question-text h5,
.question-text h6 {
    margin: 16px 0 8px 0;
    font-weight: 700;
    color: var(--tty-header-primary);
    line-height: 1.3;
}

.question-text h1 { font-size: 24px; }
.question-text h2 { font-size: 22px; }
.question-text h3 { font-size: 20px; }
.question-text h4 { font-size: 18px; }
.question-text h5 { font-size: 16px; }
.question-text h6 { font-size: 14px; }

.question-text hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid var(--tty-border-light);
}

.question-text table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
}

.question-text table th,
.question-text table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid var(--tty-border-light);
}

.question-text table th {
    background: var(--tty-bg-secondary);
    font-weight: 600;
    color: var(--tty-header-primary);
}

.question-text table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.question-text img {
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border-radius: 8px;
}

.question-text .highlight {
    background-color: rgba(242, 151, 31, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Specifieke styling voor belangrijke content */
.question-text .important {
    display: block;
    padding: 12px 16px;
    margin: 12px 0;
    background: rgba(242, 151, 31, 0.1);
    border-left: 4px solid var(--tty-secondary);
    border-radius: 4px;
    font-weight: 500;
}

.question-text .note {
    display: block;
    padding: 10px 14px;
    margin: 10px 0;
    background: rgba(36, 119, 114, 0.08);
    border-left: 3px solid var(--tty-primary);
    border-radius: 4px;
    font-size: 15px;
    color: var(--tty-text-secondary);
}


/* Enhanced Rejection Notice Container */
.iscu_remove_cart_items_container {
  background: #fff9f9;
  border-radius: var(--anamnese-border-radius);
  padding: 30px;
  margin-bottom: 32px;
  box-shadow: var(--anamnese-shadow-md);
  border: 2px solid #bf6152;
  transition: var(--anamnese-transition);
}

.iscu_remove_cart_items_container .section-title {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    gap: 10px;
    color: var(--tty-error);
    line-height: 1.2;
}

.iscu_remove_cart_items_container .section-title i {
  font-size: 30px;
}

/* Product Sections */
.problematic-products-section,
.other-products-section {
    margin: 20px 0;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.product-item.safe-product {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

.product-thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    flex: 1;
    font-size: 17px;
    font-weight: 500;
    color: #1f2937;
}

.product-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 500;
}

.product-status i {
    font-size: 16px;
}

/* Rejection Box */
.rejection-reason-box {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

.rejection-message-text {
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  gap: 12px;
  align-items: center;
}

.rejection-message-text i {
  font-size: 20px;
  flex-shrink: 0;
}

.rejection-info-text {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: none;
}

.rejection-alternative a {
  text-decoration: underline;
  font-weight: 600;
}

.rejection-alternative {
    background: #dbecf9;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    line-height: 1.4;
}

/* Remove Buttons */
.iscu_cart_item_remove_buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.iscu_remove_cart_item {
  background: var(--tty-error);
  border: 2px solid var(--tty-error);
  color: #fff;
  padding: 14px 20px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  cursor: pointer;
}

.iscu_remove_cart_item:hover {
    background: var(--tty-error);
    color: #fff;
}

/* Collapsible Rejection Notice */
.iscu_remove_cart_items_container .section-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: all 0.2s ease;
}

.iscu_remove_cart_items_container .section-title .tty-dropdown-indicator {
    font-size: 16px;
    transition: transform 0.3s ease;
    color: var(--tty-error);
    transition: transform 0.3s ease;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  border-radius: 50%;
  box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
  width: 30px;
  border: none !important;
  height: 30px;
  text-align: center !important;
  text-transform: none;
  padding: 9px !important;
  margin-left: auto;
}

/* Next Button - Rejection State */
.anamnese-navigation .next-btn.has-rejection,
.anamnese-navigation .btn-next.has-rejection,
button.btn-next.has-rejection,
button.transtoyou-button.has-rejection {
    background: var(--tty-error) !important;
    border-color: var(--tty-error) !important;
    color: white !important;
}

.anamnese-navigation .next-btn.has-rejection:hover,
.anamnese-navigation .btn-next.has-rejection:hover,
button.btn-next.has-rejection:hover,
button.transtoyou-button.has-rejection:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    transform: translateX(0) !important;
}

/* Disabled state met rejection - MOET OOK ROOD ZIJN */
.anamnese-navigation .next-btn.has-rejection.disabled,
.anamnese-navigation .btn-next.has-rejection.disabled,
button.btn-next.has-rejection.disabled,
button.transtoyou-button.has-rejection.disabled,
.anamnese-navigation .next-btn.has-rejection[disabled],
.anamnese-navigation .btn-next.has-rejection[disabled],
button.btn-next.has-rejection[disabled],
button.transtoyou-button.has-rejection[disabled] {
    background: var(--tty-error) !important;
    border-color: var(--tty-error) !important;
    color: white !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.anamnese-navigation .next-btn.has-rejection.disabled:hover,
.anamnese-navigation .btn-next.has-rejection.disabled:hover,
button.btn-next.has-rejection.disabled:hover,
button.transtoyou-button.has-rejection.disabled:hover,
.anamnese-navigation .next-btn.has-rejection[disabled]:hover,
.anamnese-navigation .btn-next.has-rejection[disabled]:hover,
button.btn-next.has-rejection[disabled]:hover,
button.transtoyou-button.has-rejection[disabled]:hover {
    background: var(--tty-error) !important;
    border-color: var(--tty-error) !important;
    transform: none !important;
}

/* Submit button - Rejection State */
.anamnese-navigation .btn-submit.has-rejection,
button.btn-submit.has-rejection {
    background: var(--tty-error) !important;
    border-color: var(--tty-error) !important;
    color: white !important;
}

.anamnese-navigation .btn-submit.has-rejection.disabled,
.anamnese-navigation .btn-submit.has-rejection[disabled],
button.btn-submit.has-rejection.disabled,
button.btn-submit.has-rejection[disabled] {
    background: var(--tty-error) !important;
    border-color: var(--tty-error) !important;
    color: white !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.iscu_remove_cart_items_container.collapsed .section-title .tty-dropdown-indicator {
    transform: rotate(-180deg);
}

.iscu_remove_cart_items_container .rejection-content-wrapper,
.iscu_remove_cart_items_container .iscu_cart_item_remove_buttons {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 20px;
    width: fit-content;
}

.iscu_remove_cart_items_container.collapsed .rejection-content-wrapper,
.iscu_remove_cart_items_container.collapsed .iscu_cart_item_remove_buttons {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.iscu_remove_cart_items_container.collapsed {
    padding: 30px;
}

/* Collapsible Rejection/Warning Messages at Questions */
.rejection-message,
.warning-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0;
    margin-top: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.warning-message {
    background: #fffbeb;
    border-color: #fde68a;
}

.rejection-message-header,
.warning-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.rejection-message-header:hover,
.warning-message-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.rejection-message-title,
.warning-message-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-error);
    flex: 1;
}

.warning-message-title {
    color: #d97706;
}

.rejection-message-title i,
.warning-message-title i {
    font-size: 20px;
    flex-shrink: 0;
}

.rejection-message-toggle,
.warning-message-toggle {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: var(--tty-error);
}

.warning-message-toggle {
    color: #d97706;
}

.rejection-message.collapsed .rejection-message-toggle,
.warning-message.collapsed .warning-message-toggle {
    transform: rotate(-90deg);
}

.rejection-message-content,
.warning-message-content {
    padding: 0 16px 16px 16px;
    max-height: 1000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.rejection-message.collapsed .rejection-message-content,
.warning-message.collapsed .warning-message-content {
    max-height: 0;
    opacity: 0;
    padding: 0 16px;
}

/* Next Button - Rejection State */
.anamnese-navigation .next-btn.has-rejection {
    background: var(--tty-error);
    border-color: var(--tty-error);
    color: white;
}

.anamnese-navigation .next-btn.has-rejection:hover:not(:disabled) {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateX(3px);
}

.anamnese-navigation .next-btn.has-rejection:disabled {
    background: #fca5a5;
    border-color: #fca5a5;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-item {
        padding: 10px;
    }
    
    .iscu_remove_cart_items_container .section-title {
        gap: 20px;
    }

    .product-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-status {
        font-size: 13px;
    }
}

/* Temporary Messages */
.anamnese-temp-message {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

.anamnese-temp-message.success {
    border-left-color: #16a34a;
    color: #16a34a;
}

.anamnese-temp-message.error {
    border-left-color: #dc2626;
    color: #dc2626;
}

.anamnese-temp-message.info {
    border-left-color: #005F5F;
    color: #005F5F;
}

.anamnese-temp-message i {
    font-size: 20px;
}

/* Completion Overlay */
.anamnese-completion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.completion-message-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.completion-message-box i {
    font-size: 48px;
    margin-bottom: 20px;
}

.completion-message-box.success i {
    color: #16a34a;
}

.completion-message-box.info i {
    color: #005F5F;
}

.completion-message-box h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: #1f2937;
}

.completion-message-box p {
    margin: 0 0 20px 0;
    color: #6b7280;
}

.completion-message-box .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e5e7eb;
    border-top-color: #005F5F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Removing state for button */
.iscu_remove_cart_item.removing {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Product Items Styling */
.product-item.problematic-product {
    background: #fff;
    border-color: #fecaca;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

.product-status.rejected {
    color: var(--tty-error);
    font-weight: 500;
    font-size: 14px;
}

.product-status.safe {
    color: #16a34a;
    font-weight: 500;
}

.problematic-products-section {
    margin-bottom: 24px;
}

.other-products-section {
    margin-bottom: 24px;
}

/* Required asterisk en help icon styling behouden */
.question-text .required {
    color: var(--tty-error);
    font-size: 22px;
    line-height: 1;
    margin-left: 4px;
    font-weight: 700;
}

.question-text .question-help-icon {
    margin-left: 8px;
    display: inline-block;
}

.question-text .question-help-icon i {
    color: var(--tty-secondary);
    font-size: 20px;
    cursor: help;
    font-style: normal !important;
}

/* Dark theme support voor HTML content */
[data-theme="dark"] .question-text blockquote {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .question-text code {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .question-text pre {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .question-text table th {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .question-text table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .question-text .important {
    background: rgba(242, 151, 31, 0.15);
}

[data-theme="dark"] .question-text .note {
    background: rgba(36, 119, 114, 0.15);
}


.iscu_remove_cart_items_container .rejection-reason {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: var(--tty-error);
  display: flex;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  animation: messageSlide 0.3s ease;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}


/* Mobile responsive voor HTML content */
@media (max-width: 768px) {
    .question-text {
        font-size: 16px;
    }
    
    .question-text h1 { font-size: 22px; }
    .question-text h2 { font-size: 20px; }
    .question-text h3 { font-size: 18px; }
    .question-text h4 { font-size: 16px; }
    
    .question-text ul,
    .question-text ol {
        padding-left: 20px;
    }
    
    .question-text table {
        font-size: 14px;
    }
    
    .question-text table th,
    .question-text table td {
        padding: 8px 10px;
    }
    
    .question-text blockquote {
        padding: 10px 16px;
    }
    
    .question-text .important,
    .question-text .note {
        padding: 10px 14px;
    }
}

/* Print styles voor HTML content */
@media print {
    .question-text {
        color: #000;
    }
    
    .question-text a {
        color: #000;
        text-decoration: underline;
    }
    
    .question-text code,
    .question-text pre {
        background: #f5f5f5;
        border-color: #ddd;
    }
    
    .question-text table {
        border-color: #ddd;
    }
    
    .question-text table th {
        background: #f5f5f5;
    }
}


/* ========================================
   Question Header met Indicators
   ======================================== */
.question-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.question-header .question-text {
    flex: 1;
    min-width: 0;
}

.question-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 2px; /* Align met eerste regel tekst */
}

/* Required asterisk styling */
.question-indicators .required {
    color: var(--tty-error);
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    margin: 0;
}

/* Help icon styling */
.question-indicators .question-help-icon {
    display: flex;
    align-items: center;
    margin: 0;
}

.question-indicators .question-help-icon i {
  color: #E5924C;
  font-size: 30px;
  cursor: help;
  transition: color 0.2s ease;
  margin-top: -10px;
}

.question-indicators .question-help-icon i:hover {
    color: #D07120;
}

/* Backwards compatibility voor oude structuur */
.question-text .required,
.question-text .question-help-icon {
    display: none; /* Hide inline versions if they exist */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .question-header {
        gap: 8px;
    }
    
    .question-indicators {
        gap: 6px;
    }
    
    .question-indicators .required {
        font-size: 20px;
    }
    
    .question-indicators .question-help-icon i {
        font-size: 22px;
        margin-top: 0;
    }
}

/* Dark theme support */
[data-theme="dark"] .question-indicators .required {
    color: var(--tty-error);
}

[data-theme="dark"] .question-indicators .question-help-icon i {
    color: var(--tty-secondary-light);
}

[data-theme="dark"] .question-indicators .question-help-icon i:hover {
    color: var(--tty-secondary);
}


/* ========================================
   Progress Container
   ======================================== */
.anamnese-progress-container {
    margin-bottom: 30px;
    border-radius: 12px;
}

[data-theme="dark"] .anamnese-progress-container {
    background: rgba(18, 18, 18, 0.95);
    border-bottom-color: var(--tty-border-medium, #333);
}

.anamnese-progress-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.anamnese-progress-main {
    margin-bottom: 0;
}

/* ========================================
   Progress Header
   ======================================== */
.anamnese-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.anamnese-progress-question-info {
    font-size: 24px;
    font-weight: 700;
    color: var(--tty-header-primary, #1a1a1a);
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.anamnese-progress-current {
    color: var(--tty-primary, #005F5F);
    font-size: 28px;
}

.anamnese-progress-separator {
    color: #aeaeae;
    font-size: 14px;
}

.anamnese-progress-total {
    color: #aeaeae;
    font-size: 15px;
    font-weight: 500;
}


.anamnese-progress-time-estimate {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tty-text-muted, #999);
    font-size: 14px;
    font-weight: 500;
}

.anamnese-progress-time-estimate i {
    font-size: 25px;
    color: #20716D;
}

/* ========================================
   Progress Bar
   ======================================== */
.anamnese-progress-bar-wrapper {
    position: relative;
}

.anamnese-progress-bar {
    height: 12px;
    background: #d6e6e5;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .anamnese-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.anamnese-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--tty-primary, #005F5F) 0%, var(--tty-primary-light, #007A7A) 100%);
    border-radius: 20px;
    position: relative;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 95, 95, 0.3);
}

.anamnese-progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

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

.start-questionnaire-btn.transtoyou-button i {
  font-size: 24px;
  margin-right: -5px;
}

.anamnese-progress-percentage {
    position: absolute;
    top: -10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tty-primary);
    background: var(--tty-bg-primary, #ffffff);
    padding: 6px 10px 6px 6px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    left: var(--progress-width);
    transform: translateX(-50%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1px;
}

.anamnese-progress-percentage i {
    display: inline-block;
    margin-right: 4px;
    animation: walking 1s steps(2) infinite;
    font-size: 16px;
    color: #ef8928;
}

@keyframes walking {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}


[data-theme="dark"] .anamnese-progress-percentage {
    background: var(--tty-bg-secondary, #2a2a2a);
    color: var(--tty-primary-light, #007A7A);
}

/* ========================================
   Milestone Indicators
   ======================================== */
.anamnese-progress-milestones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.progress-milestone {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--tty-bg-primary, #ffffff);
    border: 2px solid var(--tty-border-light, #e0e0e0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.progress-milestone.achieved {
    background: var(--tty-secondary, #F2971F);
    border-color: var(--tty-secondary, #F2971F);
    transform: translateY(-50%) scale(1.2);
}

.progress-milestone:nth-child(1) { left: 25%; }
.progress-milestone:nth-child(2) { left: 50%; }
.progress-milestone:nth-child(3) { left: 75%; }

/* ========================================
   Mobile Styles
   ======================================== */
@media (max-width: 768px) {
    .anamnese-progress-container {
       padding: 15px 0 5px;
    }
    
    .anamnese-progress-wrapper {
        padding: 0 15px;
    }
    
    .anamnese-progress-question-info {
        font-size: 20px;
    }
    
    .anamnese-progress-current {
        font-size: 24px;
    }
    
    .anamnese-progress-time-estimate {
        font-size: 12px;
    }
    
    .anamnese-progress-bar {
        height: 10px;
    }
}

/* ========================================
   Animations
   ======================================== */
.anamnese-progress-container.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

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

/* Progress celebration animation */
.progress-celebration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.celebration-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--tty-secondary, #F2971F);
    border-radius: 50%;
    animation: particle-burst 1s ease-out forwards;
}

@keyframes particle-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

/* ========================================
   States
   ======================================== */
.anamnese-progress-container.completed .anamnese-progress-fill {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
}

.anamnese-progress-container.completed .anamnese-progress-percentage {
    color: #28a745;
}

/* Loading state */
.anamnese-progress-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   RTL Support
   ======================================== */
[dir="rtl"] .anamnese-progress-header {
    direction: ltr;
}

[dir="rtl"] .anamnese-progress-header > * {
    direction: rtl;
}

[dir="rtl"] .anamnese-progress-percentage {
    right: auto;
    left: 0;
}

[dir="rtl"] .anamnese-progress-glow {
    animation: shimmer-rtl 2s infinite;
}

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



/* Sidebar Progress Styles */
background: var(--tty-bg-primary);
  border-radius: var(--anamnese-border-radius);
  box-shadow: var(--anamnese-shadow-lg);
  padding: 20px;
}

.sidebar-title {
  margin: 0px 0px 25px 0px;
}

.sidebar-section.sidebar-timeline {
  background: var(--tty-bg-primary);
  border-radius: var(--anamnese-border-radius);
  box-shadow: var(--anamnese-shadow-lg);
  padding: 20px;
}


.tty-anamnesse-logo img {
  width: 224px;
  display: flex;
  margin-top: -165px;
  opacity: .1;
  margin-left: -17px;
}


.progress-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    min-width: 40px;
    height: 40px;
    background: var(--tty-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--tty-header-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--tty-text-muted);
    transition: all 0.3s ease;
    line-height: 1.2;
}

.stat-content {
  display: flex;
  align-items: center;
  gap: 5px;
}

#time-remaining {
    min-width: 40px;
    display: inline-block;
    text-align: center;
}

/* Circular Progress */
.visual-progress-container {
    position: relative;
    margin: 30px auto 50px;
    width: 150px;
    height: 150px;
}

.circular-progress {
    position: relative;
    width: 150px;
    height: 150px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #25787330;
    stroke-width: 10;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--tty-primary);
    stroke-width: 10;
    stroke-dasharray: 421.115;
    stroke-dashoffset: 421.115;
    transition: stroke-dashoffset 0.6s ease;
    stroke-linecap: round;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 700;
    color: var(--tty-primary);
}

/* Milestones */
.progress-milestones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.process-step.completed {
  opacity: .8;
}

.process-step:hover {
  opacity: 1;
}

.milestone {
    position: absolute;
    width: 32px;
    height: 32px;
    background: var(--tty-bg-primary);
    border: 2px solid var(--tty-border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tty-text-muted);
    font-size: 15px;
    transition: all 0.3s ease;
}

.milestone[data-progress="25"] { top: 59px; right: -8px; }
.milestone[data-progress="50"] { bottom: -8px; left: 59px; }
.milestone[data-progress="75"] { top: 59px; left: -8px; }
.milestone[data-progress="100"] { top: -8px; left: 59px; }

.milestone.achieved {
    background: var(--tty-secondary);
    border-color: var(--tty-secondary);
    color: white;
    transform: scale(1.2);
}

/* Motivational Message */
.motivational-message {
    text-align: center;
    padding: 15px;
    background: rgba(242, 151, 31, 0.1);
    border-radius: 10px;
    margin-top: 20px;
}

.motivational-message i {
    color: var(--tty-secondary);
    margin-right: 8px;
}

.message-text {
  color: var(--tty-text-primary);
  font-weight: 600;
  font-size: 17px;
}

/* Process Timeline Enhanced */
.process-timeline {
    position: relative;
}

.process-step {
    position: relative;
    padding-bottom: 30px;
    opacity: 0.6;
    transition: all 0.3s ease;
    padding-left: 50px;
}

.sidebar-section.sidebar-tips,
.sidebar-section.sidebar-help {
  margin-top: 30px;
  background: var(--tty-bg-primary);
  border-radius: var(--anamnese-border-radius);
  box-shadow: var(--anamnese-shadow-lg);
  padding: 20px;
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step.completed {
    opacity: 1;
}

.process-step.active {
    opacity: 1;
}

.process-step.active .step-icon {
    background: var(--tty-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 95, 95, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.step-connector {
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--tty-border-light);
}

.process-step:last-child .step-connector {
    display: none;
}

.process-step.completed .step-connector {
    background: var(--tty-primary);
}

.step-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--tty-bg-primary);
    border: 2px solid var(--tty-border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--tty-text-muted);
    transition: all 0.3s ease;
}

.process-step.completed .step-icon {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
    color: white;
}

.step-content {
    padding-left: 15px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--tty-header-primary);
}

.step-description {
    font-size: 13px;
    color: var(--tty-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Tips Section */
.tips-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.tip-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--tty-bg-secondary);
    border-radius: 10px;
    align-items: center;
}

.tip-icon {
    color: var(--tty-primary);
    font-size: 20px;
    flex-shrink: 0;
}

.tip-item p {
    margin: 0;
    font-size: 15px;
    color: #646464;
    line-height: 1.5;
}

/* Help Section */
.help-actions {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.help-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--tty-bg-secondary);
    border: 1px solid var(--tty-border-light);
    border-radius: 10px;
    color: var(--tty-text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-button:hover {
    background: var(--tty-primary);
    color: white;
    border-color: var(--tty-primary);
    transform: translateY(-2px);
}

.support-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tty-border-light);
}

.support-info p {
    margin: 8px 0;
    font-size: 13px;
    color: var(--tty-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-info i {
    color: var(--tty-primary);
}

    
    .progress-stat.time {
        display: flex;
    }
    
    .progress-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }


/* Dark Theme Support */
[data-theme="dark"] .sidebar-progress-overview {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tip-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .help-button {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .motivational-message {
    background: rgba(242, 151, 31, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .anamnese-sidebar {
        margin-top: 30px;
    }
    
    .progress-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .help-actions {
        flex-direction: column;
    }
    
    .iscu_remove_cart_items_container.collapsed,
    .iscu_remove_cart_items_container {
        padding: 10px;
        margin-bottom: 10px;
    }

    .process-timeline {
        padding-left: 40px;
    }
    
    .step-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .step-connector {
        left: 15px;
    }
}

.sidebar-section.sidebar-progress-overview {
  background: var(--tty-bg-primary);
  border-radius: var(--anamnese-border-radius);
  box-shadow: var(--anamnese-shadow-lg);
  padding: 20px;
  display: none;
}


/* ========================================
   Base Styles
   ======================================== */
.anamnese-page-wrapper {
    background: var(--tty-bg-secondary);
}

.medical-products-anamnese {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 120px 20px;
  background: var(--tty-bg-secondary);
}

.sidebar-anamnese-section h3 {
  margin: 0px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.an-sidebar-container {
  margin-top: 30px;
  background: var(--tty-bg-primary);
  border-radius: var(--anamnese-border-radius);
  box-shadow: var(--anamnese-shadow-lg);
  padding: 20px;
}

.item-details {
  display: flex;
  gap: 20px;
}

.anamnese-page-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.anamnese-main-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-anamnese-section {
    max-width: 350px;
}

/* ========================================
   Form Container
   ======================================== */
.anamnese-form {
    position: relative;
    margin-bottom: 40px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.anamnese-form.tty-loading {
    opacity: 0.6;
    min-height: 400px;
    position: relative;
}

.anamnese-form.tty-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid var(--tty-bg-secondary);
    border-top: 4px solid var(--tty-primary);
    border-radius: 50%;
    margin-top: -20px;
    margin-left: -20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ========================================
   WELCOME PAGE - SOCIAL PROOF CONTAINER
   ======================================== */

.social-proof-container {
    background: var(--tty-bg-primary);
    border-radius: var(--anamnese-border-radius);
    box-shadow: var(--anamnese-shadow-lg);
    padding: 50px 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* WELCOME HERO */
.tty-welcome-hero {
    margin-bottom: 60px;
}

.tty-welcome-heading {
    font-size: clamp(36px, 6vw, 62px);
    font-weight: 700;
    margin: 0px;
    line-height: 1.2;
    color: var(--tty-primary);
    letter-spacing: -0.5px;
}

.tty-welcome-subtitle {
    font-size: 18px;
    color: var(--tty-text-secondary);
    margin: 10px auto;
    line-height: 1.4;
    max-width: 650px;
}

.anamnese-required {
  background: #f4d3b6;
  padding: 4px 12px;
  font-size: 12px;
  width: fit-content;
  border-radius: 30px;
  color: #ae6d36;
}

.item-info {
  justify-items: legacy;
  justify-content: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-badge.pending {
  background: #b6d1f4;;
  color: #406493;
}

.status-badge {
  padding: 4px 12px;
  font-size: 12px;
  width: fit-content;
  border-radius: 30px;
  margin-top: 2px;
}

.cart-item {
    background: var(--tty-bg-secondary);
    border: 1px solid var(--tty-bg-secondary);
    border-radius: 10px;
    padding: 14px;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 15px;
}

.cart-item.pending {
  padding: 5px;
  border-radius: 10px;
  background: var(--tty-bg-secondary);
}

.item-name a {
  color: var(--tty-header-primary);
  font-size: 17px;
  font-weight: 600;
}

/* TIMING SECTION */
.tty-timing-section {
    margin-bottom: 50px;
}

.tty-timing-box {
    background: var(--tty-primary-bg);
    border-radius: 12px;
    padding: 24px 30px;
    display: inline-block;
    border-bottom: 1px solid rgba(36, 119, 114, 0.1);
}

.tty-timing-icon {
    font-size: 47px;
    margin-bottom: 8px;
    margin-top: -68px;
    color: #e5924c;
}

.tty-timing-time {
    font-size: 18px;
    font-weight: 700;
    color: var(--tty-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tty-timing-text {
    font-size: 15px;
    color: var(--tty-text-secondary);
    margin: 0;
}


/* NEXT STEPS SECTION */
.tty-next-steps {
    background: var(--tty-bg-secondary);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.tty-next-steps-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tty-header-primary);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tty-next-steps-flow {
    font-size: 15px;
    color: var(--tty-text-primary);
    margin-bottom: 12px;
    line-height: 1.6;
    font-weight: 500;
}

.tty-next-steps-timeline {
    font-size: 12px;
    color: var(--tty-text-secondary);
    margin: 0;
    font-style: italic;
}

/* SUPPORT TEXT */
.tty-support-text {
    font-size: 12px;
    color: var(--tty-text-secondary);
    margin: 20px 0 0 0;
}

/* START BUTTON */
.start-questionnaire-btn {
    margin-top: 30px;
    font-size: 16px;
    padding: 16px 60px;
    display: flex;
    gap: 15px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(40, 40, 50, 0.37);
    font-size: 17px;
}

/* ========================================
   NEXT STEPS - MODERN VISUAL STEPS
   ======================================== */

.tty-next-steps {
    background: linear-gradient(135deg, var(--tty-primary-bg) 0%, rgba(36, 119, 114, 0.05) 100%);
    border-radius: 16px;
    padding: 40px 30px;
    margin: 50px 0;
    border: 1px solid rgba(36, 119, 114, 0.1);
}

.tty-next-steps-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tty-header-primary);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: center;
}

.tty-steps-visual {
    display: flex;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 30px;
    position: relative;
}

.tty-step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.tty-step-number {
    width: 50px;
    height: 50px;
    background: #e5924c;
    color: var(--tty-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(36, 119, 114, 0.2);
    transition: all 0.3s ease;
    z-index: 1;
}

.tty-step-item:hover .tty-step-number {
    transform: scale(1.12);
    box-shadow: 0 6px 16px rgba(36, 119, 114, 0.3);
}

.tty-step-content {
    text-align: center;
    flex: 1;
}

.tty-step-icon {
    font-size: 48px;
    color: var(--tty-primary);
    margin-bottom: 12px;
    display: block;
    transition: all 0.3s ease;
}

.tty-step-item:hover .tty-step-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(36, 119, 114, 0.2));
}

.tty-step-text {
    font-size: 16px;
    color: var(--tty-text-primary);
    line-height: 1.3;
    font-weight: 500;
}

/* Dark Theme */
[data-theme="dark"] .tty-step-icon {
    color: var(--tty-primary-light);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .tty-step-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .tty-step-text {
        font-size: 13px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .tty-step-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .tty-step-text {
        font-size: 12px;
        line-height: 1.4;
    }
}

.tty-step-connector {
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--tty-primary) 0%, rgba(36, 119, 114, 0.3) 50%, transparent 100%);
}

.tty-step-item:last-child .tty-step-connector {
    display: none;
}

.tty-next-steps-timeline {
    text-align: center;
    font-size: 13px;
    color: var(--tty-text-secondary);
    font-style: italic;
    padding-top: 20px;
    border-top: 1px solid rgba(36, 119, 114, 0.1);
}

.tty-support-text {
    font-size: 15px;
    color: var(--tty-text-secondary);
    margin: 24px 0 0 0;
    text-align: center;
    font-weight: 500;
}

/* Dark Theme */
[data-theme="dark"] .tty-next-steps {
    background: linear-gradient(135deg, var(--tty-primary-bg) 0%, rgba(74, 173, 173, 0.05) 100%);
    border-color: rgba(74, 173, 173, 0.1);
}

[data-theme="dark"] .tty-next-steps-title {
    color: var(--tty-text-light);
}

[data-theme="dark"] .tty-step-number {
    background: var(--tty-primary-light);
    box-shadow: 0 4px 12px rgba(74, 173, 173, 0.2);
}

[data-theme="dark"] .tty-step-item:hover .tty-step-number {
    box-shadow: 0 6px 16px rgba(74, 173, 173, 0.3);
}

[data-theme="dark"] .tty-step-text {
    color: var(--tty-text-light);
}

[data-theme="dark"] .tty-step-connector {
    background: linear-gradient(90deg, var(--tty-primary-light) 0%, rgba(74, 173, 173, 0.3) 50%, transparent 100%);
}

[data-theme="dark"] .tty-next-steps-timeline {
    color: var(--tty-text-secondary);
    border-top-color: rgba(74, 173, 173, 0.1);
}

[data-theme="dark"] .tty-support-text {
    color: var(--tty-text-secondary);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .tty-next-steps {
       padding: 20px;
       margin: 50px 0px 20px 0px;
    }
    
    .tty-steps-visual {
        flex-direction: column;
        gap: 30px;
    }
    
    .tty-step-content {
        text-align: left;
        flex: 1;
    }
    
    .tty-step-item {
        flex: none;
        flex-direction: row;
        gap: 30px;
    }
    
    .tty-step-connector {
        display: none !important;
    }
    
    .tty-step-number {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-bottom: 0px;
    }
    
    .tty-step-emoji {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .tty-step-text {
        font-size: 15px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    
    .tty-next-steps-title {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .tty-steps-visual {
        gap: 24px;
    }
    
    .tty-step-emoji {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .tty-step-text {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .tty-next-steps-timeline {
        font-size: 12px;
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .tty-support-text {
        font-size: 12px;
        margin-top: 16px;
    }
}


/* ========================================
   DARK THEME
   ======================================== */

[data-theme="dark"] .social-proof-container {
    background: var(--tty-bg-primary);
}

[data-theme="dark"] .tty-welcome-heading {
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-welcome-subtitle {
    color: var(--tty-text-secondary);
}

[data-theme="dark"] .tty-timing-box {
    background: var(--tty-primary-bg);
}

[data-theme="dark"] .tty-timing-time {
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-timing-text {
    color: var(--tty-text-secondary);
}

[data-theme="dark"] .tty-badge-icon {
    background: var(--tty-primary-bg);
}

[data-theme="dark"] .tty-badge-item:hover .tty-badge-icon {
    background: rgba(74, 173, 173, 0.15);
}

[data-theme="dark"] .tty-badge-icon i {
    color: var(--tty-primary-light);
}

[data-theme="dark"] .tty-badge-title {
    color: var(--tty-text-light);
}

[data-theme="dark"] .tty-badge-desc {
    color: var(--tty-text-secondary);
}

[data-theme="dark"] .tty-next-steps {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .tty-next-steps-title {
    color: var(--tty-text-light);
}

[data-theme="dark"] .tty-next-steps-flow {
    color: var(--tty-text-light);
}

[data-theme="dark"] .tty-next-steps-timeline {
    color: var(--tty-text-secondary);
}

[data-theme="dark"] .tty-support-text {
    color: var(--tty-text-secondary);
}

/* ========================================
   RESPONSIVE - TABLET (768px)
   ======================================== */

@media (max-width: 768px) {

    .tty-welcome-heading {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .tty-welcome-subtitle {
        font-size: 17px;
    }
    
    .tty-timing-time {
        font-size: 16px;
    }
    
    .tty-security-badges {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }
    
    .tty-badge-icon {
        width: 56px;
        height: 56px;
    }
    
    .tty-badge-icon i {
        font-size: 28px;
    }
    
    .tty-badge-title {
        font-size: 13px;
    }
    
    .tty-badge-desc {
        font-size: 11px;
    }
    
    .tty-next-steps-title {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .tty-next-steps-flow {
        font-size: 14px;
    }
    
    .tty-next-steps-timeline {
        font-size: 11px;
    }
    
    .start-questionnaire-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 17px;
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (480px)
   ======================================== */

@media (max-width: 480px) {

    .tty-welcome-heading {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .tty-welcome-subtitle {
        font-size: 17px;
    }
    
    .tty-timing-time {
        font-size: 14px;
    }
    
    .tty-security-badges {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 30px 0;
    }
    
    .tty-badge-item {
        gap: 10px;
    }
    
    .tty-badge-icon {
        width: 48px;
        height: 48px;
    }
    
    .tty-badge-icon i {
        font-size: 24px;
    }
    
    .tty-badge-title {
        font-size: 12px;
    }
    
    .tty-badge-desc {
        font-size: 10px;
    }
    
    .tty-next-steps-title {
        font-size: 13px;
        margin-bottom: 14px;
    }
    
    .tty-next-steps-flow {
        font-size: 13px;
    }
    
    .tty-next-steps-timeline {
        font-size: 10px;
    }
    
    .tty-support-text {
        font-size: 11px;
        margin-top: 16px;
    }
}


/* ========================================
   Questions
   ======================================== */
.anamnese-sections {
    display: none;
}

.question-wrapper {
    background: var(--tty-bg-primary);
    border-radius: var(--anamnese-border-radius);
    padding: 30px;
    box-shadow: var(--anamnese-shadow-md);
    margin-bottom: 30px;
    transition: var(--anamnese-transition);
    border: 2px solid transparent;
    position: relative;
}

.question-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.3s ease;
}

.question-text {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--tty-text-primary);
    line-height: 1.4;
}

/* Validation Message */
.validation-message {
    color: var(--tty-error);
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 15px;
    display: none;
    border-left: 4px solid var(--tty-error);
    font-size: 14px;
    font-weight: 500;
}

.question-wrapper.has-error .validation-message {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

/* Shake Animation */
.shake-animation {
    animation: shake 0.8s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Highlight Effect */
.highlight-question {
    animation: pulse-border 1.5s ease-out;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(242, 151, 31, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(242, 151, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(242, 151, 31, 0); }
}

/* ========================================
   Question Navigation
   ======================================== */
.question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

.question-navigation .nav-left {
    text-align: left;
}

.question-navigation .nav-center {
    flex: 1;
}

.question-navigation .nav-right {
    text-align: right;
}

/* Navigation Buttons */
.btn-prev,
.btn-next,
.btn-submit {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-prev {
    background: var(--tty-bg-secondary);
    color: var(--tty-text-primary);
    border: 2px solid var(--tty-border-light);
}

.btn-prev:hover:not(:disabled) {
    background: var(--tty-primary);
    color: var(--tty-text-light);
    border-color: var(--tty-primary);
    transform: translateY(-2px);
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--tty-primary) 0%, var(--tty-primary-light) 100%);
    color: var(--tty-text-light);
    border: none;
}

.btn-next:hover:not(:disabled),
.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 95, 95, 0.3);
}

/* Disabled State */
.transtoyou-button:disabled,
.transtoyou-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--tty-bg-secondary) !important;
    border-color: var(--tty-border-light) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ========================================
   Question Animations
   ======================================== */
.question-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

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

.slide-out-left {
    animation: slideOutLeft 0.3s ease forwards;
}

.slide-out-right {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideOutLeft {
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* ========================================
   RANGE QUESTIONS - Complete Redesign
   ======================================== */

.range-question {
    position: relative;
    margin: 21px 10px 0px 5px;
}

/* Description */
.range-description {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--tty-text-secondary);
    line-height: 1.5;
}

/* Min/Max bounds */
.range-bounds {
    display: flex;
    justify-content: space-between;
    margin-bottom: -22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tty-header-primary);
}

/* Main container */
.range-container {
    position: relative;
    padding: 50px 0 60px;
}

/* Value bubble */
.range-value-bubble {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tty-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: left 0.1s ease;
    white-space: nowrap;
}

.range-value-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--tty-primary);
}

/* Track wrapper */
.range-track-wrapper {
    position: relative;
    width: 100%;
    height: 8px;
}

/* Background track with gradient */
.range-track-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

/* Progress fill */
.range-track-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    width: 50%;
    pointer-events: none;
    transition: width 0.1s ease;
}

/* The range slider itself */
.range-slider {
  position: absolute;
  top: 0;
  left: -15px;
  width: calc(100% + 30px);
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  z-index: 5;
  right: -15px;
  box-shadow: none !important;
}

/* Slider thumb - Webkit */
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--tty-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.range-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
    background: var(--tty-primary);
}

/* Slider thumb - Firefox */
.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--tty-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.range-slider::-moz-range-thumb:active {
    transform: scale(1.15);
    background: var(--tty-primary);
}

/* Remove default track styles */
.range-slider::-webkit-slider-runnable-track {
    background: transparent;
    height: 8px;
}

.range-slider::-moz-range-track {
    background: transparent;
    height: 8px;
}

/* Markers container */
.range-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 8px;
    pointer-events: none;
}

/* Individual marker */
.range-marker {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    z-index: 3;
}

/* Marker dot */
.marker-dot {
    width: 17px;
    height: 17px;
    background: white;
    border: 2px solid #ced4da;
    border-radius: 50%;
    margin-top: -4.7px;
    transition: all 0.2s ease;
}

.range-marker:hover .marker-dot {
    transform: scale(1.3);
    background: var(--tty-primary);
    border-color: var(--tty-primary);
}

.range-marker.active .marker-dot {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(36, 119, 114, 0.2);
}

/* Marker label */
.marker-label {
    position: absolute;
    top: 25px;
    font-size: 13px;
    color: var(--tty-text-secondary);
    white-space: nowrap;
    transition: all 0.2s ease;
    font-weight: 400;
}

/* Adjust first and last marker labels */
.range-marker:first-child .marker-label {
    left: 0;
}

.range-marker:last-child .marker-label {
    right: 0;
}

.range-marker:hover .marker-label {
    color: var(--tty-primary);
    font-weight: 500;
}

.range-marker.active .marker-label {
    color: var(--tty-primary);
    font-weight: 600;
}

/* Dark theme */
[data-theme="dark"] .range-track-bg {
    opacity: 0.8;
}

[data-theme="dark"] .range-track-progress {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .range-slider::-webkit-slider-thumb {
    background: var(--tty-bg-primary);
}

[data-theme="dark"] .range-slider::-moz-range-thumb {
    background: var(--tty-bg-primary);
}

[data-theme="dark"] .marker-dot {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile */
@media (max-width: 768px) {
    .range-container {
        padding: 50px 0 70px;
    }
    
    .marker-label.marker-middle {
        display: none;
    }
    
    .marker-label {
        font-size: 11px;
        top: 30px;
    }
}

/* ========================================
   DATE QUESTIONS - Modern date picker styling
   ======================================== */

.date-question {
    position: relative;
    padding: 10px 0;
}

/* Form floating container */
.date-question .form-floating {
    position: relative;
    margin-bottom: 10px;
}

/* Calendar icon */
.date-question .calendar-icon {
    position: absolute;
    right: 15px;
    top: 28px;
    transform: translateY(-50%);
    color: var(--tty-text-secondary);
    font-size: 18px;
    pointer-events: auto;
    z-index: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.date-question .calendar-icon:hover {
    color: var(--tty-primary);
}

/* Floating label */
.date-question .form-floating label {
    position: absolute;
    top: 32px;
    left: 14px;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--tty-text-secondary);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1;
}

.date-question .form-floating input:focus ~ label,
.date-question .form-floating input:not(:placeholder-shown) ~ label,
.date-question .form-floating label.active {
    top: -8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transform: translateY(0) !important;
    line-height: 18px;
    background: var(--tty-bg-primary);
    padding: 0px 5px;
    border-radius: 5px;
    z-index: 2;
}

/* Date field styling */
.date-field {
    width: 100%;
    height: 56px;
    padding: 20px 40px 10px 14px;
    border: 2px solid var(--tty-border-light);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--tty-bg-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.date-field:focus {
    outline: none;
    border-color: var(--tty-primary);
    box-shadow: 0 0 0 3px rgba(36, 119, 114, 0.1);
}

.date-field::placeholder {
    color: transparent;
}

/* Flatpickr input styling */
.flatpickr-input.flatpickr-input {
    width: 100% !important;
    height: 56px !important;
    padding: 20px 40px 10px 14px !important;
    border: 2px solid var(--tty-border-light) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background-color: var(--tty-bg-primary) !important;
    transition: all 0.2s ease;
    cursor: pointer !important;
    box-shadow: none !important;
}

.flatpickr-input:focus {
    outline: none;
    border-color: var(--tty-primary) !important;
    box-shadow: 0 0 0 3px rgba(36, 119, 114, 0.1) !important;
}

/* Relative date options */
.relative-date-options {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--tty-bg-secondary);
    border: 1px solid var(--tty-border-light);
    border-radius: 8px;
}

.date-options-section {
    margin-bottom: 15px;
}

.date-options-section:last-child {
    margin-bottom: 0;
}

.date-options-title {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--tty-header-primary);
    font-size: 14px;
}

.date-options-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.date-option-btn {
    background-color: var(--tty-bg-primary);
    border: 2px solid var(--tty-border-light);
    color: var(--tty-text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.date-option-btn:hover {
    background-color: var(--tty-primary);
    border-color: var(--tty-primary);
    color: white;
}

.date-option-btn.active {
    background-color: var(--tty-primary);
    border-color: var(--tty-primary);
    color: white;
    box-shadow: 0 2px 5px rgba(36, 119, 114, 0.3);
}

.year-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
}

.year-btn {
    text-align: center;
}

/* Flatpickr calendar customization */
.flatpickr-calendar {
    background: var(--tty-bg-primary);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--tty-border-light);
    padding: 10px;
    width: 320px;
}

.flatpickr-months {
    padding: 10px 0;
    background: var(--tty-bg-secondary);
    height: 70px;
}

.flatpickr-months .flatpickr-month {
    height: 60px;
    overflow: visible !important;
}

.flatpickr-current-month {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--tty-header-primary) !important;
}

.flatpickr-current-month input.cur-year {
    width: 70px !important;
    font-size: 18px !important;
    padding: 5px !important;
    border: 1px solid var(--tty-border-light);
    border-radius: 5px;
    margin-left: 5px;
}

.flatpickr-monthDropdown {
    padding: 8px 5px;
    border-radius: 5px;
    border: 1px solid var(--tty-border-light);
    background: var(--tty-bg-primary);
    font-size: 16px;
    width: 110px;
    appearance: none;
}

.flatpickr-day {
    border-radius: 5px;
    margin: 3px;
    width: 38px;
    height: 38px;
    line-height: 38px;
    color: var(--tty-text-primary);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: var(--tty-primary) !important;
    border-color: var(--tty-primary) !important;
    color: white;
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
    background: rgba(36, 119, 114, 0.1);
    border-color: transparent;
    color: var(--tty-primary);
}

.flatpickr-day.today {
    border-color: var(--tty-primary);
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    border-color: var(--tty-primary);
    background: var(--tty-primary);
    color: white;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    padding: 10px;
    color: var(--tty-header-primary);
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: var(--tty-primary);
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    width: 16px;
    height: 16px;
}

.flatpickr-weekday {
    color: var(--tty-header-primary);
    font-weight: 500;
}

.flatpickr-wrapper {
    position: relative;
    width: 100%;
}

/* Date format hint */
.date-format-hint {
    margin-top: 8px;
    font-size: 13px;
    color: var(--tty-text-secondary);
}

/* Validation message */
.date-validation-message {
    color: var(--tty-error);
    font-size: 13px;
    margin-top: 5px;
}

/* Error state */
.question-wrapper.has-error .date-field,
.question-wrapper.has-error .flatpickr-input {
    border-color: var(--tty-error) !important;
}

/* Dark theme support */
[data-theme="dark"] .date-question .form-floating label.active {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .relative-date-options {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .date-option-btn {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .flatpickr-calendar {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .flatpickr-months {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .flatpickr-day {
    color: var(--tty-text-primary);
}

/* Mobile responsive */
@media (max-width: 576px) {
    .date-options-buttons {
        flex-direction: column;
    }
    
    .date-option-btn {
        width: 100%;
        text-align: left;
    }
    
    .year-buttons {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}

/* ========================================
   FILE QUESTIONS - Modern drag & drop upload
   ======================================== */

.file-upload-question {
    position: relative;
    padding: 10px 0;
}

/* Upload container */
.file-upload-container {
    position: relative;
}

/* Upload area - drag & drop zone */
.file-upload-area {
    position: relative;
    background: var(--tty-bg-primary);
    border: 2px dashed var(--tty-border-light);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--tty-primary);
    background: rgba(36, 119, 114, 0.02);
}

.file-upload-area.drag-over {
    background: rgba(36, 119, 114, 0.05);
    border-color: var(--tty-primary);
    border-style: solid;
    transform: scale(1.02);
}

.file-upload-area.has-file {
    border-style: solid;
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.02);
}

/* Upload text variations for desktop vs mobile */
.upload-text-desktop {
    display: block;
}

.upload-text-mobile {
    display: none;
}

/* Mobile upload action buttons */
.tty-upload-actions {
    display: none;
    gap: 12px;
    margin-top: 20px;
}

.tty-upload-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--tty-bg-primary);
    border: 2px solid var(--tty-primary);
    border-radius: 12px;
    color: var(--tty-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.tty-upload-action-btn:hover {
    background: var(--tty-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 119, 114, 0.2);
}

.tty-upload-action-btn:active {
    transform: translateY(0);
}

.tty-upload-action-btn i {
    font-size: 20px;
}

/* Dark theme support for action buttons */
[data-theme="dark"] .tty-upload-action-btn {
    background: var(--tty-bg-secondary);
    border-color: var(--tty-primary);
}

[data-theme="dark"] .tty-upload-action-btn:hover {
    background: var(--tty-primary);
}

/* Mobile and tablet specific styles */
@media (max-width: 768px) {
    .upload-text-desktop {
        display: none;
    }
    
    .upload-text-mobile {
        display: block;
    }
    
    .drag-hint {
        display: none;
    }
    
    .tty-upload-actions {
        display: flex;
    }
    
    .file-upload-area {
        cursor: default;
        padding: 30px 15px;
    }
    
    .file-upload-label {
        cursor: default;
        pointer-events: none;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .tty-upload-actions {
        flex-direction: column;
    }
    
    .tty-upload-action-btn {
        width: 100%;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .tty-upload-action-btn {
        min-height: 48px;
    }
}

/* Hidden file input */
.file-upload-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Upload label */
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* Upload icon */
.file-upload-icon {
    font-size: 48px;
    color: var(--tty-primary);
    transition: all 0.3s ease;
}

.file-upload-area:hover .file-upload-icon {
    transform: translateY(-5px);
}

.file-upload-area.drag-over .file-upload-icon {
    transform: scale(1.2);
    color: var(--tty-primary);
}

/* Upload text */
.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--tty-header-primary);
    margin-bottom: 8px;
}

/* File types */
.file-types {
    display: inline-block;
    padding: 6px 16px;
    background: var(--tty-bg-secondary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tty-text-secondary);
}

/* Drag hint */
.drag-hint {
    font-size: 14px;
    color: var(--tty-text-muted);
    margin-top: 8px;
}

/* File info display */
.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--tty-bg-secondary);
    border: 1px solid var(--tty-border-light);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 15px;
}

.file-info-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 24px;
    color: var(--tty-primary);
}

.file-details {
    flex: 1;
}

.file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tty-header-primary);
    word-break: break-word;
}

.file-size {
    font-size: 12px;
    color: var(--tty-text-secondary);
    margin-top: 2px;
}

/* Remove file button */
.remove-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--tty-bg-primary);
    border: 2px solid var(--tty-border-light);
    border-radius: 6px;
    color: var(--tty-text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #dc3545;
}

.remove-file-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--tty-shadow-sm);
  border-color: var(--tty-primary);
}

/* File preview */
.file-preview {
    margin-top: 20px;
    padding: 20px;
    background: var(--tty-bg-secondary);
    border-radius: 8px;
    text-align: center;
}

.file-preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pdf-preview,
.generic-file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pdf-preview i,
.generic-file-preview i {
    font-size: 64px;
    color: var(--tty-primary);
}

.pdf-preview span,
.generic-file-preview span {
    font-size: 14px;
    font-weight: 500;
    color: var(--tty-text-secondary);
}

/* File requirements info */
.file-requirements {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(36, 119, 114, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--tty-primary);
}

.file-requirements-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--tty-header-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-requirements-title i {
    color: var(--tty-primary);
    font-size: 14px;
}

.file-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-requirements-list li {
    font-size: 12px;
    color: var(--tty-text-secondary);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0px;
}

.file-requirements-list li i {
    color: var(--tty-primary);
    font-size: 10px;
}

/* Validation message */
.file-validation-message {
    color: var(--tty-error);
    font-size: 13px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-validation-message i {
    font-size: 14px;
}

/* Error state */
.question-wrapper.has-error .file-upload-area {
    border-color: var(--tty-error);
    background: rgba(220, 53, 69, 0.02);
}

/* Success animation */
@keyframes fileUploadSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.file-upload-area.upload-success {
    animation: fileUploadSuccess 0.5s ease;
}

/* Dark theme */
[data-theme="dark"] .file-upload-area {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .file-upload-area:hover {
    background: rgba(36, 119, 114, 0.1);
}

[data-theme="dark"] .file-upload-area.drag-over {
    background: rgba(36, 119, 114, 0.15);
}

[data-theme="dark"] .file-info {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .file-types {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .file-preview {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .file-requirements {
    background: rgba(36, 119, 114, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .file-upload-icon {
        font-size: 36px;
    }
    
    .upload-text {
        font-size: 16px;
    }
    
    .drag-hint {
        display: none;
    }
    
    .file-info {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .file-info-content {
        width: 100%;
    }
    
    .remove-file-btn {
        align-self: flex-end;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .file-upload-area {
        min-height: 120px;
    }
}


/* ========================================
   Loading Overlay
   ======================================== */
.anamnese-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

[data-theme="dark"] .anamnese-loading-overlay {
    background: rgba(18, 18, 18, 0.95);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--tty-bg-secondary);
    border-top: 4px solid var(--tty-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-message {
    margin-top: 20px;
    font-size: 17px;
    color: var(--tty-text-secondary);
    font-weight: 500;
}

/* ========================================
   Completion Screen
   ======================================== */
.completion-container {
    text-align: center;
    padding: 60px 40px;
    background: var(--tty-bg-primary);
    border-radius: var(--anamnese-border-radius);
    box-shadow: var(--anamnese-shadow-lg);
    max-width: 700px;
    margin: 0 auto;
}

.completion-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 50px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.completion-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: rotate 3s linear infinite;
}

.completion-icon.animate-success {
    animation: scaleSuccess 0.6s ease-out;
}

@keyframes scaleSuccess {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.completion-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--tty-header-primary);
    margin-bottom: 20px;
}

.completion-message {
    font-size: 18px;
    color: var(--tty-text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.completion-next-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* ========================================
   Notices
   ======================================== */
.anamnese-rejection-notice {
    padding: 20px;
    margin: 20px 0;
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--tty-error);
    color: var(--tty-error);
    border-radius: var(--anamnese-border-radius);
    box-shadow: var(--anamnese-shadow-sm);
}

.anamnese-rejection-notice h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.anamnese-rejection-notice ul {
    margin: 0;
    padding-left: 20px;
}

.anamnese-rejection-notice li {
    margin-bottom: 8px;
}

.anamnese-message {
    padding: 20px;
    margin: 20px 0;
    border-radius: var(--anamnese-border-radius);
    box-shadow: var(--anamnese-shadow-sm);
    animation: slideDown 0.3s ease-out;
}

.anamnese-message.anamnese-error {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--tty-error);
    color: var(--tty-error);
}

/* Page-level error state */
.anamnese-page-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    max-width: 480px;
    margin: 0 auto;
}

.anamnese-page-error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(36, 119, 114, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.anamnese-page-error-icon i {
    font-size: 36px;
    color: var(--tty-primary);
}

.anamnese-page-error h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--tty-header-primary);
    margin: 0 0 12px 0;
}

.anamnese-page-error p {
    font-size: 15px;
    color: var(--tty-text-secondary);
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.anamnese-page-error .transtoyou-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* ========================================
   Mobile Styles
   ======================================== */
@media (max-width: 992px) {
    .anamnese-page-container {
        flex-direction: column;
    }
    
    .sidebar-anamnese-section {
        width: 100%;
        max-width: none;
        position: static;
    }
}

@media (max-width: 768px) {
    .anamnese-page-wrapper {
        padding: 0px;
    }
    
    .sidebar-section.sidebar-progress-overview,
    .sidebar-section.sidebar-timeline,
    .an-sidebar-container {
        padding: 10px;
    }
    
    .medical-products-anamnese {
        padding: 0px 10px 120px 10px;
        background: var(--tty-bg-secondary);
        margin-top: 5px;
    }
    
    .confirmation-buttons, .bypass-buttons {
        flex-direction: column;
    }

    .social-proof-container {
       padding: 20px;
        margin-top: 10px;
    }
    
    .social-proof-title {
        font-size: 28px;
    }
    
    .social-proof-subtitle {
        font-size: 16px;
    }
    
    .question-wrapper {
        padding: 10px;
        margin-bottom: 0px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .question-navigation {
        gap: 15px;
        margin-bottom: 5px;
    }
    
    .sidebar-section.sidebar-progress-overview .sidebar-title {
        text-align: center;
        justify-content: center;
        margin-top: 10px;
    }
    
    .anamnese-form {
        position: relative;
        margin-bottom: 0px;
    }
    
    .nav-left,
    .nav-right {
        width: 100%;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .completion-container {
        padding: 40px 20px;
    }
    
    .completion-next-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .transtoyou-button-light {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Touch Optimizations */
.tty-mobile .transtoyou-button,
.tty-mobile .btn-prev,
.tty-mobile .btn-next,
.tty-mobile .btn-submit {
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
}

.tty-mobile input[type="radio"],
.tty-mobile input[type="checkbox"] {
    min-width: 24px;
    min-height: 24px;
}

/* Dark Theme Support */
[data-theme="dark"] .social-proof-container {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .testimonial-container {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .question-wrapper {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .completion-container {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .loading-spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: var(--tty-primary-light);
}

/* RTL Support */
[dir="rtl"] .question-wrapper::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .validation-message {
    border-left: none;
    border-right: 4px solid var(--tty-error);
}

[dir="rtl"] .btn-prev i {
    transform: scaleX(-1);
}

[dir="rtl"] .btn-next i {
    transform: scaleX(-1);
}

[dir="rtl"] .question-navigation {
    direction: ltr;
}

[dir="rtl"] .question-navigation > * {
    direction: rtl;
}

/* ========================================
   YES/NO QUESTIONS - Subtiele moderne styling
   ======================================== */

.yes-no-question {
    position: relative;
    padding: 10px 0;
}

/* Yes/No Options Container */
.yes-no-options {
    display: flex;
    gap: 16px;
}

/* Individual Option */
.yes-no-option {
    flex: 1;
    position: relative;
    cursor: pointer;
    max-width: 200px;
}

.yes-no-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Button Styling - Subtiel en compact */
.yes-no-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--tty-bg-secondary);
    border: 2px solid var(--tty-border-light);
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    color: var(--tty-text-secondary);
    transition: all 0.2s ease;
    user-select: none;
}

.yes-no-button i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

/* Hover State */
.yes-no-option:hover .yes-no-button {
    border-color: var(--tty-secondary);
    background: rgba(36, 119, 114, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Checked State - Subtiel maar duidelijk */
.yes-no-input:checked ~ .yes-no-button {
    background: var(--tty-secondary);
    border-color: var(--tty-secondary);
    color: var(--tty-text-light);
    box-shadow: 0 4px 12px rgba(36, 119, 114, 0.2);
}

.yes-no-input:checked ~ .yes-no-button i {
    transform: scale(1.1);
}

/* Focus State for Accessibility */
.yes-no-input:focus-visible ~ .yes-no-button {
    outline: 3px solid rgba(36, 119, 114, 0.3);
    outline-offset: 3px;
}

/* Dark Theme Support */
[data-theme="dark"] .yes-no-button {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--tty-text-primary);
}

[data-theme="dark"] .yes-no-input:checked ~ .yes-no-button {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
    color: var(--tty-text-light);
}

/* ========================================
   CONFIRMATION QUESTIONS - Scrollable terms with single checkbox
   ======================================== */

.confirmation-question {
    position: relative;
    padding: 10px 0;
}

.confirmation-scroll-instruction {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(36, 119, 114, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(36, 119, 114, 0.1);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--tty-text-secondary);
    transition: all 0.3s ease;
}

.confirmation-scroll-instruction.hidden {
    display: none !important;
}

.confirmation-scroll-instruction i {
    color: var(--tty-primary);
    font-size: 18px;
}

/* Terms container */
.confirmation-terms-container {
    background: var(--tty-bg-secondary);
    border: 2px solid var(--tty-border-light);
    border-radius: 12px;
    min-height: 120px;
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--tty-primary) var(--tty-bg-secondary);
}

.confirmation-terms-container.no-scroll-needed {
    max-height: none;
    overflow-y: visible;
}

.confirmation-terms-container.scroll-enabled {
    max-height: 60vh;
    overflow-y: auto;
}

.confirmation-terms-container.scroll-needed {
    max-height: 300px;
    overflow-y: auto;
}

/* Webkit scrollbar */
.confirmation-terms-container::-webkit-scrollbar {
    width: 8px;
}

.confirmation-terms-container::-webkit-scrollbar-track {
    background: var(--tty-bg-secondary);
    border-radius: 4px;
}

.confirmation-terms-container::-webkit-scrollbar-thumb {
    background: var(--tty-primary);
    border-radius: 4px;
}

.confirmation-terms-container::-webkit-scrollbar-thumb:hover {
    background: var(--tty-primary-dark);
}

/* Scroll complete state */
.confirmation-terms-container[data-scrolled="true"] {
    border-color: var(--tty-primary);
    box-shadow: 0 0 0 3px rgba(36, 119, 114, 0.1);
}

/* Highlight scroll state */
.confirmation-terms-container.highlight-scroll {
    animation: pulseGlow 1s ease;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(242, 151, 31, 0); }
    50% { box-shadow: 0 0 0 8px rgba(242, 151, 31, 0.3); }
}

/* Scroll complete animation */
.confirmation-terms-container.scroll-complete {
    animation: checkComplete 0.5s ease;
}

@keyframes checkComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Terms content */
.confirmation-terms-content {
    padding: 20px;
}

/* Individual term item */
.confirmation-term-item {
    display: flex;
    gap: 16px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tty-border-light);
    align-items: center;
   justify-content: center;
}

.confirmation-term-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Term number */
.term-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--tty-secondary);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

/* Term content */
.term-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: var(--tty-text-primary);
}

.term-content p {
    margin: 0 0 12px 0;
    font-size: 15px;
}

.term-content p:last-child {
    margin-bottom: 0;
}

.term-content ul,
.term-content ol {
    margin: 12px 0;
    padding-left: 20px;
}

.term-content li {
    margin-bottom: 8px;
}

/* Scroll indicator */
.confirmation-scroll-indicator {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--tty-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: bounce 2s infinite;
    box-shadow: 0 4px 12px rgba(36, 119, 114, 0.3);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirmation-scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
    background: var(--tty-primary-dark);
    box-shadow: 0 6px 16px rgba(36, 119, 114, 0.4);
}

.confirmation-scroll-indicator i {
    font-size: 16px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Accept container */
.confirmation-accept-container {
    margin-top: 20px;
}

/* Confirmation label */
.confirmation-label {
    display: block;
    cursor: pointer;
}

.confirmation-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Confirmation button */
.confirmation-button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--tty-bg-primary);
    border: 2px solid var(--tty-border-light);
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.confirmation-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Checkbox indicator */
.confirmation-indicator {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--tty-border-medium);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.confirmation-indicator::after {
 content: '';
  position: absolute;
  top: 0px;
  left: 5px;
  width: 5px;
  height: 11px;
  border: solid var(--tty-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}

/* Confirmation text */
.confirmation-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--tty-text-primary);
    flex: 1;
}

/* Hover state */
.confirmation-button:not(.disabled):hover {
    border-color: var(--tty-secondary);
    background: rgba(36, 119, 114, 0.03);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.confirmation-button:not(.disabled):hover .confirmation-indicator {
    border-color: var(--tty-secondary);
}

/* Checked state */
.confirmation-checkbox:checked ~ .confirmation-button {
    background: var(--tty-secondary);
    border-color: var(--tty-secondary);
}

.confirmation-checkbox:checked ~ .confirmation-button .confirmation-text {
    color: white;
}

.confirmation-checkbox:checked ~ .confirmation-button .confirmation-indicator {
    border-color: white;
    background: white;
}

.confirmation-checkbox:checked ~ .confirmation-button .confirmation-indicator::after {
    transform: rotate(45deg) scale(1);
}

/* Focus state */
.confirmation-checkbox:focus-visible ~ .confirmation-button {
    outline: 3px solid rgba(36, 119, 114, 0.3);
    outline-offset: 2px;
}

/* Ready to confirm animation */
.confirmation-button.ready-to-confirm {
    animation: readyPulse 0.6s ease;
}

@keyframes readyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Validation message */
.confirmation-question .question-validation-message {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(220, 53, 69, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--tty-error);
    color: var(--tty-error);
    font-size: 14px;
    font-weight: 500;
}

.confirmation-question .question-validation-message.show {
    display: flex;
    animation: shakeError 0.4s ease;
}

.confirmation-question .question-validation-message i {
    font-size: 16px;
}

/* Dark theme support */
[data-theme="dark"] .confirmation-terms-container {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .term-content {
    color: var(--tty-text-primary);
}

[data-theme="dark"] .confirmation-button {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .confirmation-checkbox:checked ~ .confirmation-button {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
}

@media (max-width: 768px) {
    .confirmation-terms-container {
        max-height: 50vh; /* 50% on mobile for better UX */
    }
    
    .confirmation-terms-container.scroll-enabled {
        max-height: 50vh;
    }
    
    .confirmation-terms-content {
        padding: 16px;
    }
    
    .confirmation-term-item {
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .term-number {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .term-content {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .confirmation-button {
        padding: 14px 16px;
        margin-bottom: 20px;
    }
    
    .confirmation-text {
        font-size: 14px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .confirmation-terms-container {
        max-height: 45vh; /* Even smaller on very small screens */
    }
    
    .confirmation-terms-container.scroll-enabled {
        max-height: 45vh;
    }
}


/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
    .confirmation-button {
        min-height: 48px;
    }
    
    .confirmation-terms-container {
        scrollbar-width: auto;
    }
}

/* ========================================
   TEXT QUESTIONS - Simpele moderne styling
   ======================================== */

.text-question {
    position: relative;
    padding: 10px 0;
}

/* Container */
.text-input-container {
    position: relative;
}

.question-answer.text-question textarea.text-field {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
  position: relative;
  background: var(--tty-bg-primary);
  border-radius: 12px;
  padding: 20px;
  border: 2px solid var(--tty-border-light);
  transition: all 0.2s ease;
}

.question-answer.text-question textarea.text-field:focus-within {
    border-color: var(--tty-primary);
    box-shadow: 0 0 0 3px rgba(36, 119, 114, 0.1);
}

/* Label styling */
.text-input-label {
    position: absolute;
    top: 22px;
    left: 20px;
    font-size: 15px;
    color: var(--tty-text-secondary);
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--tty-bg-primary);
    padding: 0 8px;
}

/* Active label */
.text-input-label.active,
.text-field:focus ~ .text-input-label,
.text-field:not(:placeholder-shown) ~ .text-input-label {
    top: -10px;
    font-size: 13px;
    color: var(--tty-primary);
    font-weight: 600;
}

/* Text field */
.text-field {
    width: 100%;
    outline: none;
}

.text-field::placeholder {
    color: transparent;
}

textarea.text-field {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

/* Character counter */
.character-counter {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--tty-text-secondary);
}

.character-counter .current-count {
    font-weight: 600;
    transition: color 0.2s ease;
}

.character-counter.warning-state .current-count {
    color: #ff9800;
}

.character-counter.too-long .current-count {
    color: var(--tty-error);
}

.character-counter.valid .current-count {
    color: #28a745;
}

/* Validation hint */
.text-validation-hint {
    font-size: 13px;
    color: var(--tty-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.text-validation-hint i {
    font-size: 14px;
    color: var(--tty-primary);
}

/* Input validation info */
.text-input-validation {
    margin-top: 12px;
    font-size: 13px;
    color: var(--tty-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.text-input-validation i {
    font-size: 16px;
    color: var(--tty-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Keyword suggestions */
.keyword-suggestions {
    margin-top: 15px;
}

.keyword-suggestions-container {
    background: var(--tty-bg-secondary);
    border-radius: 10px;
    padding: 15px;
}

.suggestions-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--tty-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.suggestions-title i {
    color: var(--tty-primary);
    font-size: 14px;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-chip {
    display: inline-block;
    background: var(--tty-bg-primary);
    border: 1px solid var(--tty-border-light);
    color: var(--tty-text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.keyword-chip:hover {
    border-color: var(--tty-primary);
    background: rgba(36, 119, 114, 0.05);
}

/* Validation message */
.text-validation-message {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(220, 53, 69, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--tty-error);
    color: var(--tty-error);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-validation-message i {
    font-size: 16px;
}

/* Error state */
.question-wrapper.has-error .text-input-wrapper {
    border-color: var(--tty-error);
}

.question-wrapper.has-error .text-field {
    color: var(--tty-error);
}

.question-wrapper.has-error .text-input-label {
    color: var(--tty-error);
}

/* Dark theme */
[data-theme="dark"] .text-input-wrapper {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .text-input-label {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .text-input-label.active,
[data-theme="dark"] .text-field:focus ~ .text-input-label,
[data-theme="dark"] .text-field:not(:placeholder-shown) ~ .text-input-label {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .keyword-suggestions-container {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .keyword-chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Mobile */
@media (max-width: 768px) {
    .text-input-wrapper {
        padding: 16px;
    }
    
    .text-field {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .character-counter {
        font-size: 12px;
    }
    
    .keyword-chip {
        font-size: 12px;
        padding: 5px 12px;
    }
}


/* ========================================
   GENDER QUESTIONS - Simpele card-based styling
   ======================================== */

.gender-question {
    position: relative;
    padding: 10px 0;
}

/* Gender cards container */
.gender-cards {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* Individual gender card */
.gender-card {
    flex: 1;
    max-width: 200px;
    position: relative;
}

/* Hidden radio input */
.gender-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Card label */
.gender-label {
    display: block;
    cursor: pointer;
}

/* Card button styling */
.gender-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 20px;
    background: var(--tty-bg-secondary);
    border: 2px solid var(--tty-border-light);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: center;
}

/* Gender icon */
.gender-icon {
    font-size: 28px;
    color: var(--tty-text-secondary);
    transition: all 0.2s ease;
}

.gender-card.card-male .gender-icon,
.gender-card.card-female .gender-icon {
    color: #005F5F;
}


/* Gender text */
.gender-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--tty-text-primary);
    transition: all 0.2s ease;
}

/* Hover state */
.gender-card:hover .gender-button {
    border-color: var(--tty-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gender-card:hover .gender-icon {
    transform: scale(1.1);
}

/* Selected state */
.gender-input:checked ~ .gender-label .gender-button {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
    box-shadow: 0 4px 12px rgba(36, 119, 114, 0.2);
}

.gender-input:checked ~ .gender-label .gender-icon,
.gender-input:checked ~ .gender-label .gender-text {
    color: white;
}

/* Focus state */
.gender-input:focus-visible ~ .gender-label .gender-button {
    outline: 3px solid rgba(36, 119, 114, 0.3);
    outline-offset: 3px;
}

/* Image options */
.gender-card.has-image .gender-button {
    padding: 0;
    overflow: hidden;
}

.gender-image-container {
    position: relative;
    width: 100%;
}

.gender-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.gender-card:hover .gender-image-container img {
    transform: scale(1.05);
}

/* Radio indicator for images */
.gender-radio-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--tty-border-medium);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.gender-radio-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--tty-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.gender-input:checked ~ .gender-label .gender-radio-indicator {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
}

.gender-input:checked ~ .gender-label .gender-radio-indicator::after {
    transform: translate(-50%, -50%) scale(1);
    background: white;
}

/* Text below image */
.gender-card.has-image .gender-text {
    padding: 12px;
}

/* Validation message */
.gender-validation-message {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(220, 53, 69, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--tty-error);
    color: var(--tty-error);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gender-validation-message i {
    font-size: 16px;
}

/* Error state */
.question-wrapper.has-error .gender-button {
    border-color: var(--tty-error);
}

/* Dark theme */
[data-theme="dark"] .gender-button {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .gender-input:checked ~ .gender-label .gender-button {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
}

[data-theme="dark"] .gender-radio-indicator {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gender-cards {
        gap: 15px;
    }
    
    .gender-card {
        max-width: none;
    }
    
    .gender-button {
        padding: 25px 15px;
        min-height: 120px;
    }
    
    .gender-icon {
        font-size: 32px;
    }
    
    .gender-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gender-cards {
        gap: 12px;
    }
    
    .gender-button {
        padding: 20px 12px;
        min-height: 100px;
    }
    
    .gender-icon {
        font-size: 28px;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .gender-button {
        min-height: 48px;
    }
    
    .gender-card:active .gender-button {
        transform: scale(0.98);
    }
}



/* ========================================
   QUESTION DETAILS - Universeel voor alle vraagtypen
   ======================================== */

.question-details-container {
    margin-top: 20px;
}

.question-details {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.question-details.show {
    display: block !important;
    animation: slideDown 0.3s ease forwards;
}

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

.details-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--tty-text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.details-header i {
    color: var(--tty-primary);
    font-size: 16px;
}

.required-badge {
    background: var(--tty-error);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.details-field {
    width: 100%;
    min-height: 100px;
    padding: 12px !important;
    background: var(--tty-bg-primary);
    border: 2px solid var(--tty-border-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.details-field:focus {
    outline: none;
    border-color: var(--tty-primary);
    box-shadow: 0 0 0 3px rgba(36, 119, 114, 0.1);
}

.details-field.invalid {
    border-color: var(--tty-error);
}

/* ========================================
   QUESTION MESSAGES - Universeel systeem
   ======================================== */

.question-message {
    display: none;
    margin-top: 17px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 17px;
    line-height: 1.5;
    animation: messageSlide 0.3s ease;
}

.question-message.show {
    display: flex;
    gap: 12px;
    align-items: center;
}

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

.question-message i {
    font-size: 20px;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    font-weight: 500;
}

/* Rejection Message Styling */
.rejection-message {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: var(--tty-error);
}

.rejection-message i {
    color: var(--tty-error);
}

/* Warning Message Styling */
.warning-message {
    background: rgba(254, 173, 15, 0.08);
    border: 1px solid rgba(254, 173, 15, 0.2);
    color: #856404;
}

.warning-message i {
    color: var(--tty-warning);
}

/* Info Message Styling */
.info-message {
    background: rgba(36, 119, 114, 0.08);
    border: 1px solid rgba(36, 119, 114, 0.2);
    color: var(--tty-primary);
}

.info-message i {
    color: var(--tty-primary);
}

/* Success Message Styling */
.success-message {
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #155724;
}

.success-message i {
    color: #28a745;
}

/* Validation Message */
.question-validation-message {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(220, 53, 69, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--tty-error);
    color: var(--tty-error);
    font-size: 14px;
    font-weight: 500;
}

.question-validation-message.show {
    display: flex;
    animation: shakeError 0.4s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.question-validation-message i {
    font-size: 16px;
}

/* ========================================
   MOBILE RESPONSIVE - Yes/No Questions
   ======================================== */

@media (max-width: 480px) {
    .yes-no-options {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .question-details.show {
        margin-bottom: 20px;
    }
    
    .yes-no-option {
        max-width: none;
    }
    
    .yes-no-button {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .yes-no-button i {
        font-size: 16px;
    }
    
    .yes-no-button span {
        display: inline-block;
    }
    
    /* Stack vertically on very small screens */
    @media (max-width: 320px) {
        .yes-no-options {
            flex-direction: column;
        }
        
        .yes-no-option {
            width: 100%;
        }
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .yes-no-button {
        padding: 14px 20px;
        min-height: 48px; /* Minimum touch target */
    }
    
    .yes-no-option:active .yes-no-button {
        transform: scale(0.98);
    }
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */

/* Subtle pulse for required fields */
@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.yes-no-option.requires-details .yes-no-button::after {
    animation: subtlePulse 2s ease-in-out infinite;
}

/* Loading state */
.yes-no-question.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Disabled state */
.yes-no-option.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.yes-no-option.disabled .yes-no-button {
    cursor: not-allowed;
    background: var(--tty-bg-secondary);
}

/* ========================================
   RADIO QUESTIONS - Moderne subtiele styling
   ======================================== */

.radio-question {
    position: relative;
    padding: 10px 0;
}

/* Radio Options Container */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Horizontal Layout */
.radio-options.layout-horizontal:not(.has-images) {
    flex-direction: row;
    flex-wrap: wrap;
}

.radio-options.layout-horizontal:not(.has-images) .radio-option {
    flex: 0 1 calc(100% - 6px);
}

/* Scrollable container for many options */
.radio-question[data-options-count="6"] .radio-options:not(.has-images),
.radio-question[data-options-count="7"] .radio-options:not(.has-images),
.radio-question[data-options-count="8"] .radio-options:not(.has-images),
.radio-question[data-options-count="9"] .radio-options:not(.has-images),
.radio-question[data-options-count="10"] .radio-options:not(.has-images) {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    margin: -8px;
    background: var(--tty-bg-secondary);
    border-radius: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--tty-primary) var(--tty-bg-secondary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Webkit scrollbar */
.radio-options::-webkit-scrollbar {
    width: 6px;
}

.radio-options::-webkit-scrollbar-track {
    background: var(--tty-bg-secondary);
    border-radius: 3px;
}

.radio-options::-webkit-scrollbar-thumb {
    background: var(--tty-primary);
    border-radius: 3px;
}

/* Radio Option */
.radio-option {
    position: relative;
}

.radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Text Label Styling */
.radio-label.text-label {
    display: block;
    cursor: pointer;
}

.radio-button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--tty-bg-primary);
    border: 2px solid var(--tty-border-light);
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

/* Radio Indicator */
.text-label .radio-indicator {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--tty-border-medium);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.text-label .radio-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--tty-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

/* Radio Text */
.radio-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--tty-text-primary);
    flex: 1;
}

/* Hover State */
.radio-option:hover .radio-button {
    border-color: var(--tty-secondary);
    background: rgba(36, 119, 114, 0.03);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.radio-option:hover .radio-indicator {
    border-color: var(--tty-primary);
}

/* Checked State */
.radio-input:checked ~ .radio-button,
.radio-input:checked ~ .radio-label .radio-button {
    background: var(--tty-secondary);
    border-color: var(--tty-secondary);
}

.radio-input:checked ~ .radio-button .radio-text,
.radio-input:checked ~ .radio-label .radio-text {
    color: white;
}

.radio-input:checked ~ .radio-button .radio-indicator,
.radio-input:checked ~ .radio-label .radio-indicator {
    border-color: white;
}

.radio-input:checked ~ .radio-button .radio-indicator::after,
.radio-input:checked ~ .radio-label .radio-indicator::after {
    transform: translate(-50%, -50%) scale(1);
    background: white;
}

/* Focus State */
.radio-input:focus-visible ~ .radio-button,
.radio-input:focus-visible ~ .radio-label .radio-button {
    outline: 3px solid rgba(36, 119, 114, 0.3);
    outline-offset: 2px;
}

/* ========================================
   Image Options Styling
   ======================================== */

.radio-options.has-images {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.radio-options.has-images .radio-option {
    flex: 0 0 calc(25% - 12px);
    min-width: 140px;
    max-width: 200px;
}

.radio-label.image-label {
    display: block;
    cursor: pointer;
    text-align: center;
}

.radio-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--tty-border-light);
    transition: all 0.2s ease;
    margin-bottom: 8px;
    background: var(--tty-bg-primary);
}

.radio-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Image Radio Indicator */
.image-label .radio-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--tty-border-medium);
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.image-label .radio-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--tty-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

/* Image Hover */
.radio-option.has-image:hover .radio-image-container {
    border-color: var(--tty-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radio-option.has-image:hover img {
    transform: scale(1.05);
}

/* Image Checked */
.radio-input:checked ~ .radio-label .radio-image-container {
    border-color: var(--tty-primary);
    box-shadow: 0 0 0 3px rgba(36, 119, 114, 0.2);
}

.radio-input:checked ~ .radio-label .radio-indicator {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
}

.radio-input:checked ~ .radio-label .radio-indicator::after {
    transform: translate(-50%, -50%) scale(1);
    background: white;
}

/* Image Option Text */
.image-label .radio-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--tty-text-primary);
    margin-top: 4px;
}

/* ========================================
   Radio Details - Reuse from universal
   ======================================== */

.radio-option .question-details {
    margin-top: 12px;
    margin-left: 34px; /* Align with text */
}

.radio-option.has-image .question-details {
    margin-left: 0;
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 768px) {
    .radio-options.layout-horizontal:not(.has-images) {
        flex-direction: column;
    }
    
    .radio-options.layout-horizontal:not(.has-images) .radio-option {
        flex: 1 1 100%;
    }
    
    .radio-options.has-images .radio-option {
        flex: 0 0 calc(50% - 8px);
    }
    
    .radio-button {
        padding: 14px 16px;
    }
    
    .radio-option .question-details {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .radio-options.has-images .radio-option {
        flex: 0 0 100%;
        max-width: none;
    }
}

/* Dark Theme Support */
[data-theme="dark"] .radio-button {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .radio-input:checked ~ .radio-button,
[data-theme="dark"] .radio-input:checked ~ .radio-label .radio-button {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
}

[data-theme="dark"] .radio-image-container {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .radio-button {
        min-height: 48px;
    }
    
    .radio-option:active .radio-button {
        transform: scale(0.98);
    }
}

/* ========================================
   MULTIPLE CHOICE QUESTIONS - Subtiele moderne styling
   ======================================== */

.multiple-choice-question {
    position: relative;
    padding: 10px 0;
}

/* Options Container */
.mc-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Scrollable voor meer dan 5 opties */
.multiple-choice-question[data-options-count="6"] .mc-options,
.multiple-choice-question[data-options-count="7"] .mc-options,
.multiple-choice-question[data-options-count="8"] .mc-options,
.multiple-choice-question[data-options-count="9"] .mc-options,
.multiple-choice-question[data-options-count="10"] .mc-options,
.mc-options.scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: var(--tty-bg-secondary);
    border-radius: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--tty-primary) var(--tty-bg-secondary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mc-options::-webkit-scrollbar {
    width: 6px;
}

.question-text .required {
  color: var(--tty-error);
  font-size: 22px;
  line-height: 1;
}

.question-help-icon .fa.fa-info-circle {
  color: var(--tty-secondary);
  font-size: 20px;
}


.mc-options::-webkit-scrollbar-track {
    background: var(--tty-bg-secondary);
    border-radius: 3px;
}

.mc-options::-webkit-scrollbar-thumb {
    background: var(--tty-primary);
    border-radius: 3px;
}

/* Option Item */
.mc-option {
    position: relative;
    transition: all 0.2s ease;
}

/* Label */
.mc-label {
    display: block;
    cursor: pointer;
}

/* Hidden Input */
.mc-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Button */
.mc-button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--tty-bg-primary);
    border: 2px solid var(--tty-border-light);
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

/* Indicator */
.mc-indicator {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--tty-border-medium);
    transition: all 0.2s ease;
    position: relative;
}

/* Radio style */
.multiple-choice-question[data-input-type="radio"] .mc-indicator {
    border-radius: 50%;
}

.multiple-choice-question[data-input-type="radio"] .mc-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--tty-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

/* Checkbox style */
.multiple-choice-question[data-input-type="checkbox"] .mc-indicator {
    border-radius: 4px;
}

.multiple-choice-question[data-input-type="checkbox"] .mc-indicator::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--tty-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}

/* Text */
.mc-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--tty-text-primary);
    flex: 1;
}

/* Hover State */
.mc-option:hover .mc-button {
    border-color: var(--tty-secondary);
    background: rgba(36, 119, 114, 0.03);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mc-option:hover .mc-indicator {
    border-color: var(--tty-primary);
}

.question-wrapper .question-message.rejection-message {
  display: none !important;
}

/* Checked State */
.mc-input:checked ~ .mc-button {
    background: var(--tty-secondary);
  border-color: var(--tty-secondary);
}

.mc-input:checked ~ .mc-button .mc-text {
    color: white;
}

.mc-input:checked ~ .mc-button .mc-indicator {
    border-color: white;
}

/* Radio checked */
.multiple-choice-question[data-input-type="radio"] .mc-input:checked ~ .mc-button .mc-indicator::after {
    transform: translate(-50%, -50%) scale(1);
    background: white;
}

/* Checkbox checked */
.multiple-choice-question[data-input-type="checkbox"] .mc-input:checked ~ .mc-button .mc-indicator::after {
    transform: rotate(45deg) scale(1);
    border-color: white;
}

/* Focus State */
.mc-input:focus-visible ~ .mc-button {
    outline: 3px solid rgba(36, 119, 114, 0.3);
    outline-offset: 2px;
}

/* None of the above option */
.mc-option.none-option {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--tty-border-light);
}

/* Details Section - hergebruik universele styling */
.mc-option .question-details {
    margin-top: 12px;
    margin-left: 34px;
}

/* ========================================
   Selection Guidance
   ======================================== */

.mc-guidance {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(36, 119, 114, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(36, 119, 114, 0.1);
    margin-top: 16px;
    transition: all 0.3s ease;
}

.mc-guidance i {
    color: var(--tty-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.mc-guidance-text {
    flex: 1;
    font-size: 14px;
    color: var(--tty-text-secondary);
}

.mc-counter {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(36, 119, 114, 0.1);
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.mc-counter-current {
    color: var(--tty-primary);
    transition: all 0.3s ease;
}

.mc-counter-current.valid {
    color: #28a745;
}

.mc-counter-current.invalid {
    color: var(--tty-error);
}

.mc-counter-separator {
    color: var(--tty-text-muted);
}

.mc-counter-required {
    color: var(--tty-text-secondary);
}

/* Error State */
.mc-guidance.has-error {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.2);
    animation: shakeError 0.4s ease;
}

.mc-guidance.has-error i {
    color: var(--tty-error);
}

.mc-guidance.has-error .mc-guidance-text {
    color: var(--tty-error);
    font-weight: 500;
}

.mc-guidance.has-error .mc-counter {
    background: rgba(220, 53, 69, 0.15);
    color: var(--tty-error);
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 768px) {
    .mc-button {
        padding: 14px 16px;
    }
    
    .mc-text {
        font-size: 14px;
    }
    
    .mc-option .question-details {
        margin-left: 0;
    }
    
    .mc-guidance {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .mc-counter {
        margin-left: auto;
    }
}

/* Dark Theme */
[data-theme="dark"] .mc-button {
    background: var(--tty-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mc-input:checked ~ .mc-button {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
}

[data-theme="dark"] .mc-guidance {
    background: rgba(36, 119, 114, 0.1);
    border-color: rgba(36, 119, 114, 0.2);
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
    .mc-button {
        min-height: 48px;
    }
    
    .mc-option:active .mc-button {
        transform: scale(0.98);
    }
}