/* ==============================================================================
   PPCH Open House 2026 - Satisfaction Evaluation Web App Stylesheet
   Designed for Hospital Elegance, Tactile Mobile UX & Strict Design Guidelines
   ============================================================================== */

:root {
  --ppch-navy: #002e6e;
  --ppch-blue: #004b93;
  --ppch-blue-light: #e0f2fe;
  --ppch-sky: #0284c7;
  --ppch-cyan: #06b6d4;
  --ppch-emerald: #059669;
  --ppch-emerald-light: #d1fae5;
  --ppch-amber: #d97706;
  --ppch-rose: #e11d48;
  --ppch-slate-50: #f8fafc;
  --ppch-slate-100: #f1f5f9;
  --ppch-slate-200: #e2e8f0;
  --ppch-slate-300: #cbd5e1;
  --ppch-slate-400: #94a3b8;
  --ppch-slate-500: #64748b;
  --ppch-slate-700: #334155;
  --ppch-slate-800: #1e293b;
  --ppch-slate-900: #0f172a;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.06);

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--ppch-slate-50);
  color: var(--ppch-slate-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

/* ==================== APP CONTAINER & TOP NAVIGATION (MOBILE-FIRST) ==================== */
.app-container {
  max-width: 540px;
  margin: 0 auto;
  padding: 12px 14px 60px 14px;
  box-sizing: border-box;
}

.widescreen-mode {
  max-width: 1200px;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid var(--ppch-slate-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
  position: sticky;
  top: 8px;
  z-index: 50;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.brand-logo {
  height: 36px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-info h1 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ppch-navy);
  line-height: 1.25;
  margin: 0;
}

.brand-info p {
  font-size: 11px;
  color: var(--ppch-slate-500);
  margin: 1px 0 0 0;
  line-height: 1.2;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ppch-slate-200);
  background: #ffffff;
  color: var(--ppch-slate-700);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon-nav:hover {
  background: var(--ppch-blue-light);
  border-color: var(--ppch-sky);
  color: var(--ppch-blue);
}

.btn-icon-nav.active {
  background: var(--ppch-blue);
  color: #ffffff;
  border-color: var(--ppch-blue);
}

/* ==================== HERO POSTER CARD ==================== */
.hero-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--ppch-slate-200);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  position: relative;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.hero-content {
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.badge-event-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  color: var(--ppch-blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
}

.badge-event-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ppch-emerald-light);
  color: var(--ppch-emerald);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}

.hero-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ppch-navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 13px;
  color: var(--ppch-slate-500);
}

/* ==================== FORM SECTION CARDS (MOBILE-FIRST) ==================== */
.form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--ppch-slate-200);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.form-card:hover {
  border-color: #cbd5e1;
}

.form-card.highlighted {
  border-color: var(--ppch-sky);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.card-header-clean {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.q-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ppch-blue-light);
  color: var(--ppch-blue);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.q-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ppch-slate-800);
  line-height: 1.35;
}

.q-required {
  color: var(--ppch-rose);
  font-weight: bold;
}

/* Attendee Selector Pills */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 600px) {
  .pill-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pill-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--ppch-slate-200);
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: var(--ppch-slate-700);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pill-option:hover {
  border-color: var(--ppch-sky);
  background: var(--ppch-slate-50);
}

.pill-option.active {
  background: var(--ppch-blue);
  border-color: var(--ppch-blue);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 75, 147, 0.25);
}

.input-clean {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--ppch-slate-200);
  font-family: inherit;
  font-size: 14px;
  color: var(--ppch-slate-800);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-clean:focus {
  outline: none;
  border-color: var(--ppch-sky);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* ==================== TACTILE 5-POINT RATING CONTROL ==================== */
.rating-scale-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-buttons-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.rating-btn {
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid var(--ppch-slate-200);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.rating-btn .score-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--ppch-slate-700);
  line-height: 1;
}

.rating-btn:hover {
  border-color: var(--ppch-sky);
  background: var(--ppch-slate-50);
}

.rating-btn:active {
  transform: scale(0.95);
}

/* Selected state for rating buttons */
.rating-btn.active {
  border-color: var(--ppch-blue);
  background: linear-gradient(135deg, var(--ppch-blue) 0%, var(--ppch-navy) 100%);
  box-shadow: 0 4px 12px rgba(0, 75, 147, 0.28);
}

.rating-btn.active .score-num {
  color: #ffffff;
}

.scale-hint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ppch-slate-400);
  padding: 0 2px;
}

.scale-status-badge {
  align-self: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ppch-blue);
  background: var(--ppch-blue-light);
  padding: 2px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  transition: opacity 0.2s ease;
}

/* ==================== YES/NO CHOICE CARDS ==================== */
.choice-grid-binary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.choice-btn {
  padding: 12px 10px;
  min-height: 54px;
  border-radius: 12px;
  border: 2px solid var(--ppch-slate-200);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.choice-btn .choice-icon {
  font-size: 22px;
}

.choice-btn .choice-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ppch-slate-700);
}

.choice-btn:hover {
  border-color: var(--ppch-sky);
  background: var(--ppch-slate-50);
}

.choice-btn:active {
  transform: scale(0.97);
}

.choice-btn.selected-yes {
  border-color: var(--ppch-emerald);
  background: #ecfdf5;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.15);
}

.choice-btn.selected-yes .choice-label {
  color: var(--ppch-emerald);
}

.choice-btn.selected-no {
  border-color: var(--ppch-slate-400);
  background: #f8fafc;
  box-shadow: 0 3px 10px rgba(100, 116, 139, 0.10);
}

.choice-btn.selected-no .choice-label {
  color: var(--ppch-slate-600);
}

/* Textarea styling */
.textarea-clean {
  width: 100%;
  min-height: 85px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--ppch-slate-200);
  font-family: inherit;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom on focus */
  color: var(--ppch-slate-800);
  background: #ffffff;
  resize: vertical;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
  border: 1.5px solid var(--ppch-slate-200);
  font-family: inherit;
  font-size: 14px;
  color: var(--ppch-slate-800);
  background: #ffffff;
  resize: vertical;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea-clean:focus {
  outline: none;
  border-color: var(--ppch-sky);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* ==================== SUBMIT CTA BUTTON ==================== */
.submit-container {
  margin-top: 24px;
  margin-bottom: 24px;
}

.btn-submit-main {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--ppch-blue) 0%, var(--ppch-navy) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 46, 110, 0.28);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-submit-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 46, 110, 0.35);
}

.btn-submit-main:active {
  transform: translateY(0) scale(0.98);
}

.btn-submit-main:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==================== SUCCESS CELEBRATION CARD ==================== */
.success-card {
  display: none;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid var(--ppch-slate-200);
  box-shadow: var(--shadow-lg);
  margin-top: 20px;
  animation: fadeInScale 0.35s ease forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ppch-emerald-light);
  color: var(--ppch-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 16px;
  box-shadow: 0 8px 16px rgba(5, 150, 105, 0.2);
}

.success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ppch-navy);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 14px;
  color: var(--ppch-slate-600);
  max-width: 440px;
  margin: 0 auto 24px auto;
}

.btn-reset-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1.5px solid var(--ppch-slate-200);
  background: #ffffff;
  color: var(--ppch-slate-700);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-form:hover {
  background: var(--ppch-slate-50);
  border-color: var(--ppch-sky);
  color: var(--ppch-blue);
}

/* ==================== ORGANIZER LIVE DASHBOARD ==================== */
.dashboard-view {
  display: none;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ppch-navy);
}

.dashboard-title p {
  font-size: 13px;
  color: var(--ppch-slate-500);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--ppch-slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card.accent-navy { border-top: 4px solid var(--ppch-navy); }
.kpi-card.accent-sky { border-top: 4px solid var(--ppch-sky); }
.kpi-card.accent-emerald { border-top: 4px solid var(--ppch-emerald); }
.kpi-card.accent-amber { border-top: 4px solid var(--ppch-amber); }

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ppch-slate-500);
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--ppch-slate-800);
  line-height: 1.1;
}

.kpi-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--ppch-slate-400);
  margin-left: 4px;
}

/* Dimension Breakdown Bars */
.breakdown-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--ppch-slate-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

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

.breakdown-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ppch-navy);
}

.dimension-item {
  margin-bottom: 18px;
}

.dimension-item:last-child {
  margin-bottom: 0;
}

.dimension-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ppch-slate-700);
  margin-bottom: 6px;
}

.dimension-score-val {
  color: var(--ppch-blue);
  font-weight: 700;
}

.progress-track {
  height: 10px;
  background: var(--ppch-slate-100);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ppch-sky) 0%, var(--ppch-blue) 100%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Feedback Feed */
.feedback-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--ppch-slate-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-bubble {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ppch-slate-50);
  border: 1px solid var(--ppch-slate-200);
  font-size: 13px;
  color: var(--ppch-slate-700);
  line-height: 1.5;
}

.feedback-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ppch-slate-400);
}

.feedback-badge {
  background: var(--ppch-blue-light);
  color: var(--ppch-blue);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ==================== SINGLE-ROW STREAMLINED TOOLBAR ==================== */
/* Rule 3 in GEMINI.md: Single-row flex-wrap nowrap */
.streamlined-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.filter-input {
  flex: 1;
  min-width: 180px;
  height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ppch-slate-200);
  font-family: inherit;
  font-size: 13px;
  background: #ffffff;
}

.filter-select {
  height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ppch-slate-200);
  font-family: inherit;
  font-size: 13px;
  background: #ffffff;
  color: var(--ppch-slate-700);
}

/* ==================== SPEED DIAL FAB (Rule 3) ==================== */
.speed-dial-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
}

.speed-dial-main-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ppch-navy);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}

.speed-dial-main-btn:hover {
  transform: scale(1.06);
  background: var(--ppch-blue);
}

.speed-dial-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ppch-amber);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.speed-dial-tray {
  display: none;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  animation: slideUpFade 0.2s ease forwards;
}

.speed-dial-tray.open {
  display: flex;
}

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

.speed-dial-action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ppch-slate-200);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--ppch-slate-700);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.speed-dial-action-item:hover {
  background: var(--ppch-blue-light);
  color: var(--ppch-blue);
  border-color: var(--ppch-sky);
}

/* Modal Styling */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-xl);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ppch-slate-400);
}

.code-snippet-box {
  background: var(--ppch-slate-900);
  color: #38bdf8;
  padding: 16px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}

/* ==================== LOGO LOADING SCREEN OVERLAY ==================== */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease forwards;
}

.loading-overlay.active {
  display: flex;
}

.loading-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.logo-spinner-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.spinner-ring {
  position: absolute;
  inset: -6px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--ppch-blue);
  border-right-color: var(--ppch-sky);
  border-radius: 50%;
  animation: spinRing 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loading-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  animation: pulseLogo 1.8s ease-in-out infinite;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

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

.loading-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ppch-navy);
  margin-bottom: 6px;
}

.loading-subtitle {
  font-size: 13px;
  color: var(--ppch-slate-500);
  line-height: 1.4;
  margin-bottom: 14px;
}

.loading-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ppch-blue);
  animation: bounceDot 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceDot {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* Toast alert notification */
.toast-msg {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 200;
  display: none;
  align-items: center;
  gap: 8px;
}

/* ==================== DEDICATED MOBILE SCREEN OPTIMIZATIONS ==================== */
@media (max-width: 600px) {
  body {
    -webkit-text-size-adjust: 100%;
    background-color: #f8fafc;
  }

  .app-container {
    max-width: 100%;
    padding: 10px 12px 60px 12px;
  }

  .top-nav {
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 14px;
    top: 6px;
  }

  .brand-logo {
    height: 32px;
  }

  .brand-info h1 {
    font-size: 14.5px;
  }

  .brand-info p {
    font-size: 10.5px;
  }

  .form-card {
    padding: 14px 12px;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .card-header-clean {
    gap: 8px;
    margin-bottom: 10px;
  }

  .q-badge {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 12px;
  }

  .q-title {
    font-size: 13.5px;
    line-height: 1.35;
  }

  .rating-buttons-row {
    gap: 4px;
  }

  .rating-btn {
    height: 48px;
    border-radius: 10px;
  }

  .rating-btn .score-num {
    font-size: 17px;
  }

  .scale-hint-row {
    font-size: 10.5px;
  }

  .choice-btn {
    padding: 10px 6px;
    min-height: 50px;
    border-radius: 10px;
  }

  .choice-btn .choice-icon {
    font-size: 20px;
  }

  .choice-btn .choice-label {
    font-size: 13px;
  }

  .textarea-clean {
    font-size: 16px; /* Crucial to prevent iOS auto-zoom on mobile inputs */
    padding: 10px 12px;
    border-radius: 10px;
  }

  .btn-submit-main {
    height: 50px;
    font-size: 15px;
    border-radius: 12px;
  }
}
