/* Optimized CSS - Reduced from 1400+ lines */

/* Variables - Light mode (default) */
:root {
	--primary: #1a1a1a;
	--secondary: #666666;
	--c41: #ff9500;
	--bw: #5a5a5f;
	--e6: #2d4052;
	--ecn2: #8b5a9b;
	--bg: #ffffff;
	--card: #fafafa;
	--border: #e0e0e0;
	--text: #1a1a1a;
	--text-inv: #ffffff;
}

/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
	:root {
		--primary: #ffffff;
		--secondary: #cccccc;
		--bg: #1a1a1a;
		--card: #2a2a2a;
		--border: #404040;
		--text: #ffffff;
		--text-inv: #1a1a1a;
	}
}

/* Manual theme override (takes priority over system preference) */
[data-theme="light"] {
	--primary: #1a1a1a;
	--secondary: #666666;
	--bg: #ffffff;
	--card: #fafafa;
	--border: #e0e0e0;
	--text: #1a1a1a;
	--text-inv: #ffffff;
}

[data-theme="dark"] {
	--primary: #ffffff;
	--secondary: #cccccc;
	--bg: #1a1a1a;
	--card: #2a2a2a;
	--border: #404040;
	--text: #ffffff;
	--text-inv: #1a1a1a;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
* { font-family: 'Atkinson Hyperlegible Mono', monospace !important; font-size: 0.972rem !important; }

body {
	font-family: 'Atkinson Hyperlegible Mono', monospace;
	font-size: 0.972rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	margin: 0;
	padding: 0;
}

main {
	max-width: 800px;
	margin: 0 auto;
	padding: 3rem 2rem 1rem 2rem;
	background: var(--bg);
}

/* Promo Banner - Inline version */
.promo-banner-inline {
	padding: 16px 20px;
	margin: 20px 0;
	text-align: center;
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.promo-content {
	max-width: 800px;
	margin: 0 auto;
}

/* Promo Price Styling */
.promo-price {
	color: var(--c41) !important;
	font-weight: 600 !important;
}

.promo-badge {
	background: var(--c41);
	color: white;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 0.75rem;
	font-weight: 700;
	margin-left: 6px;
	display: inline-block;
	animation: pulse 2s infinite;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Atkinson Hyperlegible Mono', monospace;
	color: var(--primary);
	margin: 0;
}

h2 {
	font-size: 1.26rem;
	font-weight: 700;
	margin: 3rem 0 2rem 0;
	border-bottom: 1px solid var(--border);
	padding-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

h2:first-of-type { margin-top: 1rem; }

label {
	font-weight: 500;
	margin-bottom: 0.75rem;
	display: inline-block;
}

/* Header */
header {
	padding: 1.5rem 2rem;
	background: var(--bg);
	border-bottom: 2px solid var(--border);
}

.header-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

.header-logo {
	height: 40px;
	width: auto;
	transition: all 0.3s ease;
}

/* Header logo - use different SVG files for each theme */
[data-theme="light"] .header-logo { 
    content: url('/static/img/logo-web.svg');  /* Dark logo for light background */
}
[data-theme="dark"] .header-logo { 
    content: url('/static/img/logo-web-light.svg');  /* Light logo for dark background */
}

/* Theme Toggle */
.theme-toggle {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 1000;
	background: var(--card);
	border: 2px solid var(--border);
	border-radius: 50px;
	padding: 8px 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1.2rem;
}

.theme-toggle:hover {
	border-color: var(--primary);
	background: var(--bg);
}

.theme-icon { transition: opacity 0.3s ease; filter: grayscale(1); }
[data-theme="light"] .theme-toggle .sun { opacity: 1; }
[data-theme="light"] .theme-toggle .moon { opacity: 0.3; }
[data-theme="dark"] .theme-toggle .sun { opacity: 0.3; }
[data-theme="dark"] .theme-toggle .moon { opacity: 1; }

/* Floating Logo */
.floating-logo {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 999;
	pointer-events: none;
}

.floating-logo img {
	display: block;
	height: auto;
	/* Clean 25% resized GIF, no CSS scaling */
}

/* Fixed: Rotating gif should be black on light mode, white on dark mode */
[data-theme="light"] .floating-logo img { filter: invert(1); }  /* Invert = black on light mode */
[data-theme="dark"] .floating-logo img { filter: invert(0); }   /* No inversion = white on dark mode */


/* Forms */
.form-group { margin-bottom: 2rem; }

input[type='text'], input[type='email'], input[type='tel'] {
	width: 100%;
	padding: 0.75rem 0.25rem;
	color: var(--text);
	background: transparent;
	border: none;
	border-bottom: 2px solid var(--border);
	transition: border-color 0.2s ease;
}

input[type='text']:focus, input[type='email']:focus, input[type='tel']:focus {
	outline: none;
	border-bottom-color: var(--primary);
}

textarea {
	width: 100%;
	padding: 0.75rem;
	color: var(--text);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 0;
	transition: border-color 0.2s ease;
}

textarea:focus {
	outline: none;
	border-color: var(--primary);
}

/* Customer Info Section */
.customer-info {
	background: var(--card);
	padding: 30px;
	margin-bottom: 40px;
	border: 1px solid var(--border);
	border-left: 3px solid var(--primary);
}

/* Your Details input styling */
.customer-info input[type='text'],
.customer-info input[type='email'], 
.customer-info input[type='tel'] {
	font-weight: 500;
}

[data-theme="light"] .customer-info input[type='text'],
[data-theme="light"] .customer-info input[type='email'], 
[data-theme="light"] .customer-info input[type='tel'] {
	color: #1e3a8a;
}

[data-theme="dark"] .customer-info input[type='text'],
[data-theme="dark"] .customer-info input[type='email'], 
[data-theme="dark"] .customer-info input[type='tel'] {
	color: #60a5fa;
}

/* Validation Messages */
.form-group {
	position: relative;
}

.validation-message {
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 0.9rem;
	margin-top: 4px;
	margin-bottom: 8px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	max-height: 0;
	overflow: hidden;
}

.validation-message.visible {
	opacity: 1;
	visibility: visible;
	max-height: 100px;
}

.validation-message.tooltip-error {
	background: #dc3545;
	color: white;
	border: 1px solid #dc3545;
}

.validation-message.tooltip-warning {
	background: #ffc107;
	color: #212529;
	border: 1px solid #ffc107;
}

.validation-message.tooltip-info {
	background: #17a2b8;
	color: white;
	border: 1px solid #17a2b8;
}

.validation-message.tooltip-suggestion {
	background: #28a745;
	color: white;
	border: 1px solid #28a745;
}

input.error {
	border-bottom-color: #dc3545 !important;
}

input.warning {
	border-bottom-color: #ffc107 !important;
}

input.info {
	border-bottom-color: #17a2b8 !important;
}

input.suggestion {
	border-bottom-color: #28a745 !important;
}

/* Process Sections */
.process-list { width: 100%; margin-top: 1rem; }

.process-item {
	margin-bottom: 0.5rem;
	border: 1px solid var(--border);
	transition: border-color 0.2s ease;
}

.process-item:hover { border-color: var(--secondary); }

.process-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
	background: var(--bg);
	cursor: pointer;
	font-size: 1.1rem;
	font-weight: 500;
	user-select: none;
	transition: background-color 0.2s ease;
}

.process-title:hover { background: var(--card); }

.process-title .film-title-content {
	display: flex;
	align-items: center;
	flex: 1;
	pointer-events: none;
}

.process-title .film-title-content * { pointer-events: none; }

.process-icon {
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1;
	color: var(--primary);
	pointer-events: none;
}

.film-icon {
	height: 32px;
	margin-right: 12px;
	vertical-align: middle;
	display: inline-block;
	pointer-events: none;
}

.process-content {
	display: none;
	padding: 1.5rem;
	background: var(--card);
}

.process-content.active { display: block; }

/* Color coding for selected sections */
.process-title.selected { color: var(--text-inv); }
.process-title.selected[data-process='C41'] { background: var(--c41); }
.process-title.selected[data-process='BW'] { background: var(--bw); }
.process-title.selected[data-process='E6'] { background: var(--e6); }
.process-title.selected[data-process='ECN2'] { background: var(--ecn2); }

/* Dark mode specific text colors for selected sections */
[data-theme="dark"] .process-title.selected[data-process='C41'] { color: #000000; }
[data-theme="dark"] .process-title.selected[data-process='BW'] { color: #ffffff; }
[data-theme="dark"] .process-title.selected[data-process='E6'] { color: #ffffff; }
[data-theme="dark"] .process-title.selected[data-process='ECN2'] { color: #ffffff; }

/* Quantity Controls */
.film-format-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.quantity-control {
	display: grid;
	grid-template-columns: 40px 1fr 40px;
	align-items: center;
	border: 1px solid var(--border);
}

.quantity-btn {
	width: 100%;
	height: 100%;
	border: none;
	background: var(--bg);
	font-size: 1.5rem;
	font-weight: bold;
	cursor: pointer;
	color: var(--text);
	transition: background-color 0.2s ease;
}

.quantity-btn:hover { background: var(--card); }
.quantity-btn.minus { border-right: 1px solid var(--border); }
.quantity-btn.plus { border-left: 1px solid var(--border); }

.quantity-input {
	width: 100%;
	padding: 0.5rem;
	border: none;
	background: var(--card);
	text-align: center;
	font-weight: 600;
	font-size: 1.2rem;
	color: var(--primary);
	-moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Toggle Sections */
.toggle-section {
	margin: 1rem 0;
	padding: 12px 16px;
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	background: var(--bg);
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.toggle-section:hover { background: var(--card); }

.toggle-section input[type='checkbox'] {
	margin-right: 0.75rem;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.toggle-section label {
	margin-bottom: 0;
	font-weight: 600;
	cursor: pointer;
}

/* Remember Me Toggle Switch */
.remember-me-toggle {
	margin-bottom: 0.5rem !important;
}

.toggle-switch {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.toggle-switch input[type="checkbox"] {
	display: none;
}

.toggle-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	font-weight: 500;
}

.toggle-slider {
	position: relative;
	width: 50px;
	height: 24px;
	background: var(--border);
	border-radius: 24px;
	transition: background-color 0.3s ease;
}

.toggle-slider::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background: white;
	border-radius: 50%;
	transition: transform 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-label .toggle-slider {
	background: var(--c41);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-label .toggle-slider::before {
	transform: translateX(26px);
}

.toggle-text {
	font-size: 0.972rem;
	color: var(--text);
}

.hidden-content {
	padding: 1.5rem;
	border: 1px solid var(--border);
	border-top: none;
	margin-top: -1rem;
	margin-bottom: 1rem;
	display: none;
}

/* Dropdown Headers */
.dropdown-header {
	cursor: pointer;
	user-select: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: var(--card);
	border: 2px solid var(--border);
	border-radius: 8px;
	margin-bottom: 10px;
	transition: all 0.3s ease;
}

.dropdown-header:hover, .dropdown-header.open {
	border-color: var(--primary);
	background: var(--bg);
}

.dropdown-header.open {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	margin-bottom: 0;
}

.dropdown-arrow {
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1;
	transition: transform 0.3s ease;
	margin-left: 15px;
	color: var(--primary);
}

.dropdown-header.open .dropdown-arrow { transform: rotate(45deg); }

.dropdown-content {
	overflow: hidden;
	transition: all 0.3s ease;
	max-height: 0;
	opacity: 0;
	border: 2px solid var(--border);
	border-top: none;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	background: var(--card);
	padding: 0 20px;
}

.dropdown-content.open {
	max-height: 1000px;
	opacity: 1;
	padding: 20px;
	border-color: var(--primary);
}

/* Radio and Checkboxes */
.radio-group { margin-top: 0.5rem; }

.radio-item {
	display: flex;
	align-items: center;
	margin-bottom: 0.75rem;
	cursor: pointer;
	padding: 8px;
	border-radius: 6px;
	transition: background-color 0.2s ease;
}

.radio-item:hover { background: var(--card); }

.radio-item input[type='radio'] {
	margin-right: 0.75rem;
	width: 18px;
	height: 18px;
}

.radio-item label {
	margin-bottom: 0;
	font-weight: 400;
	cursor: pointer;
}

/* Custom Radio/Checkbox Styling */
input[type="radio"], input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--border);
	border-radius: 50%;
	background: var(--card);
	position: relative;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-right: 0.75rem;
	flex-shrink: 0;
}

input[type="checkbox"] { border-radius: 4px; }

input[type="radio"]:checked, input[type="checkbox"]:checked {
	border-color: var(--primary);
	background: var(--primary);
}

input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--text-inv);
}

input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -60%) rotate(45deg);
	width: 5px;
	height: 8px;
	border: solid var(--text-inv);
	border-width: 0 2px 2px 0;
}

input[type="radio"]:hover, input[type="checkbox"]:hover {
	border-color: var(--primary);
}

/* Mail Placeholder */
.negatives-collection-section {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 1rem;
}

.postage-placeholder {
	flex-shrink: 0;
	width: 80px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 8px;
	transition: all 0.3s ease;
}

.postage-placeholder:hover {
	border-color: var(--primary);
	background: var(--bg);
}

.mail-icon {
	width: 60px;
	height: 80px;
	opacity: 0.7;
	transition: opacity 0.3s ease;
	object-fit: contain;
}

/* Red styling for discard icon */
.mail-icon.icon-red {
	filter: invert(17%) sepia(93%) saturate(7500%) hue-rotate(356deg) brightness(91%) contrast(135%) !important;
}

[data-theme="light"] .mail-icon.icon-red {
	filter: invert(17%) sepia(93%) saturate(7500%) hue-rotate(356deg) brightness(91%) contrast(135%) !important;
}

[data-theme="dark"] .mail-icon.icon-red {
	filter: invert(17%) sepia(93%) saturate(7500%) hue-rotate(356deg) brightness(91%) contrast(135%) !important;
}

.postage-placeholder:hover .mail-icon { opacity: 1; }

[data-theme="light"] .mail-icon { filter: invert(0); }
[data-theme="dark"] .mail-icon { filter: invert(1); }

.negatives-collection-content { flex: 1; }

/* Storage Warning */
.storage-warning {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 12px 0 35px 0;
	padding: 15px 18px;
	background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
	border: 1px solid #ffc107;
	border-left: 4px solid var(--c41);
	border-radius: 8px;
}

[data-theme="dark"] .storage-warning {
	background: linear-gradient(135deg, #3d3200 0%, #4a3c00 100%);
	border: 1px solid #6c5500;
	color: #fff3cd;
}

.warning-icon {
	font-size: 1.2rem;
	flex-shrink: 0;
}

.warning-text {
	font-size: 0.9rem;
	font-weight: 500;
	color: #856404;
	line-height: 1.4;
}

[data-theme="dark"] .warning-text { color: #fff3cd; }

/* Final Check Groups */
.final-check-group {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 25px;
	padding: 25px 20px;
	background: var(--bg);
	border-radius: 12px;
	border-left: 3px solid var(--c41);
	border: 1px solid rgba(0, 0, 0, 0.05);
	cursor: pointer;
	transition: all 0.3s ease;
}

.final-check-group:hover {
	background: var(--card);
	transform: translateY(-1px);
}

[data-theme="dark"] .final-check-group {
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.final-check-group input[type="checkbox"] {
	margin: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
}

.final-check-group label {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	cursor: pointer;
}

.final-check-group label a {
	font-weight: 600;
	text-decoration: underline;
}

[data-theme="light"] .final-check-group label a {
	color: #1e40af;
}

[data-theme="dark"] .final-check-group label a {
	color: #60a5fa;
}

.final-check-group label a:hover {
	text-decoration: none;
	opacity: 0.8;
}

/* Notes Label */
.notes-label { font-weight: 700 !important; }

/* Total Display */
.total-display {
	border-radius: 12px;
	padding: 30px 25px;
	margin: 40px 0;
	text-align: center;
	transition: all 0.3s ease;
	min-width: 120px;
}

[data-theme="light"] .total-display {
	background: #1a1a1a;
	border: 2px solid #1a1a1a;
	color: #ffffff;
}

[data-theme="dark"] .total-display {
	background: #ffffff;
	border: 2px solid #ffffff;
	color: #1a1a1a;
}

.total-display:hover { transform: translateY(-2px); }

[data-theme="light"] .total-display:hover { border-color: #333333; }
[data-theme="dark"] .total-display:hover { border-color: #cccccc; }

.total-display h3 {
	margin: 0;
	font-size: 1.5rem;
	color: inherit;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.total-display #displayTotal {
	color: var(--c41);
	font-weight: 700;
}

/* Service fee notice styling */
.service-fee-notice {
	text-align: center;
	opacity: 0.8;
}

[data-theme="light"] .service-fee-notice {
	color: #ffffff;
}

[data-theme="dark"] .service-fee-notice {
	color: #1a1a1a;
}

/* Payment Group */
.payment-group {
	border: 2px solid var(--border);
	border-radius: 12px;
	padding: 0;
	margin-top: 25px;
	overflow: hidden;
	background: var(--card);
}

/* Apple Pay unavailable styling */
.payment-group .option.apple-pay-unavailable {
	opacity: 0.4;
	pointer-events: none;
}

.payment-group .option.apple-pay-unavailable .option-label {
	color: var(--secondary);
	cursor: not-allowed;
}

.payment-group .option.apple-pay-unavailable .option-label::before {
	border-color: var(--secondary);
	background: var(--card);
}

.payment-group legend {
	font-weight: 600;
	padding: 0 15px;
	margin-left: 15px;
	font-size: 1.3em;
	color: var(--primary);
}

.payment-group .option {
	position: relative;
	border-top: 1px solid var(--border);
	transition: all 0.2s ease;
}

.payment-group .option:first-of-type { border-top: none; }
.payment-group .option:hover:not(.apple-pay-unavailable) { background: var(--bg); }

.payment-group .option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.payment-group .option-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 25px;
	cursor: pointer;
	font-size: 1.05em;
	font-weight: 700;
	position: relative;
	transition: all 0.2s ease;
	margin-bottom: 0 !important;
}

.payment-group .option-label::before {
	content: '';
	position: absolute;
	left: 25px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: 2px solid var(--border);
	border-radius: 50%;
	background: var(--card);
	transition: all 0.2s ease;
}

.payment-group .option-label::after {
	content: '';
	position: absolute;
	left: 31px;
	top: 50%;
	transform: translateY(-50%) scale(0);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--text-inv);
	transition: transform 0.2s ease;
}

.payment-group .option input[type="radio"]:checked + .option-label::before {
	border-color: var(--primary);
	background: var(--primary);
}

.payment-group .option input[type="radio"]:checked + .option-label::after {
	transform: translateY(-50%) scale(1);
}

.payment-group .option input[type="radio"]:checked + .option-label {
	background: var(--bg);
	border-left: 4px solid var(--primary);
}

.payment-group .option-label span {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: 35px;
	font-weight: 700;
}

.payment-group .payment-icon {
	width: 24px;
	height: 24px;
}

[data-theme="light"] .payment-group .payment-icon { filter: invert(0); }
[data-theme="dark"] .payment-group .payment-icon { filter: invert(1); }

.payment-group .option-content {
	padding: 15px 25px 20px 25px;
	display: none;
	background: var(--bg);
	border-top: none;
	margin-top: -1px;
}

.payment-group .option input[type='radio']:checked + .option-label + .option-content {
	display: block;
}

/* Payment Status Messages */
#payment-status-container {
	margin: 1.5rem 0;
	padding: 1rem 1.5rem;
	border-radius: 8px;
	font-weight: 500;
	text-align: center;
	font-size: 1rem;
	line-height: 1.4;
	display: none;
	transition: all 0.3s ease;
}

[data-theme="light"] #payment-status-container {
	background: #f0f9ff;
	border: 2px solid #0ea5e9;
}

[data-theme="dark"] #payment-status-container {
	background: #0c1e2e;
	border: 2px solid #38bdf8;
}

/* Override inline styles set by JavaScript */
#payment-status-container[style*="color: #7d2019"] {
	background: #fef2f2 !important;
	border-color: #ef4444 !important;
	color: #dc2626 !important;
}

[data-theme="dark"] #payment-status-container[style*="color: #7d2019"] {
	background: #2d1b1b !important;
	border-color: #f87171 !important;
	color: #fca5a5 !important;
}

#payment-status-container[style*="color: #006f39"] {
	background: #f0fdf4 !important;
	border-color: #22c55e !important;
	color: #16a34a !important;
}

[data-theme="dark"] #payment-status-container[style*="color: #006f39"] {
	background: #1a2e1a !important;
	border-color: #4ade80 !important;
	color: #86efac !important;
}

/* Payment Buttons */
.payment-button {
	width: 100%;
	padding: 14px 24px;
	font-family: 'Atkinson Hyperlegible Mono', monospace;
	font-weight: 500;
	color: var(--text-inv);
	background: var(--primary);
	border: 2px solid var(--primary);
	border-radius: 0;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	display: inline-block;
}

.payment-button:hover:not(:disabled) {
	background: transparent;
	color: var(--primary);
	border-color: var(--primary);
}

.payment-button:disabled {
	background: var(--bw);
	border-color: var(--bw);
	color: var(--text-inv);
	cursor: not-allowed;
	opacity: 0.6;
}

/* Card Container */
#card-container {
	min-height: 80px;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	padding: 15px;
	background: white;
	margin-bottom: 15px;
}

/* Apple Pay Button */
#apple-pay-button {
	display: inline-block;
	-webkit-appearance: -apple-pay-button;
	-apple-pay-button-type: plain;
	-apple-pay-button-style: black;
	height: 48px;
	width: 100%;
	margin-top: 10px;
	border-radius: 4px;
}

/* Floating Total */
.floating-total {
	position: fixed;
	bottom: 20px;
	right: 20px;
	border-radius: 12px;
	padding: 15px 20px;
	z-index: 999;
	transition: all 0.3s ease;
	font-size: 1.2rem;
	font-weight: 600;
	min-width: 120px;
	text-align: center;
}

[data-theme="light"] .floating-total {
	background: #1a1a1a;
	border: 2px solid #1a1a1a;
	color: #ffffff;
}

[data-theme="dark"] .floating-total {
	background: #ffffff;
	border: 2px solid #ffffff;
	color: #1a1a1a;
}

.floating-total.hidden {
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
}

.floating-total:hover { transform: translateY(-2px); }

[data-theme="light"] .floating-total:hover { border-color: #333333; }
[data-theme="dark"] .floating-total:hover { border-color: #cccccc; }

.floating-total-label {
	font-size: 0.9rem;
	font-weight: 500;
	opacity: 0.7;
	margin-bottom: 5px;
}

.floating-total-amount {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--c41);
}

/* Service Sections */
.service-section {
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--border);
}

.service-section:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
}

/* Drop-off Method and Final Details special styling */
.service-section:nth-child(2),
.service-section:last-of-type {
	background: linear-gradient(135deg, var(--bg) 0%, var(--card) 100%);
	padding: 40px 30px;
	border-radius: 16px;
	border: 1px solid var(--border);
	margin-bottom: 50px;
}

.service-section:nth-child(2) h2,
.service-section:last-of-type h2 {
	color: var(--primary);
	font-weight: 700;
	font-size: 1.26rem;
	margin-bottom: 30px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.service-section:last-of-type label {
	color: var(--secondary);
	font-weight: 400;
	line-height: 1.7;
}

.service-section:last-of-type .label-description {
	opacity: 0.6;
	font-size: 0.85rem;
	line-height: 1.6;
	margin: 8px 0 15px 0;
}

.service-section:last-of-type .form-group {
	margin-bottom: 35px;
}

.service-section:last-of-type textarea {
	background: var(--bg);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 20px;
	font-size: 0.95rem;
	line-height: 1.6;
	resize: vertical;
	min-height: 120px;
}

[data-theme="dark"] .service-section:last-of-type textarea {
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Success Page */
.success-page {
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.success-icon {
	font-size: 4rem;
	margin-bottom: 2rem;
}

.success-page h1 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	color: var(--primary);
}

.success-message {
	font-size: 1.2rem;
	margin-bottom: 3rem;
	color: var(--secondary);
}

.success-page .order-summary {
	background: linear-gradient(135deg, var(--bg) 0%, var(--card) 100%);
	padding: 30px;
	border-radius: 16px;
	border: 1px solid var(--border);
	margin: 3rem 0 2rem 0;
	text-align: left;
}

.success-page .order-summary h2 {
	text-align: center;
	margin-bottom: 2rem;
	font-size: 1.5rem;
}

.summary-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
	border-bottom: none;
}

.summary-item .label {
	font-weight: 600;
	color: var(--text);
}

.summary-item .value {
	font-weight: 700;
	color: var(--primary);
}

.summary-item .total-amount {
	color: var(--c41);
	font-size: 1.2rem;
}

.summary-item .status-paid {
	color: #28a745;
}

.summary-item .status-instore {
	color: var(--c41);
}

.confirmation-text {
	text-align: center;
	margin: 2rem 0;
	color: var(--secondary);
	font-size: 1rem;
	line-height: 1.6;
}

.button-group {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 3rem 0;
}

.payment-button.secondary {
	background: transparent;
	color: var(--primary);
	border: 2px solid var(--primary);
}

.payment-button.secondary:hover {
	background: var(--primary);
	color: var(--text-inv);
}

.success-page .payment-button.primary {
	margin-top: 0;
}

/* Tracking Section */
.tracking-section {
	background: linear-gradient(135deg, var(--bg) 0%, var(--card) 100%);
	padding: 30px;
	border-radius: 16px;
	border: 1px solid var(--border);
	margin: 1rem 0 2rem 0;
	text-align: center;
}

.tracking-section h2 {
	margin-bottom: 1rem;
	font-size: 1.5rem;
	color: var(--primary);
}

.tracking-message {
	margin-bottom: 1.5rem;
	color: var(--secondary);
	font-size: 1.1rem;
}

.qr-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.qr-link {
	display: inline-block;
	transition: transform 0.3s ease;
	cursor: pointer;
	text-decoration: none;
}

.qr-link:hover {
	transform: scale(1.05);
}

.qr-image {
	border: 4px solid var(--border);
	border-radius: 12px;
	background: white !important;
	padding: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	width: max-content;
	height: auto;
}

.qr-code-img {
	width: 100%;
	height: auto;
	margin-bottom: 0px;
}

.qr-text {
	color: #1a1a1a;
	font-weight: 500;
	white-space: nowrap;
	margin-bottom: 12px;
	display: block;
}

.tracking-link-container {
	margin-top: 0;
}

.tracking-link {
	display: inline-block;
	padding: 12px 24px;
	background: var(--primary);
	color: var(--text-inv);
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.tracking-link:hover {
	background: var(--primary);
	color: var(--bg);
	transform: translateY(-2px);
}

/* Failure Page */
.failure-page {
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.failure-icon {
	font-size: 4rem;
	margin-bottom: 2rem;
}

.failure-page h1 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	color: #dc3545;
}

.failure-message {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: var(--secondary);
}

.error-details {
	background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
	padding: 20px;
	border-radius: 12px;
	border: 1px solid #f5c6cb;
	margin: 2rem 0;
	color: #721c24;
}

[data-theme="dark"] .error-details {
	background: linear-gradient(135deg, #2d1b1e 0%, #3a2226 100%);
	border: 1px solid #6f1e2c;
	color: #f5c6cb;
}

.error-code {
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

.contact-info {
	font-size: 1rem;
	line-height: 1.6;
}

/* Footer */
footer {
	padding: 1.5rem 2rem;
	background: var(--bg);
	border-top: 2px solid var(--border);
}

.footer {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9rem;
	color: var(--secondary);
}

.footer a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
}

.footer a:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
	main { padding: 1.5rem 1rem 0.5rem 1rem; }
	
	/* Mobile promo banner adjustments */
	.promo-banner-inline {
		padding: 12px 15px;
		font-size: 0.9rem;
		margin: 15px 0;
	}
	
	/* Remove Final Details container styling on mobile only */
	.service-section:last-of-type {
		background: none !important;
		padding: 0 !important;
		border-radius: 0 !important;
		border: none !important;
		margin-bottom: 1rem !important;
	}
	
	.service-section:last-of-type h2 {
		color: var(--primary) !important;
		font-weight: 700 !important;
		font-size: 1.26rem !important;
		margin-bottom: 30px !important;
		text-transform: uppercase !important;
		letter-spacing: 0.5px !important;
		border-bottom: 1px solid var(--border) !important;
		padding-bottom: 1rem !important;
	}
	.film-format-inputs { grid-template-columns: 1fr; }
	.negatives-collection-section {
		flex-direction: column;
		align-items: center;
		gap: 15px;
	}
	.postage-placeholder {
		width: 60px;
		height: 45px;
	}
	.mail-icon {
		width: 30px;
		height: 30px;
	}
	.success-page h1, .failure-page h1 {
		font-size: 2rem;
	}
	.button-group {
		flex-direction: column;
	}
	
	/* Mobile logo adjustments */
	.header-logo {
		height: 14px; /* 65% smaller than 40px */
		margin: 6px 0; /* Add 6px top and bottom margin */
	}
	
	.floating-logo img {
		transform: scale(0.2); /* 50% smaller than 0.4 */
	}
	
	/* Mobile: Add more space above header and align elements */
	header {
		padding: 1.5rem 2rem 1.5rem 2rem; /* Increased top padding by 0.5rem */
	}
	
	.theme-toggle {
		top: 1rem; /* Match header padding */
		left: 1rem; /* Closer to edge */
	}
	
	.floating-logo {
		top: 1.5rem; /* Match header padding */
		right: 1.3rem; /* Closer to edge */
	}
	
	.floating-logo img {
		height: 32px; /* Match theme toggle height */
		width: auto;
		transform: none; /* Remove scale, use fixed height instead */
	}
	
	/* Mobile footer adjustments */
	.footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
	
	footer {
		padding: 1rem 1rem;
	}
}
