:root {
  --theme-color: #3B82F6;
  --theme-color-dark: #2563eb;
  --theme-color-light: #60a5fa;
  --theme-color-subtle: rgba(59, 130, 246, 0.1);
}

* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  font-size: clamp(10px, 1.4vh, 16px);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
}

.questionnaire-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.questionnaire-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.radio-option {
  transition: all 0.2s;
}

.radio-option:hover {
  background-color: #f3f4f6;
}

.radio-option input[type="radio"]:checked ~ .radio-label {
  background-color: var(--theme-color);
  color: white;
  border-color: var(--theme-color);
}

input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--theme-color);
}

input[type="checkbox"] {
  accent-color: var(--theme-color);
}

.star {
  cursor: pointer;
  transition: all 0.2s;
  font-size: clamp(1.8rem, 4vh, 3rem);
  color: #d1d5db;
}

.star:hover,
.star.filled {
  color: #FFA500;
  transform: scale(1.1);
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--theme-color), var(--theme-color-dark));
  transition: width 0.3s ease;
}

.question-container {
  max-height: 60vh;
  overflow-y: auto;
}

.question-container::-webkit-scrollbar {
  width: 10px;
}

.question-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.question-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--theme-color), var(--theme-color-dark));
  border-radius: 10px;
}

.question-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--theme-color-dark), var(--theme-color));
}

.btn-theme {
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark)) !important;
  color: white !important;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--theme-color-subtle);
}

.btn-theme:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--theme-color-subtle);
}

.btn-theme:active {
  transform: translateY(0);
}

.header-logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo-container img {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  padding: 4px;
}

.sedona-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.sedona-modal.show {
  display: flex;
}

.sedona-modal-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 10px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 10px var(--theme-color-subtle);
  transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 15px var(--theme-color-subtle);
}

input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
  cursor: pointer;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 10px var(--theme-color-subtle);
  transition: all 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 15px var(--theme-color-subtle);
}

.heart-rating {
  transition: all 0.2s;
  -webkit-text-stroke: 2px #d1d5db;
}

.heart-rating:hover {
  transform: scale(1.15);
}

.face-option {
  transition: all 0.2s;
}

.face-option:hover {
  transform: scale(1.1);
  background: var(--theme-color-subtle) !important;
}

.face-selected {
  animation: pulse 0.5s ease;
}

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

/* Kiosk Footer */
.kiosk-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
}

.kiosk-footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.kiosk-footer:hover .kiosk-footer-content {
  opacity: 0.8;
}

.kiosk-footer-logo {
  width: 90px;
  height: 30px;
  -webkit-mask-image: url('/assets/img/logo-feedback.svg');
  mask-image: url('/assets/img/logo-feedback.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: var(--theme-color);
  display: inline-block;
  transition: background-color 0.3s ease;
}

.kiosk-footer-text {
  color: var(--theme-color);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.kiosk-screen {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  box-sizing: border-box;
}

#questionnaire-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: max(50px, env(safe-area-inset-bottom));
}
