/*!
 * Stockyards Mobile CSS Framework
 * Modern replacement for jQuery Mobile 1.1.0
 * Built with CSS Grid, Flexbox, and CSS Variables
 */

/* ================================
   1. CSS VARIABLES (Design Tokens)
   ================================ */

:root {
  /* Global Typography */
  --font-family: sans-serif;
  --font-size-base: 1.1em;  /* Increased by 30% for better readability */
  --line-height-base: 1.1;

  /* Global Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.5rem;

  /* Shadows */
  --shadow-default: 0 1px 3px rgba(64, 82, 165, 0.6);
  --shadow-focus: 0 0 12px #3388cc;
  --shadow-overlay: 0 0 12px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-index */
  --z-fixed-footer: 10;
  --z-overlay: 100;
}

html {
  font-size: 110%;  /* Increased by 30% for better readability */
  /* Removed -webkit-text-size-adjust to allow user font size preferences */
  -webkit-tap-highlight-color: transparent;
}

/* Theme A - Dark Theme (Default) */
[data-theme="a"] {
  --page-bg: #343434;
  --page-color: #ffffff;
  --page-text-shadow: 0 1px 0 #444444;

  --header-bg: #292929;
  --header-color: #ffffff;
  --header-border: #545454;

  --footer-bg: #292929;
  --footer-color: #ffffff;
  --footer-border: #545454;

  --body-bg: #424242;
  --body-border: #6b6b6b;
  --body-color: #ffffff;

  --btn-bg-top: #434343;
  --btn-bg-bottom: #2e2e2e;
  --btn-color: #ffffff;
  --btn-border: #545454;
  --btn-text-shadow: 0 1px 0 #444444;

  --btn-hover-bg-top: #4e4e4e;
  --btn-hover-bg-bottom: #3a3a3a;
  --btn-hover-border: #606060;

  --btn-active-bg-top: #2e2e2e;
  --btn-active-bg-bottom: #434343;
  --btn-active-border: #606060;

  --collapsible-header-bg: #424242;
  --collapsible-border: #6b6b6b;

  --link-color: #66b3ff;
  --link-hover: #99ccff;
  --link-active: #99ccff;
}

/* Theme C - Light Theme */
[data-theme="c"] {
  --page-bg: #f9f9f9;
  --page-color: #333333;
  --page-text-shadow: 0 1px 0 #f3f3f3;

  --header-bg: #e9e9e9;
  --header-color: #333333;
  --header-border: #dddddd;

  --footer-bg: #e9e9e9;
  --footer-color: #333333;
  --footer-border: #dddddd;

  --body-bg: #ffffff;
  --body-border: #dddddd;
  --body-color: #333333;

  --btn-bg-top: #ffffff;
  --btn-bg-bottom: #f0f0f0;
  --btn-color: #333333;
  --btn-border: #dddddd;
  --btn-text-shadow: 0 1px 0 #f3f3f3;

  --btn-hover-bg-top: #f6f6f6;
  --btn-hover-bg-bottom: #e8e8e8;
  --btn-hover-border: #dddddd;

  --btn-active-bg-top: #e8e8e8;
  --btn-active-bg-bottom: #f6f6f6;
  --btn-active-border: #dddddd;

  --collapsible-header-bg: #ffffff;
  --collapsible-border: #dddddd;

  --link-color: #003d99;
  --link-hover: #002266;
  --link-active: #002266;
}

/* ================================
   2. RESET & BASE STYLES
   ================================ */

* {
  box-sizing: border-box;
}



body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default !important;
  background-color: #1a1a1a;
}

/* Ensure cursor is always visible */
* {
  cursor: inherit;
}

/* Specific cursor for interactive elements */
a, button, [data-role="button"], input[type="button"], input[type="submit"] {
  cursor: pointer !important;
}

input[type="text"], input[type="number"], textarea {
  cursor: text !important;
}

/* ================================
   3. LAYOUT COMPONENTS
   ================================ */

/* Page Structure */
[data-role="page"] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--page-bg);
  color: var(--page-color);
  text-shadow: var(--page-text-shadow);
  width: 100%;
  position: relative;
  cursor: auto;
}

/* Header */
[data-role="header"] {
  background: var(--header-bg);
  color: var(--header-color);
  border-bottom: 1px solid var(--header-border);
  flex-shrink: 0;
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-role="header"] h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  width: 100%;
}

/* Only add padding when navigation button is present */
/* Equal padding on both sides keeps title centered on page */
[data-role="header"].has-nav-button h1 {
  padding-left: 100px;
  padding-right: 100px;
}

/* Content Area */
.ui-content,
[role="main"] {
  flex: 1 1 auto;
  padding: var(--spacing-md);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Story/Body Text - Improved readability for all ages */
/* These WILL scale with user font size preferences */
.ui-content p,
[role="main"] p {
  font-size: 1.1rem !important;  /* Use rem to avoid nesting issues, matches list size */
  line-height: 1.6;
  margin-bottom: 1em;
  margin-top: 0;
}

/* Body Text Container - Narrower width for better mobile readability */
.body-text {
  max-width: 90%;
  margin: 0 auto 1rem auto;
}

/* Centered Text */
.center-text {
  text-align: center;
  margin: 0 auto 1rem auto;
}

/* Stop page links - Force light blue for dark theme */
#stop-content a,
#stop-contact a,
#stop-instructions a,
#stop-next-step a {
  color: #66b3ff !important;
  text-decoration: underline;
}

#stop-content a:hover,
#stop-contact a:hover,
#stop-instructions a:hover,
#stop-next-step a:hover {
  color: #99ccff !important;
}

.ui-content img,
[role="main"] img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* Progress graphics on stop pages - full width */
img[src*="Progress.svg"],
img[alt*="Progress"] {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.5rem auto;
}

/* UI Components - Fixed font sizes to maintain layout integrity */
/* These will NOT scale with user preferences to avoid breaking layouts */

/* Headers and Navigation - Stay fixed */
[data-role="header"] h1 {
  font-size: 1.1rem !important;
  font-size: 17.6px !important; /* Fixed size */
}

[data-role="footer"] h4 {
  font-size: 0.875rem !important;
  font-size: 14px !important; /* Fixed size */
}

.nav-menu-button {
  font-size: 0.9rem !important;
  font-size: 14.4px !important; /* Fixed size */
}

/* Buttons - Stay fixed */
button,
[data-role="button"],
.btn {
  font-size: 1em !important;
  font-size: 16px !important; /* Fixed size */
}

/* Collapsible Headers/Titles - Stay fixed */
[data-role="collapsible"] > h4 {
  font-size: 1em !important;
  font-size: 16px !important; /* Fixed size */
}

/* Letter boxes and puzzle inputs - Stay fixed */
#outer-container input,
#outer-container button,
.letter-box,
.slider-input {
  font-size: 18px !important; /* Fixed - won't scale with user preferences */
}

/* Footer */
[data-role="footer"] {
  background: var(--footer-bg);
  color: var(--footer-color);
  border-top: 1px solid var(--footer-border);
  flex-shrink: 0;
  padding: var(--spacing-sm) var(--spacing-md);
}

[data-role="footer"] h4 {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: normal;
  text-align: center;
}

/* Fixed/Sticky Footer - DISABLED for natural scrolling */
/* [data-role="footer"][data-position="fixed"] {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed-footer);
} */

/* ================================
   4. BUTTON SYSTEM
   ================================ */

button,
[data-role="button"],
.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.3rem 1.25rem;
  font-weight: bold;
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  line-height: 1.1;
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom, var(--btn-bg-top), var(--btn-bg-bottom));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 3px 6px rgba(0, 0, 0, 0.3);
  color: var(--btn-color) !important; /* Override link color */
  text-shadow: var(--btn-text-shadow);
  cursor: pointer;
  text-decoration: none !important; /* Override link underline */
  text-align: center;
  transition: background var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--transition-fast);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  min-height: 36px; /* Touch-friendly */
  width: 100%; /* Full width by default (jQuery Mobile behavior) */
}

/* Button States */
button:hover,
[data-role="button"]:hover,
.btn:hover,
a.btn:hover {
  background: linear-gradient(to bottom, var(--btn-hover-bg-top), var(--btn-hover-bg-bottom));
  border-color: var(--btn-hover-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

button:active,
[data-role="button"]:active,
.btn:active,
a.btn:active {
  background: linear-gradient(to bottom, var(--btn-active-bg-top), var(--btn-active-bg-bottom));
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  transform: translateY(1px);
}

button:focus,
[data-role="button"]:focus,
.btn:focus,
a.btn:focus {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
[data-role="button"]:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
  outline: none;
}

button:disabled,
button[disabled],
.btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* Button Icons - using Unicode symbols */
[data-icon="arrow-r"]::after {
  content: '→';
  font-size: 1.4em;
  font-weight: bold;
  margin-left: 0.25rem;
  display: inline-block;
  flex-shrink: 0;
}

[data-icon="arrow-l"]::before {
  content: '←';
  font-size: 1.4em;
  font-weight: bold;
  margin-right: 0.25rem;
  display: inline-block;
  flex-shrink: 0;
}

button[data-icon="carat-u"]::after {
  content: '▴';
  font-size: 1em;
  font-weight: normal;
}

button[data-icon="carat-d"]::after {
  content: '▾';
  font-size: 1em;
  font-weight: normal;
}

/* UI Button Classes (for compatibility) */
.ui-btn {
  font-weight: bold;
}

.ui-btn-active {
  cursor: pointer;
}

.ui-corner-all {
  border-radius: var(--radius-lg);
}

.ui-shadow {
  box-shadow: var(--shadow-default);
}

/* Continue Button Container (puzzle pages use #continue-container, story pages use #nextDiv) */
#continue-container,
#nextDiv {
  margin-top: 80px;  /* ~2 button heights for comfortable spacing */
}

#continue-container button,
#nextDiv button {
  min-width: 200px;
  border-radius: 8px !important;
}

/* ================================
   5. COLLAPSIBLE COMPONENT
   ================================ */

[data-role="collapsible"] {
  margin: var(--spacing-md) 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

[data-role="collapsible"] > h3,
[data-role="collapsible"] > h4,
[data-role="collapsible"] > h5,
[data-role="collapsible"] > legend {
  margin: 0;
  padding: 0.3rem 1.25rem;
  background: linear-gradient(to bottom, var(--btn-bg-top), var(--btn-bg-bottom));
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid rgba(0, 0, 0, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 3px 6px rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.1;
  color: var(--btn-color);
  text-shadow: var(--btn-text-shadow);
  cursor: pointer;
  user-select: none;
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: background var(--transition-normal);
}

[data-role="collapsible"] > h3:hover,
[data-role="collapsible"] > h4:hover,
[data-role="collapsible"] > h5:hover,
[data-role="collapsible"] > legend:hover {
  background: linear-gradient(to bottom, var(--btn-hover-bg-top), var(--btn-hover-bg-bottom));
}

/* Collapsible indicator (arrow) */
[data-role="collapsible"] > h3::before,
[data-role="collapsible"] > h4::before,
[data-role="collapsible"] > h5::before,
[data-role="collapsible"] > legend::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform var(--transition-normal);
  font-size: 0.75em;
}

/* Expanded state */
[data-role="collapsible"][data-collapsed="false"] > h3::before,
[data-role="collapsible"][data-collapsed="false"] > h4::before,
[data-role="collapsible"][data-collapsed="false"] > h5::before,
[data-role="collapsible"][data-collapsed="false"] > legend::before {
  transform: rotate(90deg);
}

/* Collapsible content */
[data-role="collapsible"] > *:not(h3):not(h4):not(h5):not(legend) {
  padding: var(--spacing-md);
  background: var(--page-bg);
  border: none;
  transition: opacity var(--transition-normal);
}

/* Spacing for buttons inside collapsible content */
[data-role="collapsible"] p button {
  margin-top: 0.75rem;
  display: block;
}

/* Collapsible Set (accordion container) */
[data-role="collapsible-set"] {
  margin: 0;
}

[data-role="collapsible-set"] > [data-role="collapsible"] {
  border-radius: 0;
  margin: 0;
}

[data-role="collapsible-set"] > [data-role="collapsible"]:first-child {
  border: none;
}

[data-role="collapsible-set"] > [data-role="collapsible"]:last-child {
  border: none;
}

/* ================================
   6. TYPOGRAPHY & CONTENT
   ================================ */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--spacing-md) 0;
  font-weight: bold;
  line-height: 1.2;
}

p {
  margin: 0 0 var(--spacing-md) 0;
}

a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

a:active {
  color: var(--link-active);
}

img {
   width: 95%;
    max-width: 600px;
    margin: 1rem auto;
    text-align: center;
    display: block;
    border-radius: 10px;
  }


/* Social media icons - display inline */
a img[alt="Facebook"],
a img[alt="Instagram"],
a img[width="30"] {
  display: inline-block;
  width: 30px !important;
  margin: 0 !important;
  border-radius: 4px;
}

ul, ol {
  margin: 0 0 var(--spacing-md) 0;
  padding-left: 1.5rem;
}

/* ================================
   7. FORM ELEMENTS
   ================================ */

/* Form input styles - scoped to forms only to avoid conflicts with puzzle inputs */
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="tel"],
form input[type="url"],
form textarea,
form select {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  border: 1px solid var(--body-border);
  border-radius: var(--radius-sm);
  background: var(--body-bg);
  color: var(--body-color);
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal);
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--link-color);
  box-shadow: 0 0 0 3px rgba(51, 136, 204, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: normal;
  font-size: 1rem;
}

/* ================================
   8. UTILITY CLASSES
   ================================ */

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Display */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

/* Spacing */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-sm) !important; }
.mb-2 { margin-bottom: var(--spacing-md) !important; }
.mb-3 { margin-bottom: var(--spacing-lg) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-sm) !important; }
.mt-2 { margin-top: var(--spacing-md) !important; }
.mt-3 { margin-top: var(--spacing-lg) !important; }

/* Text Container (centered content) */
.text-container {
  max-width: 100%;
  margin: 0 auto;
}

/* Welcome Message Styling */
.welcome-text {
  margin: var(--spacing-md) 0;
}

#booking-data-info {
  margin: var(--spacing-lg) auto;
  padding: var(--spacing-lg);
  border: 2px solid var(--body-border);
  border-radius: var(--radius-lg);
  background-color: var(--body-bg);
  text-align: center;
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 600px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ================================
   9. RESPONSIVE DESIGN
   ================================ */

@media (min-width: 640px) {
  [data-role="page"] {
    max-width: 720px;
    margin: 0 auto;
  }

  .ui-page {
    max-width: 720px !important;
    margin: 0 auto !important;
  }
}

@media (min-width: 768px) {
  button,
  [data-role="button"],
  .btn {
    padding: 0.875rem 2rem;
  }
}

/* ================================
   9. NAVIGATION MENU
   ================================ */

/* Navigation button in header */
.nav-menu-button {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  background: linear-gradient(to bottom, var(--btn-bg-top), var(--btn-bg-bottom));
  color: var(--btn-color);
  border: 1px solid var(--btn-border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  width: auto;
  max-width: 100px;
  display: inline-block;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-shadow: var(--btn-text-shadow);
}

.nav-menu-button:hover {
  background: linear-gradient(to bottom, var(--btn-hover-bg-top), var(--btn-hover-bg-bottom));
  border-color: var(--btn-hover-border);
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.nav-menu-button:active {
  background: linear-gradient(to bottom, var(--btn-active-bg-top), var(--btn-active-bg-bottom));
  border-color: var(--btn-active-border);
  transform: translateY(-50%) scale(0.98);
}

/* Modal overlay */
.nav-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(3px);
}

/* Modal content box */
.nav-modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10001;
}

/* Modal header */
.nav-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--body-border);
}

.nav-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--heading-color);
}

.nav-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--body-color);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.nav-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Modal body */
.nav-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* First-time message */
.nav-first-time-message {
  background: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4caf50;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
}

.nav-first-time-message p {
  margin: 0.5rem 0;
}

.nav-first-time-message p:first-child {
  margin-top: 0;
}

.nav-first-time-message p:last-child {
  margin-bottom: 0;
}

/* Chapter sections */
.nav-chapter-section {
  margin-bottom: 1.5rem;
}

.nav-chapter-section:last-child {
  margin-bottom: 0;
}

.nav-chapter-title {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  color: var(--link-color);
  font-weight: 600;
}

/* Page list */
.nav-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-page-item {
  margin-bottom: 0.5rem;
}

.nav-page-link {
  display: block;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--body-color);
  transition: background-color 0.2s, transform 0.2s;
}

.nav-page-link:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

/* Current page highlight */
.nav-current-page .nav-page-link {
  background: rgba(51, 136, 204, 0.15);
  border-left: 4px solid var(--link-color);
  font-weight: 600;
}

.nav-current-badge {
  font-size: 0.85em;
  color: var(--link-color);
  font-weight: normal;
  margin-left: 0.5rem;
}

/* No pages message */
.nav-no-pages {
  text-align: center;
  padding: 2rem;
  color: rgba(0, 0, 0, 0.5);
}

/* Modal footer */
.nav-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--body-border);
  display: flex;
  justify-content: center;
}

.nav-modal-return {
  padding: 0.75rem 2rem;
  background: var(--button-bg);
  color: var(--button-color);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nav-modal-return:hover {
  background: var(--button-hover-bg);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .nav-modal {
    padding: 10px;
  }

  .nav-modal-content {
    max-height: 95vh;
  }

  .nav-modal-header,
  .nav-modal-body,
  .nav-modal-footer {
    padding: 1rem;
  }

  .nav-menu-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* ================================
   10. PRINT STYLES
   ================================ */

@media print {
  [data-role="header"],
  [data-role="footer"],
  button,
  [data-role="button"],
  .btn {
    display: none;
  }

  [data-role="page"] {
    background: white;
    color: black;
  }
}

/* ================================
   11. ACCESSIBILITY
   ================================ */

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  button,
  [data-role="button"],
  .btn {
    border-width: 2px;
  }

  [data-role="collapsible"] {
    border-width: 2px;
  }
}

/* ================================
   12. REVIEW SECTION (Thank You Page)
   ================================ */

.review-section {
  margin: 40px auto;
  max-width: 600px;
  padding: 20px;
}

.review-heading {
  color: rgb(181, 252, 181);
  max-width: 90%;
  font-size: 1.5em;
  font-weight: 700;
  text-align: center;
  margin: 0 0 10px 0;
}

.review-subheading {
  color: var(--text-color);
  text-align: center;
  font-size: 1em;
  margin: 0 0 30px 0;
  opacity: 0.9;
}

/* Review Cards Container */
.review-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Individual Review Card */
.review-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  flex: 1;
  min-width: 250px;
  max-width: 280px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.review-card-header {
  margin-bottom: 15px;
}

.platform-name {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #ffd700;
  font-size: 1.2em;
  letter-spacing: 2px;
}

.rating-text {
  color: rgb(181, 252, 181);
  font-size: 1.3em;
  font-weight: 700;
}

/* Review Buttons */
.review-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 1.1em;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tripadvisor-btn {
  background: linear-gradient(to bottom, #00aa6c, #008c5a);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 170, 108, 0.3);
}

.tripadvisor-btn:hover {
  background: linear-gradient(to bottom, #00c77e, #00aa6c);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 170, 108, 0.4);
}

.google-btn {
  background: linear-gradient(to bottom, #4285f4, #3367d6);
  color: white;
  box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
}

.google-btn:hover {
  background: linear-gradient(to bottom, #5a95f5, #4285f4);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(66, 133, 244, 0.4);
}

/* Alternative Engagement Section */
.alternative-engagement {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.engagement-prompt {
  text-align: center;
  color: var(--text-color);
  font-size: 1.1em;
  margin-bottom: 15px;
  opacity: 0.8;
}

.engagement-options {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.engagement-btn {
  padding: 12px 24px;
  font-size: 1em;
  font-weight: 600;
  border: 2px solid rgba(181, 252, 181, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgb(181, 252, 181);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
}

.engagement-btn:hover {
  background: rgba(181, 252, 181, 0.1);
  border-color: rgb(181, 252, 181);
  transform: translateY(-2px);
}

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

/* Mobile Responsive */
@media (max-width: 600px) {
  .review-cards {
    flex-direction: column;
    align-items: center;
  }

  .review-card {
    max-width: 100%;
    width: 100%;
  }

  .engagement-options {
    flex-direction: column;
    align-items: stretch;
  }

  .engagement-btn {
    width: 100%;
  }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ================================
   User Selection Glow Animation
   ================================ */

/* Fade-in glow effect for selected user button */
@keyframes glow-fade-in {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    opacity: 0.7;
  }
  50% {
    box-shadow: 0 0 0 12px rgba(102, 126, 234, 0.35);
    opacity: 0.85;
  }
  100% {
    box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.25);
    opacity: 1;
  }
}
