/* ============================================================
   VMS Mobile - Complete Stylesheet
   Mobile-first responsive design
   Compatible: iOS Safari, Android Chrome, Firefox, Opera
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #e8eaed;
  --bg-card: #ffffff;
  --bg-dark: #1a1a1a;
  --bg-dark-card: #2a2a2a;

  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;

  --accent: #cc6151;
  --accent-dark: #cc6151;
  --accent-text: #ffffff;

  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  --border: #d9dde3;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --radius-full: 9999px;

  --font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* iOS safe area */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

/* ---------- App Shell ---------- */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  position: relative;
}

/* ---------- Screens ---------- */
.screen {
  display: none;
  padding: 20px;
  padding-bottom: 40px;
  animation: fadeIn 0.3s ease;
}

.screen.active {
  display: block;
}

#screen-welcome.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

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

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

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* ---------- Header / Top Bar ---------- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 8px;
}

.top-bar .close-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-appearance: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-secondary);
  padding: 0;
}

.top-bar .close-btn:active {
  transform: scale(0.88);
  color: var(--text-primary);
}

.top-bar .title {
  font-size: 18px;
  font-weight: 700;
}

.top-bar .spacer {
  width: 40px;
}

/* ---------- Welcome Screen ---------- */
.welcome-header {
  text-align: center;
  margin-bottom: 32px;
}

.welcome-logo {
  width: 72px;
  height: 72px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  overflow: hidden;
  padding: 12px;
}

.welcome-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.welcome-header p {
  font-size: 15px;
  color: rgb(204, 97, 81);
}

.welcome-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  text-align: center;
}

.welcome-card .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.welcome-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.welcome-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-status-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.badge-stat {
  text-align: center;
}

.badge-stat .count {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.badge-stat .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-appearance: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: #1a1a1a;
  color: #ffffff;
  padding: 16px 32px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.btn-primary:active {
  background: rgb(204, 97, 81);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #1a1a1a;
  color: #ffffff;
  padding: 14px 28px;
  width: 100%;
  border: 1.5px solid #1a1a1a;
}

.btn-secondary:active {
  background: rgb(204, 97, 81);
  border-color: rgb(204, 97, 81);
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 16px 32px;
  width: 100%;
}

.btn-dark:active {
  background: #333;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: var(--radius-md);
  width: auto;
}

.btn-danger {
  background: var(--error);
  color: white;
  padding: 14px 28px;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
  font-size: 20px;
}

.btn-group {
  display: flex;
  gap: 12px;
}

.btn-group .btn {
  flex: 1;
}

/* ---------- Forms ---------- */
.form-sections-wrapper {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #f2f4f7;
  overflow: hidden;
}

#screen-ticket .top-bar {
  background: rgb(204, 97, 81) !important;
  border-bottom-color: transparent !important;
}

#screen-ticket .top-bar .title {
  color: #ffffff;
}

/* Constrain ticket to card width and center it on wide viewports */
#screen-ticket.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#screen-ticket .form-sections-wrapper {
  max-width: 420px;
  width: 100%;
}

.form-sections-wrapper > .top-bar {
  margin: -20px -20px 16px -20px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.form-section {
  margin-bottom: 24px;
}

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

.form-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgb(204, 97, 81);
  margin-bottom: 12px;
  padding-left: 4px;
}

.form-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
}

.form-group:last-child {
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  padding-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-card);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 225, 87, 0.2);
  background: var(--bg-card);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  padding-left: 2px;
}

.form-group .error-text {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  padding-left: 2px;
  display: none;
}

.form-group .error-text.visible {
  display: block;
}

/* ── Everest Employee Autocomplete ── */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  max-height: 220px;
  overflow-y: auto;
}

.autocomplete-list.open {
  display: block;
}

.autocomplete-list li {
  padding: 10px 14px;
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
}

.autocomplete-list li:last-child {
  border-bottom: none;
}

.autocomplete-list li:hover,
.autocomplete-list li.ac-active {
  background: #f0f9ff;
  color: #0087ba;
}

.autocomplete-list li .ac-sub {
  font-size: 11px;
  color: #6b7280;
  margin-top: 1px;
}

/* Custom select arrow */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ── Phone input row (country code + input) ── */
.phone-input-row {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  width: 100%;
}
.phone-input-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 225, 87, 0.2);
  background: var(--bg-card);
}
.phone-input-row.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.phone-country-code {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-right: 1.5px solid var(--border);
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}
.phone-area-select {
  /* Override .form-group select */
  width: auto !important;
  min-width: 90px !important;
  flex-shrink: 0 !important;
  align-self: stretch !important;
  border: none !important;
  border-right: 1.5px solid var(--border) !important;
  border-radius: 0 !important;
  background: var(--bg-card) !important;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  padding: 14px 28px 14px 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}
.phone-area-select option[value="manual"] {
  color: var(--text-muted);
}
.phone-input-row input {
  /* Override .form-group input */
  flex: 1 1 0 !important;
  width: 0 !important; /* force flex to control width */
  min-width: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
  padding: 14px 12px !important;
  font-size: 13px;
}

/* ---------- Progress Indicator ---------- */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.progress-step {
  display: flex;
  align-items: center;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all 0.3s;
  flex-shrink: 0;
}

.step-circle.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.step-circle.completed {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: white;
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.step-line.active {
  background: var(--accent);
}

.step-line.completed {
  background: var(--bg-dark);
}

/* ---------- Additional Visitors ---------- */
.visitor-mini-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  animation: slideUp 0.3s ease;
}

.visitor-mini-card .mini-photo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-primary);
}

.visitor-mini-card .mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visitor-mini-card .mini-info {
  flex: 1;
  min-width: 0;
}

.visitor-mini-card .mini-name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visitor-mini-card .mini-detail {
  font-size: 13px;
  color: var(--text-secondary);
}

.visitor-mini-card .mini-badge {
  background: var(--accent);
  color: var(--accent-text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.visitor-mini-card .remove-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.visitor-mini-card .remove-btn:active {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* ---------- Boarding Pass / Ticket ---------- */
.ticket-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-bottom: 20px;
  animation: scaleIn 0.4s ease;
  position: relative;
  border: 1px solid var(--border);
}

.ticket-top {
  padding: 24px 24px 20px;
}

.ticket-brand-header {
  background: #1a1a1a;
  width: 100%;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ticket-logo {
  width: 59px;
  height: 59px;
  object-fit: contain;
}

.ticket-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
  text-align: center;
}

.ticket-brand-footer {
  background: #1a1a1a;
  width: 100%;
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ticket-visitor-main {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.ticket-photo {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.ticket-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-visitor-info {
  flex: 1;
  min-width: 0;
}

.ticket-visitor-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-visitor-company {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.ticket-badge-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ticket-badge-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}

.ticket-badge-value {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  color: rgb(204, 97, 81);
}

/* Perforation */
.ticket-perforation {
  display: flex;
  align-items: center;
  position: relative;
}

.ticket-perforation::before {
  content: "";
  position: absolute;
  left: -14px;
  width: 28px;
  height: 28px;
  background: var(--bg-primary);
  border-radius: 50%;
  border: 1px solid var(--border);
}

.ticket-perforation::after {
  content: "";
  position: absolute;
  right: -14px;
  width: 28px;
  height: 28px;
  background: var(--bg-primary);
  border-radius: 50%;
  border: 1px solid var(--border);
}

.ticket-perforation .perf-line {
  flex: 1;
  height: 0;
  border-top: 2px dashed rgba(0, 0, 0, 0.12);
  margin: 0 20px;
}

/* Ticket bottom details */
.ticket-bottom {
  padding: 20px 24px 24px;
}

.ticket-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ticket-actions {
  margin-top: 20px;
}

.ticket-detail {
  min-width: 0;
}

.ticket-detail .label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.ticket-detail .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-duration-bar {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-duration-bar .dur-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.ticket-duration-bar .dur-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

/* ---------- Toast / Notifications ---------- */
.toast {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

/* ---------- Splash Loader ---------- */
.splash-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 1000;
}

.splash-loader.active {
  display: flex;
}

/* ---------- Loading Spinner ---------- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

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

.loading-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 16px;
}

.loading-card p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 14px;
}

/* ---------- Misc Utilities ---------- */
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--text-muted);
}
.text-sm {
  font-size: 13px;
}
.text-xs {
  font-size: 11px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-24 {
  margin-top: 24px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mb-24 {
  margin-bottom: 24px;
}
.gap-12 {
  gap: 12px;
}
.hidden {
  display: none !important;
}

/* Section title */
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Divider */
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Responsive Adjustments ---------- */

/* Smaller phones */
@media (max-width: 360px) {
  .welcome-header h1 {
    font-size: 24px;
  }

  .ticket-badge-big {
    font-size: 20px;
  }

  .ticket-visitor-name {
    font-size: 18px;
  }

  .form-group input,
  .form-group select {
    padding: 12px 14px;
    font-size: 15px;
  }
}

/* Larger phones */
@media (min-width: 414px) {
  .screen {
    padding: 24px;
  }
}

/* Tablets */
@media (min-width: 768px) {
  .app {
    max-width: 500px;
  }

  .screen {
    padding: 32px;
  }
}

/* Prevent keyboard zoom on iOS & Android (inputs must be ≥16px to avoid auto-zoom) */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
}
