
/* Global variables */
:root {
	--blue: #005b96;
	--ink: #183346;
	--muted: #506778;
	--line: #d5e1e8;
	--wash: #f3f7fa;
	--teal: #008785;
}

/* Global styles */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--ink);
	background: white;
	font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
	color: var(--blue);
	text-underline-offset: 4px;
}

a:hover {
	text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
	outline: 3px solid #e8b900;
	outline-offset: 4px;
}

/* Page layout */
.shell {
	width: min(1080px, calc(100% - 48px));
	margin: auto;
}

header {
	background: var(--blue);
	color: white;
	border-bottom: 5px solid #55c4cf;
}

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 22px 0;
}

.brand {
	color: white;
	text-decoration: none;
	font-size: 24px;
}

main {
	padding-block: 28px 60px;
}

/* Typography */
h1 {
	font-size: clamp(28px, 4vw, 40px);
	letter-spacing: -1px;
	line-height: 1.2;
	margin: 10px 0 18px;
}

h2 {
	font-size: 25px;
	margin: 5px 0 12px;
	line-height: 1.3;
}

h3 {
	font-size: 19px;
	margin: 0 0 8px;
}

p {
	margin: 8px 0 16px;
}

.eyebrow {
	color: var(--blue);
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 1.6px;
	margin-top: 25px;
}

.intro {
	color: var(--muted);
	font-size: 19px;
	margin-bottom: 30px;
}

.muted {
	color: var(--muted);
	font-size: 14px;
}

.notice {
	padding: 14px 18px;
	background: #fff8dd;
	border-left: 4px solid #d4aa30;
	font-size: 14px;
}

/* Official waiting estimate */
.official {
	display: flex;
	justify-content: space-between;
	align-items: start;
	gap: 24px;
	padding: 24px;
	background: var(--wash);
	border-top: 3px solid var(--blue);
	margin: 30px 0 38px;
}

.official .eyebrow {
	margin-top: 0;
}

.official > a {
	flex-shrink: 0;
}

.live-value {
	font-size: 26px;
	font-weight: 700;
}

/* Filters and form controls */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: end;
	margin: 22px 0;
}

label {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	font-weight: 650;
	gap: 6px;
}

select,
button {
	font: inherit;
	padding: 10px 14px;
	border-radius: 4px;
}

select {
	border: 1px solid #8095a3;
	background: white;
	color: var(--ink);
	min-height: 46px;
}

button {
	background: var(--blue);
	color: white;
	border: 1px solid var(--blue);
	cursor: pointer;
	min-height: 46px;
}

button:hover {
	background: #004570;
}

/* Summary statistics */
.metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 24px 0 32px;
	border-block: 1px solid var(--line);
	padding: 22px 0;
	gap: 22px;
}

.metrics > div + div {
	border-left: 1px solid var(--line);
	padding-left: 22px;
}

dt {
	color: var(--muted);
	font-size: 14px;
}

dd {
	margin: 4px 0 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
}

dd small {
	font-size: 16px;
	font-weight: 400;
}

/* Waiting time chart */
.chart-panel {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 5px;
}

.chart-scroll,
.table-scroll {
	overflow-x: auto;
}

.chart {
	display: flex;
	gap: 16px;
	height: 230px;
	margin: 22px 0;
	min-width: 440px;
}

.chart-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	text-align: center;
	font-size: 12px;
	color: var(--muted);
	min-width: 40px;
}

.bar-track {
	height: 195px;
	display: flex;
	align-items: end;
	border-bottom: 1px solid #8095a3;
	background: repeating-linear-gradient(
		to top,
		transparent 0,
		transparent 48px,
		#e5edf2 48px,
		#e5edf2 49px
	);
}

.bar {
	background: var(--teal);
	width: 100%;
	min-height: 2px;
	border-radius: 3px 3px 0 0;
}

.chart-column > span {
	padding-top: 9px;
	white-space: nowrap;
}

.hour-chart {
	min-width: 1100px;
	gap: 8px;
}

/* Chart data table */

summary {
	color: var(--blue);
	cursor: pointer;
}

table {
	border-collapse: collapse;
	margin-top: 15px;
	width: 100%;
	font-size: 14px;
	text-align: left;
}

caption {
	text-align: left;
	font-weight: 650;
	padding-bottom: 10px;
}

th,
td {
	border-bottom: 1px solid var(--line);
	padding: 8px 12px;
}

/* Visit feedback */
.reviews-heading {
	margin-top: 36px;
}

.review {
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.review-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	font-size: 14px;
	color: var(--muted);
	align-items: center;
}

.review p {
	margin: 10px 0 0;
}

.badge {
	padding: 2px 8px;
	border-radius: 3px;
	background: #fff3c2;
	font-size: 12px;
	color: #604900;
}

.empty {
	background: var(--wash);
	padding: 28px;
}

/* Footer and accessibility */
footer {
	padding: 20px 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
}

.skip-link {
	position: absolute;
	top: -100px;
	background: white;
	padding: 12px;
}

.skip-link:focus {
	top: 0;
}

/* NEW: Report experience button */
.experience-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 24px;
}

.experience-header h2 {
	margin-bottom: 0;
}

.report-button {
	display: inline-block;
	padding: 14px 24px;
	background: var(--blue);
	color: white;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 650;
	text-decoration: none;
	text-align: center;
}

.report-button:hover {
	background: #004570;
	color: white;
}

/* NEW: Report form layout */

.report-page {
	display: flex;
	justify-content: center;
	padding: 30px 0;
}

.report-card {
	width: 100%;
	max-width: 640px;
	padding: 32px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.report-heading {
	text-align: center;
	margin-bottom: 28px;
}

.report-heading .eyebrow {
	margin-top: 0;
}

.report-heading h1 {
	font-size: 30px;
}

.report-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* NEW: Report form sections */

.form-section {
	min-width: 0;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.form-section legend {
	padding: 0 10px;
	color: var(--blue);
	font-weight: 650;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

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

.form-label {
	font-size: 14px;
	font-weight: 650;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

.form-row:last-child,
.form-row .form-group {
	margin-bottom: 0;
}

.report-form input:not([type="radio"]),
.report-form select,
.report-form textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid #8095a3;
	border-radius: 6px;
	background: white;
	color: var(--ink);
	font: inherit;
}

.report-form input:focus-visible,
.report-form textarea:focus-visible {
	outline: 3px solid #e8b900;
	outline-offset: 4px;
}

.report-form textarea {
	resize: vertical;
	min-height: 110px;
}

.form-hint {
	margin: 0;
	font-size: 12px;
	color: var(--muted);
}

/* NEW: Experience rating */

.rating-options {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.rating-option {
	position: relative;
	cursor: pointer;
}

.rating-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.rating-value {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 48px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: white;
	font-size: 18px;
	font-weight: 650;
}

.rating-option:hover .rating-value {
	background: var(--wash);
	border-color: var(--blue);
}

.rating-option input:checked + .rating-value {
	background: var(--blue);
	border-color: var(--blue);
	color: white;
}

.rating-option input:focus-visible + .rating-value {
	outline: 3px solid #e8b900;
	outline-offset: 4px;
}

.rating-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 12px;
	color: var(--muted);
}

/* NEW: Report submission */

.privacy-notice {
	padding: 14px 16px;
	background: var(--wash);
	border-left: 3px solid var(--blue);
	font-size: 13px;
	color: var(--muted);
}

.report-submit {
	width: 100%;
	padding: 14px;
	border-radius: 6px;
	font-weight: 650;
}

.report-cancel {
	text-align: center;
	font-size: 14px;
	color: var(--muted);
	text-decoration: none;
}

.report-cancel:hover {
	text-decoration: underline;
}

.report-error {
	padding: 12px 16px;
	margin-bottom: 20px;
	border: 1px solid #fecaca;
	border-radius: 6px;
	background: #fef2f2;
	color: #b91c1c;
}

/* Home page search */
.hero {
	max-width: 720px;
	padding: 20px 0 12px;
}

.search-form {
	padding: 24px;
	background: var(--wash);
	border-top: 3px solid var(--blue);
}

.search-row {
	display: flex;
	gap: 12px;
	margin-top: 8px;
}

.search-row input {
	flex: 1;
	min-width: 0;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid #8095a3;
	border-radius: 4px;
	background: white;
	color: var(--ink);
	font: inherit;
}

.search-row input:focus-visible {
	outline: 3px solid #e8b900;
	outline-offset: 4px;
}

.search-row button {
	padding-inline: 28px;
	font-weight: 650;
}

.search-error {
	margin-top: 16px;
	padding: 12px 16px;
	border: 1px solid #fecaca;
	border-radius: 6px;
	background: #fef2f2;
	color: #b91c1c;
}

/* Home page explanation */
.how-it-works {
	margin-top: 40px;
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 5px;
	counter-increment: step;
}

.steps li::before {
	content: counter(step);
	display: flex;
	justify-content: center;
	align-items: center;
	width: 32px;
	height: 32px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--teal);
	color: white;
	font-weight: 700;
}

.steps p {
	margin: 0;
	color: var(--muted);
}

/* Responsive layout */
@media (max-width: 800px) {
	.steps {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 650px) {
	.shell {
		width: calc(100% - 32px);
	}

	.search-form {
		padding: 16px;
	}

	.search-row {
		flex-direction: column;
	}

	.search-row button {
		width: 100%;
	}

	.location {
		display: none;
	}

	.official {
		flex-direction: column;
		align-items: start;
		gap: 12px;
	}

	.metrics {
		gap: 12px;
	}

	.metrics > div + div {
		padding-left: 12px;
	}

	dd {
		font-size: 26px;
	}

	dt {
		font-size: 12px;
	}

	.chart-panel {
		padding: 16px;
	}

	.chart:not(.hour-chart) {
		min-width: 0;
		gap: 6px;
	}

	.chart:not(.hour-chart) .chart-column {
		min-width: 0;
		font-size: 10px;
	}

	.filters label,
	.filters select {
		width: 100%;
	}

  .report-page {
		padding: 16px 0;
	}

	.report-card {
		padding: 20px;
	}

	.report-heading h1 {
		font-size: 24px;
	}

	.form-section {
		padding: 16px;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.report-button {
		width: 100%;
	}
}


