/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Layout and app styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.step.hidden {
  display: none;
}

.step-desc {
  font-size: 1.125rem;
  color: #444;
  text-align: center;
  margin-bottom: 0.5rem;
}

.btn-primary {
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  background: #0066cc;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  min-width: 220px;
}

.btn-primary:hover {
  background: #0052a3;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.location-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
}

.btn-location {
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border: 2px solid #0066cc;
  border-radius: 12px;
  background: #fff;
  color: #0066cc;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  text-align: center;
}

.btn-location:hover {
  background: #e6f0fa;
}

.btn-location:active {
  transform: scale(0.98);
}

.status {
  font-size: 0.9375rem;
  color: #64748b;
  text-align: center;
  min-height: 1.5em;
}

.status.error {
  color: #b91c1c;
}

.status.success {
  color: #15803d;
}

.call-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0066cc;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid #0066cc;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
}

.call-link:hover {
  background: #0066cc;
  color: #fff;
}

.step-hint {
  font-size: 0.875rem;
  color: #64748b;
}

#ticket-id-text {
  font-size: 1.2em;
  font-weight: 500;
  color: #2e2e2e;
}

.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  flex-shrink: 0;
  text-align: center;
  padding: 2rem 1rem;
  /* Extra bottom padding so logo clears Safari mobile toolbar and home indicator */
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  padding-left: calc(1rem + env(safe-area-inset-left, 0px));
  padding-right: calc(1rem + env(safe-area-inset-right, 0px));
  background-color: #f5f5f5;
}

.page-footer .tdot-logo {
  max-height: 60px;
  width: auto;
  display: inline-block;
}
