/**
 * Hidden Harbor Pool Access - CSS Styles
 *
 * iPad-optimized responsive design for Phase 1
 * Large touch targets, readable fonts, clear status indicators
 *
 * @package Hidden_Harbor_Resident_Checker
 * @subpackage Public/CSS
 */

/* ============================================================================
   ROOT & GLOBAL STYLES
   ============================================================================ */

:root {
	--hh-primary: #2563eb;
	--hh-primary-light: #dbeafe;
	--hh-primary-dark: #1e40af;
	--hh-success: #16a34a;
	--hh-success-light: #dcfce7;
	--hh-success-border: #22c55e;
	--hh-danger: #dc2626;
	--hh-danger-light: #fef2f2;
	--hh-danger-border: #ef4444;
	--hh-gray-50: #f9fafb;
	--hh-gray-100: #f3f4f6;
	--hh-gray-200: #e5e7eb;
	--hh-gray-300: #d1d5db;
	--hh-gray-400: #9ca3af;
	--hh-gray-500: #6b7280;
	--hh-gray-600: #4b5563;
	--hh-gray-700: #374151;
	--hh-gray-800: #1f2937;
	--hh-gray-900: #111827;
	--hh-white: #ffffff;
	--hh-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	--hh-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--hh-radius: 8px;
	--hh-radius-lg: 12px;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
		'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
		sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-color: var(--hh-gray-100);
}

/* ============================================================================
   CONTAINER & STEPS
   ============================================================================ */

/* Test Mode Banner */
.hh-test-mode-banner {
	background: #fef3c7;
	border: 2px solid #f59e0b;
	color: #92400e;
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	letter-spacing: 0.5px;
	animation: hh-pulse-banner 2s ease-in-out infinite;
}

@keyframes hh-pulse-banner {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.75; }
}

.hh-container {
	position: relative;
	width: 100%;
	max-width: 768px;
	margin: 0 auto;
	min-height: 100vh;
	background-color: var(--hh-white);
	display: flex;
	flex-direction: column;
}

.hh-step {
	display: none;
	padding: 24px;
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.hh-step.hh-active {
	display: flex;
	flex-direction: column;
}

.hh-header {
	text-align: center;
	margin-bottom: 32px;
}

.hh-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--hh-gray-900);
	margin: 0;
	line-height: 1.2;
}

/* ============================================================================
   SEARCH FORM STYLES
   ============================================================================ */

.hh-search-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hh-search-input {
	width: 100%;
	padding: 16px 20px;
	font-size: 20px;
	border: 2px solid var(--hh-gray-300);
	border-radius: var(--hh-radius-lg);
	background-color: var(--hh-white);
	color: var(--hh-gray-900);
	transition: border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	line-height: 1.5;
}

.hh-search-input:focus {
	outline: none;
	border-color: var(--hh-primary);
	box-shadow: 0 0 0 3px var(--hh-primary-light);
}

.hh-search-input::placeholder {
	color: var(--hh-gray-400);
}

.hh-helper-text {
	padding: 12px 16px;
	background-color: var(--hh-gray-50);
	border-left: 4px solid var(--hh-gray-300);
	border-radius: var(--hh-radius);
	color: var(--hh-gray-600);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

/* ============================================================================
   BUTTON STYLES
   ============================================================================ */

.hh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	min-height: 48px;
	border: none;
	border-radius: var(--hh-radius-lg);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
	-webkit-appearance: none;
	appearance: none;
	text-decoration: none;
	line-height: 1.5;
}

.hh-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Primary buttons */
.hh-btn-primary {
	background-color: var(--hh-primary);
	color: var(--hh-white);
	box-shadow: var(--hh-shadow);
}

.hh-btn-primary:hover:not(:disabled) {
	background-color: var(--hh-primary-dark);
	box-shadow: var(--hh-shadow-lg);
}

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

/* Large buttons (full width, tall) */
.hh-btn-large {
	width: 100%;
	min-height: 60px;
	font-size: 18px;
	margin-bottom: 12px;
}

.hh-btn-large:last-child {
	margin-bottom: 0;
}

/* Secondary buttons (outline style) */
.hh-btn-secondary {
	background-color: var(--hh-white);
	color: var(--hh-primary);
	border: 2px solid var(--hh-primary);
	box-shadow: var(--hh-shadow);
}

.hh-btn-secondary:hover:not(:disabled) {
	background-color: var(--hh-primary-light);
	box-shadow: var(--hh-shadow-lg);
}

.hh-btn-secondary:active:not(:disabled) {
	transform: scale(0.98);
}

/* Check-in buttons (green) */
.hh-btn-checkin {
	width: 100%;
	min-height: 56px;
	font-size: 16px;
	background-color: var(--hh-success);
	color: var(--hh-white);
	box-shadow: var(--hh-shadow);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hh-btn-checkin:hover:not(:disabled) {
	background-color: #15803d;
	box-shadow: var(--hh-shadow-lg);
}

.hh-btn-checkin:active:not(:disabled) {
	transform: scale(0.98);
}

/* Checked-in state (lighter green, disabled) */
.hh-btn-checked {
	background-color: #86efac;
	color: var(--hh-gray-900);
	border: none;
	cursor: default;
}

/* Refresh button (compact, outline) */
.hh-btn-refresh {
	align-self: flex-end;
	padding: 10px 16px;
	min-height: 44px;
	font-size: 14px;
	background-color: var(--hh-white);
	color: var(--hh-primary);
	border: 2px solid var(--hh-primary);
	margin-top: 8px;
	margin-bottom: 16px;
	box-shadow: var(--hh-shadow);
}

.hh-btn-refresh:hover:not(:disabled) {
	background-color: var(--hh-primary-light);
	box-shadow: var(--hh-shadow-lg);
}

/* Back button */
.hh-btn-back {
	align-self: flex-start;
	padding: 8px 16px;
	min-height: 44px;
	font-size: 16px;
	background-color: transparent;
	color: var(--hh-primary);
	border: none;
	margin-bottom: 16px;
}

.hh-btn-back:hover {
	background-color: var(--hh-primary-light);
}

/* Help button (floating) */
.hh-help-btn {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	padding: 0;
	background-color: var(--hh-primary);
	color: var(--hh-white);
	font-size: 18px;
	font-weight: 700;
	box-shadow: var(--hh-shadow-lg);
	z-index: 99;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	transition: all 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
}

.hh-help-btn:hover {
	background-color: var(--hh-primary-dark);
	box-shadow: 0 14px 28px -2px rgba(37, 99, 235, 0.3);
	transform: scale(1.05);
}

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

/* ============================================================================
   RESULTS DISPLAY STYLES
   ============================================================================ */

.hh-household-card {
	background-color: var(--hh-white);
	border: 1px solid var(--hh-gray-200);
	border-radius: var(--hh-radius-lg);
	box-shadow: var(--hh-shadow);
	margin-bottom: 24px;
	overflow: hidden;
}

.hh-household-header {
	padding: 20px;
	border-bottom: 1px solid var(--hh-gray-200);
}

.hh-address {
	font-size: 22px;
	font-weight: 700;
	color: var(--hh-gray-900);
	margin: 0 0 16px 0;
	line-height: 1.3;
	word-break: break-word;
}

.hh-status-banner {
	padding: 16px;
	border-radius: var(--hh-radius);
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 18px;
	font-weight: 600;
	border: 2px solid;
	line-height: 1.4;
}

.hh-status-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.hh-status-text {
	flex: 1;
}

.hh-status-good {
	background-color: var(--hh-success-light);
	border-color: var(--hh-success-border);
	color: #15803d;
}

.hh-status-bad {
	background-color: var(--hh-danger-light);
	border-color: var(--hh-danger-border);
	color: #991b1b;
}

.hh-balance {
	width: 100%;
	margin-top: 0;
	font-size: 16px;
	font-weight: 600;
	color: #991b1b;
}

.hh-residents-list {
	padding: 20px;
	background-color: var(--hh-gray-50);
}

.hh-residents-list h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--hh-gray-900);
	margin: 0 0 16px 0;
}

.hh-resident-row {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
	padding: 12px;
	background-color: var(--hh-white);
	border-radius: var(--hh-radius);
	align-items: flex-start;
}

.hh-resident-row:last-child {
	margin-bottom: 0;
}

.hh-resident-photo {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	overflow: hidden;
	background-color: var(--hh-gray-200);
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.hh-photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--hh-gray-300);
	color: var(--hh-gray-600);
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	padding: 4px;
}

.hh-resident-info {
	flex: 1;
	min-width: 0;
}

.hh-resident-info strong {
	display: block;
	font-size: 16px;
	color: var(--hh-gray-900);
	margin-bottom: 4px;
	word-break: break-word;
}

.hh-relationship {
	display: block;
	font-size: 13px;
	color: var(--hh-gray-600);
	font-weight: 500;
}

.hh-resident-actions {
	flex-shrink: 0;
}

.hh-denied-options {
	padding: 20px;
	background-color: var(--hh-gray-50);
}

.hh-denied-options .hh-helper-text {
	margin-bottom: 16px;
	text-align: left;
}

.hh-denied-options .hh-btn-secondary {
	font-size: 16px;
}

.hh-denied-options a.hh-btn {
	cursor: pointer;
}

.hh-no-results {
	text-align: center;
	padding: 60px 24px;
}

.hh-no-results h2 {
	font-size: 28px;
	font-weight: 700;
	color: var(--hh-gray-900);
	margin: 0 0 12px 0;
}

.hh-no-results p {
	font-size: 16px;
	color: var(--hh-gray-600);
	margin: 0 0 20px 0;
	line-height: 1.5;
}

/* ============================================================================
   RESULTS LIST (household selection)
   ============================================================================ */

.hh-results-heading {
	font-size: 22px;
	font-weight: 700;
	color: var(--hh-gray-900);
	margin: 0 0 16px 0;
}

.hh-result-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	margin-bottom: 8px;
	background-color: var(--hh-white);
	border: 2px solid var(--hh-gray-200);
	border-radius: var(--hh-radius-lg);
	cursor: pointer;
	transition: all 0.15s ease;
	box-shadow: var(--hh-shadow);
}

.hh-result-item:hover,
.hh-result-item:active {
	border-color: var(--hh-primary);
	background-color: var(--hh-primary-light);
}

.hh-result-item-main {
	flex: 1;
	min-width: 0;
}

.hh-result-address {
	font-size: 18px;
	font-weight: 700;
	color: var(--hh-gray-900);
	line-height: 1.3;
}

.hh-result-name {
	font-size: 14px;
	color: var(--hh-gray-600);
	margin-top: 4px;
}

.hh-result-status {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
	margin-left: 12px;
}

.hh-result-status.hh-status-good {
	background-color: var(--hh-success-light);
	color: var(--hh-success);
}

.hh-result-status.hh-status-bad {
	background-color: var(--hh-danger-light);
	color: var(--hh-danger);
}

/* ============================================================================
   RESIDENT ROW ENHANCEMENTS (selection, checked-in)
   ============================================================================ */

.hh-resident-select {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
}

.hh-resident-checkbox {
	width: 24px;
	height: 24px;
	cursor: pointer;
	accent-color: var(--hh-primary);
}

.hh-resident-row.hh-selected {
	border: 2px solid var(--hh-primary);
	background-color: var(--hh-primary-light);
}

.hh-resident-row.hh-checked-in {
	border: 2px solid var(--hh-success-border);
	background-color: var(--hh-success-light);
	opacity: 0.7;
}

/* ============================================================================
   BADGES
   ============================================================================ */

.hh-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	margin-left: 6px;
	vertical-align: middle;
}

.hh-badge-warning {
	background-color: #fef3c7;
	color: #92400e;
}

.hh-badge-info {
	background-color: var(--hh-primary-light);
	color: var(--hh-primary-dark);
}

/* ============================================================================
   ICON BUTTONS
   ============================================================================ */

.hh-btn-icon {
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background-color: var(--hh-primary);
	cursor: pointer;
	transition: all 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
	padding: 0;
}

.hh-btn-icon.hh-btn-photo {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
}

.hh-btn-icon:hover {
	background-color: var(--hh-primary-dark, #1a4fd4);
}

.hh-btn-icon:active {
	transform: scale(0.92);
}

/* ============================================================================
   CHECK-IN AREA
   ============================================================================ */

.hh-checkin-area {
	padding: 20px;
	background-color: var(--hh-white);
	border-top: 1px solid var(--hh-gray-200);
}

.hh-btn-add-member {
	width: 100%;
	margin-top: 16px;
}

/* ============================================================================
   MODALS
   ============================================================================ */

.hh-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1001;
	padding: 24px;
}

.hh-modal.hh-active {
	display: flex;
}

.hh-modal-content {
	background-color: var(--hh-white);
	border-radius: var(--hh-radius-lg);
	padding: 24px;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.25);
}

.hh-modal-small {
	max-width: 380px;
}

.hh-modal-content h3 {
	font-size: 22px;
	font-weight: 700;
	color: var(--hh-gray-900);
	margin: 0 0 20px 0;
}

.hh-modal-actions {
	display: flex;
	gap: 12px;
	margin-top: 20px;
}

.hh-modal-actions .hh-btn {
	flex: 1;
}

/* ============================================================================
   FORM ELEMENTS (inside modals)
   ============================================================================ */

.hh-form-group {
	margin-bottom: 16px;
}

.hh-form-group label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--hh-gray-700);
	margin-bottom: 6px;
}

.hh-form-group input[type="text"],
.hh-form-group select {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
	border: 2px solid var(--hh-gray-300);
	border-radius: var(--hh-radius);
	background-color: var(--hh-white);
	color: var(--hh-gray-900);
	transition: border-color 0.15s ease;
}

.hh-form-group select {
	height: 55px !important;
	-webkit-appearance: menulist;
	appearance: menulist;
}

.hh-form-group input[type="text"]:focus,
.hh-form-group select:focus {
	outline: none;
	border-color: var(--hh-primary);
	box-shadow: 0 0 0 3px var(--hh-primary-light);
}

.hh-checkbox-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hh-checkbox-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 500;
	color: var(--hh-gray-700);
	cursor: pointer;
	margin-bottom: 0;
}

.hh-checkbox-group input[type="checkbox"] {
	width: 22px;
	height: 22px;
	accent-color: var(--hh-primary);
	cursor: pointer;
}

.hh-tooltip-inline {
	display: block;
	font-size: 12px;
	color: var(--hh-gray-500);
	margin-top: 4px;
	font-style: italic;
}

/* ============================================================================
   PHOTO MODAL
   ============================================================================ */

#hh-photo-preview-area {
	text-align: center;
}

#hh-photo-preview {
	max-width: 100%;
	max-height: 300px;
	border-radius: var(--hh-radius);
	margin-bottom: 16px;
	object-fit: contain;
}

#hh-photo-confirm-area {
	text-align: center;
}

#hh-photo-confirm-area p {
	font-size: 18px;
	font-weight: 600;
	color: var(--hh-gray-700);
	margin: 0 0 12px 0;
}

#hh-photo-uploading {
	text-align: center;
	padding: 40px 0;
}

#hh-photo-uploading .hh-spinner {
	margin: 0 auto 16px auto;
	border-color: rgba(37, 99, 235, 0.2);
	border-top-color: var(--hh-primary);
}

#hh-photo-uploading p {
	color: var(--hh-gray-600);
	font-size: 16px;
	margin: 0;
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */

.hh-toast {
	position: fixed;
	bottom: 100px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	padding: 14px 24px;
	border-radius: var(--hh-radius-lg);
	font-size: 16px;
	font-weight: 600;
	z-index: 1002;
	opacity: 0;
	transition: all 0.3s ease;
	pointer-events: none;
	max-width: 90%;
	text-align: center;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.hh-toast.hh-active {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.hh-toast-success {
	background-color: #15803d;
	color: var(--hh-white);
}

.hh-toast-error {
	background-color: #dc2626;
	color: var(--hh-white);
}

/* ============================================================================
   LOADING OVERLAY
   ============================================================================ */

.hh-loading {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.4);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	flex-direction: column;
	gap: 24px;
}

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

.hh-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(255, 255, 255, 0.2);
	border-top-color: var(--hh-white);
	border-radius: 50%;
	animation: hh-spin 1s linear infinite;
}

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

.hh-loading p {
	color: var(--hh-white);
	font-size: 18px;
	font-weight: 600;
	margin: 0;
}

/* ============================================================================
   HELP PANEL
   ============================================================================ */

.hh-help-panel {
	position: fixed;
	bottom: -100%;
	left: 0;
	right: 0;
	background-color: var(--hh-white);
	padding: 24px;
	border-radius: var(--hh-radius-lg) var(--hh-radius-lg) 0 0;
	box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1);
	z-index: 98;
	max-height: 80vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transition: bottom 0.3s ease;
}

.hh-help-panel.hh-active {
	bottom: 0;
}

.hh-help-panel h3 {
	font-size: 24px;
	font-weight: 700;
	color: var(--hh-gray-900);
	margin: 0 0 20px 0;
}

.hh-help-panel p {
	font-size: 16px;
	color: var(--hh-gray-700);
	line-height: 1.6;
	margin: 0 0 16px 0;
}

.hh-help-panel p:last-of-type {
	margin-bottom: 20px;
}

.hh-help-panel strong {
	font-weight: 700;
	color: var(--hh-gray-900);
}

.hh-help-panel .hh-btn {
	width: 100%;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 480px) {
	.hh-container {
		max-width: 100%;
		min-height: 100%;
	}

	.hh-step {
		padding: 16px;
	}

	.hh-title {
		font-size: 28px;
	}

	.hh-search-input {
		font-size: 18px;
		padding: 14px 16px;
	}

	.hh-btn-large {
		font-size: 16px;
		min-height: 56px;
	}

	.hh-address {
		font-size: 20px;
	}

	.hh-status-banner {
		font-size: 16px;
		padding: 12px;
	}

	.hh-help-btn {
		bottom: 16px;
		right: 16px;
	}

	.hh-modal-content {
		padding: 20px;
	}

	.hh-modal-actions {
		flex-direction: column;
	}

	.hh-result-address {
		font-size: 16px;
	}
}

@media (max-width: 320px) {
	.hh-title {
		font-size: 24px;
	}

	.hh-btn,
	.hh-btn-large {
		font-size: 14px;
		min-height: 48px;
		padding: 10px 12px;
	}

	.hh-btn-large {
		min-height: 52px;
	}

	.hh-address {
		font-size: 18px;
	}

	.hh-search-input {
		font-size: 16px;
	}
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--hh-white: #1f2937;
		--hh-gray-900: #f9fafb;
		--hh-gray-800: #e5e7eb;
		--hh-gray-700: #d1d5db;
		--hh-gray-600: #9ca3af;
		--hh-gray-500: #6b7280;
		--hh-gray-100: #374151;
		--hh-gray-50: #4b5563;
	}

	html,
	body {
		background-color: var(--hh-gray-100);
	}

	.hh-container {
		background-color: var(--hh-white);
	}

	.hh-step {
		background-color: var(--hh-white);
	}

	.hh-search-input {
		background-color: var(--hh-gray-100);
		color: var(--hh-gray-900);
		border-color: var(--hh-gray-600);
	}

	.hh-search-input:focus {
		border-color: var(--hh-primary);
	}

	.hh-helper-text {
		background-color: var(--hh-gray-100);
		border-color: var(--hh-gray-600);
		color: var(--hh-gray-400);
	}

	.hh-household-card {
		background-color: var(--hh-gray-100);
		border-color: var(--hh-gray-600);
	}

	.hh-household-header {
		border-color: var(--hh-gray-600);
	}

	.hh-residents-list {
		background-color: var(--hh-gray-100);
	}

	.hh-resident-row {
		background-color: var(--hh-gray-100);
	}

	.hh-address {
		color: var(--hh-gray-900);
	}

	.hh-resident-info strong {
		color: var(--hh-gray-900);
	}

	.hh-help-panel {
		background-color: var(--hh-white);
	}

	.hh-help-panel h3 {
		color: var(--hh-gray-900);
	}

	.hh-help-panel p {
		color: var(--hh-gray-700);
	}
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
	.hh-loading,
	.hh-help-btn,
	.hh-help-panel,
	.hh-btn-back {
		display: none !important;
	}

	.hh-container {
		background-color: transparent;
		box-shadow: none;
	}

	.hh-step {
		page-break-inside: avoid;
	}
}

/* ============================================================================
   GUEST WIZARD
   ============================================================================ */

.hh-guest-card,
.hh-payment-card,
.hh-confirmation-card {
	background-color: var(--hh-white);
	border-radius: var(--hh-radius);
	padding: 30px 24px;
	margin-top: 16px;
	text-align: center;
}

.hh-guest-names {
	color: var(--hh-gray-600);
	margin-bottom: 24px;
	font-size: 16px;
}

.hh-divider {
	display: flex;
	align-items: center;
	margin: 24px 0;
	color: var(--hh-gray-500);
}

.hh-divider::before,
.hh-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background-color: var(--hh-gray-200);
}

.hh-divider span {
	padding: 0 16px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.hh-guest-counter {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 16px 0;
}

.hh-btn-counter {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 2px solid var(--hh-gray-300);
	background-color: var(--hh-white);
	color: var(--hh-gray-700);
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	line-height: 1;
}

.hh-btn-counter:hover {
	border-color: var(--hh-primary);
	color: var(--hh-primary);
}

.hh-btn-counter:active {
	transform: scale(0.92);
	background-color: var(--hh-primary-light);
}

.hh-guest-count {
	font-size: 48px;
	font-weight: 700;
	color: var(--hh-gray-800);
	min-width: 60px;
	text-align: center;
}

.hh-helper-small {
	font-size: 13px;
	margin-top: 4px;
}

.hh-county-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
}

/* Dual Guest Counter Layout */
.hh-guest-counters-row {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin: 20px 0 8px;
}

.hh-guest-counter-group {
	flex: 1;
	text-align: center;
	padding: 16px 8px;
	border: 2px solid var(--hh-gray-200);
	border-radius: var(--hh-radius-lg);
	background: var(--hh-gray-50);
	max-width: 200px;
}

.hh-guest-counter-group h3 {
	margin: 0 0 2px;
	font-size: 16px;
}

.hh-guest-counter-group .hh-helper-small {
	margin: 0 0 8px;
	color: var(--hh-gray-500);
}

.hh-guest-counter-group .hh-guest-counter {
	margin: 8px 0 0;
	gap: 10px;
}

.hh-guest-counter-group .hh-btn-counter {
	width: 48px;
	height: 48px;
	font-size: 24px;
}

.hh-guest-counter-group .hh-guest-count {
	font-size: 36px;
	min-width: 44px;
}

.hh-guest-summary {
	background: var(--hh-primary-light);
	border: 1px solid var(--hh-primary);
	border-radius: var(--hh-radius);
	padding: 10px 16px;
	margin: 12px 0;
	text-align: center;
	font-size: 15px;
	color: var(--hh-primary-dark);
}

.hh-guest-summary p {
	margin: 0;
}

/* ============================================================================
   PAYMENT STEP
   ============================================================================ */

.hh-payment-summary {
	text-align: left;
	background-color: var(--hh-gray-50);
	border-radius: var(--hh-radius);
	padding: 16px 20px;
	margin-bottom: 24px;
}

.hh-fee-breakdown p {
	margin: 4px 0;
	color: var(--hh-gray-600);
}

.hh-fee-breakdown hr {
	border: none;
	border-top: 1px solid var(--hh-gray-200);
	margin: 8px 0;
}

.hh-fee-total {
	font-size: 18px;
	color: var(--hh-gray-800);
}

/* ============================================================================
   CONFIRMATION STEP
   ============================================================================ */

.hh-confirmation-icon {
	font-size: 64px;
	margin-bottom: 16px;
}

.hh-confirmation-success {
	color: var(--hh-success);
}

.hh-confirmation-cash {
	color: var(--hh-success);
}

.hh-confirmation-card {
	color: var(--hh-primary);
}

.hh-confirmation-card h2 {
	margin-bottom: 8px;
}

.hh-confirmation-card p {
	color: var(--hh-gray-600);
	margin: 4px 0;
}

/* ============================================================================
   RESPONSIVE — GUEST & PAYMENT STEPS
   ============================================================================ */

@media (max-width: 480px) {
	.hh-guest-card,
	.hh-payment-card,
	.hh-confirmation-card {
		padding: 20px 16px;
	}

	.hh-guest-count {
		font-size: 40px;
	}

	.hh-btn-counter {
		width: 48px;
		height: 48px;
		font-size: 24px;
	}
}

/* ============================================================================
   EDIT BUTTON (pencil icon)
   ============================================================================ */

.hh-btn-icon.hh-btn-edit {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	background-color: var(--hh-gray-500);
}

.hh-btn-icon.hh-btn-edit:hover {
	background-color: var(--hh-gray-700);
}

.hh-resident-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-shrink: 0;
}

/* ============================================================================
   PHOTO LIGHTBOX
   ============================================================================ */

.hh-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2000;
	background-color: rgba(0, 0, 0, 0.85);
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.hh-lightbox.hh-active {
	display: flex;
}

.hh-lightbox img {
	max-width: 90vw;
	max-height: 85vh;
	border-radius: 8px;
	object-fit: contain;
}

.hh-lightbox-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: none;
	color: #fff;
	font-size: 40px;
	cursor: pointer;
	line-height: 1;
	padding: 8px;
	z-index: 2001;
}

.hh-lightbox-close:hover {
	color: var(--hh-gray-300);
}

/* Clickable photo thumbnails */
.hh-photo-lightbox-trigger {
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.hh-photo-lightbox-trigger:hover {
	opacity: 0.8;
}
