﻿/* Preorder Page Material Design Styles */

.preorder-container {
	padding: 20px 0;
	background-color: #f8f9fa;
	min-height: 80vh;
}

/* Typography */
/* Banner */
/* Banner Wrapper */
.preorder-banner-wrapper {
	margin-bottom: 20px;
	overflow: hidden;
	max-width: 1366px;
	margin-left: auto;
	margin-right: auto;
}

.preorder-banner-wrapper img {
	width: 100%;
}

/* Overlay Countdown */
.preorder-countdown-overlay {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 15px;
	/* Adjust spacing between numbers */
	background: rgba(0, 0, 0, 0.2);
	/* Slight overlay backdrop if needed, or remove */
	padding: 0px 0px;
	border-radius: 12px;
	backdrop-filter: blur(2px);
	width: 100%;
	/* For full width centering if needed */
	max-width: 460px;
}

.timer-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.timer-number {
	font-family: 'Open Sans', sans-serif;
	/* Or font from image */
	font-size: 4rem;
	/* Big numbers */
	font-weight: 300;
	color: #ffffff;
	line-height: 1;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.timer-label {
	font-size: 1rem;
	color: #ffffff;
	text-transform: uppercase;
	margin-top: 5px;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	letter-spacing: 1px;
}

.timer-colon {
	font-size: 3.5rem;
	color: #ffffff;
	font-weight: 700;
	line-height: 1;
	margin-top: -5px;
	/* Visual adjustment */
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 800px) {
	.preorder-countdown-overlay {
		padding: 4px;
		gap: 3px;
		max-width: 195px;
		bottom: 10px;
	}

	.timer-number {
		font-size: 1.5rem;
	}

	.timer-colon {
		font-size: 1.2rem;
		margin-top: 0;
	}

	.timer-label {
		font-size: 0.45rem;
	}
}

/* Banner Text Overlay */
.preorder-banner-text-overlay {
	position: absolute;
	top: 15%;
	left: 50%;
	transform: translateX(-50%);
	text-align: left;
	z-index: 10;
	width: 90%;
}

.preorder-banner-text-overlay h2 {
	font-size: 3rem;
	font-weight: 700;
	color: #ffffff;
	text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
	margin: 0;
	padding: 15px 20px;
	text-align: left;
	border-radius: 10px;
	line-height: 1.2;
}

@media (max-width: 768px) {
	.preorder-banner-text-overlay h2 {
		font-size: 1.8rem;
		padding: 10px 15px;
	}
}

/* COMPACT FORM CONTAINER */
.preorder-container form {
	background: #fff;
	padding: 30px 20px;
	border-radius: 8px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
	/* Soft shadow */
	margin: 0 auto;
	/* Center */
	min-width: 320px;
	max-width: 800px;
	/* Constrained Width */
}

.preorder-container legend {
	border: none;
	font-size: 1.4rem;
	font-weight: 600;
	color: #444;
	margin-bottom: 25px;
	text-align: center;
}

/* Material Design Input Groups */
.preorder-container .material-group {
	position: relative;
	margin-bottom: 30px;
}

.preorder-container .material-group input.form-control,
.preorder-container .material-group textarea.form-control {
	background: none;
	background-color: transparent;
	color: #333;
	font-size: 18px;
	padding: 10px 10px 10px 5px;
	display: block;
	width: 100%;
	border: none;
	border-radius: 0;
	border-bottom: 1px solid #c2c2c2;
	box-shadow: none;
	height: auto;
}

.preorder-container .material-group input.form-control:focus,
.preorder-container .material-group textarea.form-control:focus {
	outline: none;
	box-shadow: none;
}

/* Label Styling */
.preorder-container .material-group label {
	color: #717171;
	font-size: 18px;
	font-weight: normal;
	position: absolute;
	pointer-events: none;
	left: 5px;
	top: 10px;
	transition: 0.2s ease all;
}

/* Active State: Focus or Has Value (handled via placeholder hack) */
.preorder-container .material-group input.form-control:focus~label,
.preorder-container .material-group input.form-control:not(:placeholder-shown)~label,
.preorder-container .material-group textarea.form-control:focus~label,
.preorder-container .material-group textarea.form-control:not(:placeholder-shown)~label {
	top: -20px;
	font-size: 12px;
	color: #717171;
	font-weight: 600;
}

/* Animations: Bottom Bar */
.preorder-container .material-group .bar {
	position: relative;
	display: block;
	width: 100%;
}

.preorder-container .material-group .bar:before,
.preorder-container .material-group .bar:after {
	content: '';
	height: 2px;
	width: 0;
	bottom: 1px;
	position: absolute;
	background: #ec2929;
	transition: 0.2s ease all;
}

.preorder-container .material-group .bar:before {
	left: 50%;
}

.preorder-container .material-group .bar:after {
	right: 50%;
}

/* Active Bar */
.preorder-container .material-group input.form-control:focus~.bar:before,
.preorder-container .material-group input.form-control:focus~.bar:after,
.preorder-container .material-group textarea.form-control:focus~.bar:before,
.preorder-container .material-group textarea.form-control:focus~.bar:after {
	width: 50%;
}

/* Textarea specific */
.preorder-container .material-group textarea.form-control {
	resize: none;
	min-height: 40px;
	overflow: hidden;
}

/* Client Type Buttons - Compact */
.preorder-container .client-type-group {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 40px;
}

.preorder-container .btn-radio {
	flex: 1;
	font-size: 0.9rem;
	padding: 10px 5px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	/* More square google style */
	cursor: pointer;
	transition: all 0.2s;
	color: #000000;
	text-align: center;
	margin: 0;
	position: relative;
	overflow: hidden;
}

/* HIDDEN RADIO INPUT: Use appearance none and zero size to ensure it's invisible but functional */
.preorder-container .btn-radio input[type='radio'] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	visibility: hidden;
	appearance: none;
	-webkit-appearance: none;
}

.preorder-container .btn-radio.active {
	background: #ec2929;
	color: #fff;
	border-color: #ec2929;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Checkbox Alignment */
.preorder-container .checkbox-line,
.preorder-container .checkbox-line span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	cursor: pointer;
	font-weight: normal;
	text-align: left;
	line-height: normal;
	white-space: normal;
	font-size: 18px;
	color: #717171;
}

.preorder-container .checkbox-line input[type="checkbox"] {
	margin: 0;
	width: 20px;
	height: 20px;
	min-width: 20px;
	/* Prevent shrinking */
	flex-shrink: 0;
	accent-color: #ec2929;
	cursor: pointer;
	position: static;
	/* Reset positioning if manipulated elsewhere */
}

/* Submit Button */
.preorder-container #button-preorder {
	background: #ec2929;
	color: #fff;
	border: none;
	padding: 12px 50px;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 4px;
	/* Slightly rounded */
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	width: 100%;
}

.preorder-container #button-preorder:hover {
	background: #d32020;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Validation Errors */
/* SALE Sticker Style */
.preorder-container .text-sale {
	display: inline-block;
	background-color: #ec2929;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 4px;
	transform: rotate(-5deg) translateY(-5px);
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
	margin-left: 5px;
	text-transform: uppercase;
	vertical-align: middle;
}

.preorder-container .text-error {
	color: #ec2929;
	font-size: 0.8rem;
	font-weight: 600;
}

.preorder-container .material-group.has-error input {
	border-bottom-color: #d32020;
}

.preorder-container .material-group.has-error label {
	color: #d32020;
}

/* Responsive */
@media (max-width: 480px) {
	.preorder-container form {
		padding: 20px 15px;
		box-shadow: none;
		/* Flat on mobile often looks better or simpler */
		border: 1px solid #eee;
	}
}

/* Custom Time Picker */
.preorder-container .time-picker-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	max-height: 200px;
	overflow-y: auto;
	margin-top: 5px;
}

.preorder-container .time-picker-dropdown ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.preorder-container .time-picker-dropdown li {
	padding: 10px 15px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	font-size: 18px;
	color: #333;
	transition: background 0.2s;
}

.preorder-container .time-picker-dropdown li:last-child {
	border-bottom: none;
}

.preorder-container .time-picker-dropdown li:hover {
	background: #f9f9f9;
	color: #ec2929;
}

/* Scrollbar styling for webkit */
.preorder-container .time-picker-dropdown::-webkit-scrollbar {
	width: 6px;
}

.preorder-container .time-picker-dropdown::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.preorder-container .time-picker-dropdown::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.preorder-container .time-picker-dropdown::-webkit-scrollbar-thumb:hover {
	background: #aaa;
}

.preorder-container .btn-radio {
	flex: 1;
	font-size: 0.9rem;
	padding: 10px 5px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	/* More square google style */
	cursor: pointer;
	transition: all 0.2s;
	color: #000000;
	text-align: center;
	margin: 0;
	position: relative;
	overflow: hidden;
}

/* HIDDEN RADIO INPUT: Use appearance none and zero size to ensure it's invisible but functional */
.preorder-container .btn-radio input[type='radio'] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	visibility: hidden;
	appearance: none;
	-webkit-appearance: none;
}

.preorder-container .btn-radio.active {
	background: #ec2929;
	color: #fff;
	border-color: #ec2929;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Checkbox Alignment */
.preorder-container .checkbox-line,
.preorder-container .checkbox-line span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	cursor: pointer;
	font-weight: normal;
	text-align: left;
	line-height: normal;
	white-space: normal;
	font-size: 18px;
	color: #717171;
}

.preorder-container .checkbox-line input[type="checkbox"] {
	margin: 0;
	width: 20px;
	height: 20px;
	min-width: 20px;
	/* Prevent shrinking */
	flex-shrink: 0;
	accent-color: #ec2929;
	cursor: pointer;
	position: static;
	/* Reset positioning if manipulated elsewhere */
}

/* Submit Button */
.preorder-container #button-preorder {
	background: #ec2929;
	color: #fff;
	border: none;
	padding: 12px 50px;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 4px;
	/* Slightly rounded */
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	width: 100%;
}

.preorder-container #button-preorder:hover {
	background: #d32020;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Validation Errors */
/* SALE Sticker Style */
.preorder-container .text-sale {
	display: inline-block;
	background-color: #ec2929;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 4px;
	transform: rotate(-5deg) translateY(-5px);
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
	margin-left: 5px;
	text-transform: uppercase;
	vertical-align: middle;
}

.preorder-container .text-error {
	color: #ec2929;
	font-size: 0.8rem;
	font-weight: 600;
}

.preorder-container .material-group.has-error input {
	border-bottom-color: #d32020;
}

.preorder-container .material-group.has-error label {
	color: #d32020;
}

/* Responsive */
@media (max-width: 480px) {
	.preorder-container form {
		padding: 20px 15px;
		box-shadow: none;
		/* Flat on mobile often looks better or simpler */
		border: 1px solid #eee;
	}
}

/* Custom Time Picker */
.preorder-container .time-picker-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	max-height: 200px;
	overflow-y: auto;
	margin-top: 5px;
}

.preorder-container .time-picker-dropdown ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.preorder-container .time-picker-dropdown li {
	padding: 10px 15px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	font-size: 18px;
	color: #333;
	transition: background 0.2s;
}

.preorder-container .time-picker-dropdown li:last-child {
	border-bottom: none;
}

.preorder-container .time-picker-dropdown li:hover {
	background: #f9f9f9;
	color: #ec2929;
}

/* Scrollbar styling for webkit */
.preorder-container .time-picker-dropdown::-webkit-scrollbar {
	width: 6px;
}

.preorder-container .time-picker-dropdown::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.preorder-container .time-picker-dropdown::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.preorder-container .time-picker-dropdown::-webkit-scrollbar-thumb:hover {
	background: #aaa;
}

.preorder-container .btn-radio {
	flex: 1;
	font-size: 0.9rem;
	padding: 10px 5px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	/* More square google style */
	cursor: pointer;
	transition: all 0.2s;
	color: #000000;
	text-align: center;
	margin: 0;
	position: relative;
	overflow: hidden;
}

/* HIDDEN RADIO INPUT: Use appearance none and zero size to ensure it's invisible but functional */
.preorder-container .btn-radio input[type='radio'] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	visibility: hidden;
	appearance: none;
	-webkit-appearance: none;
}

.preorder-container .btn-radio.active {
	background: #ec2929;
	color: #fff;
	border-color: #ec2929;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Checkbox Alignment */
.preorder-container .checkbox-line,
.preorder-container .checkbox-line span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	cursor: pointer;
	font-weight: normal;
	text-align: left;
	line-height: normal;
	white-space: normal;
	font-size: 18px;
	color: #717171;
}

.checkbox-line input[type="checkbox"] {
	margin: 0;
	width: 20px;
	height: 20px;
	min-width: 20px;
	/* Prevent shrinking */
	flex-shrink: 0;
	accent-color: #ec2929;
	cursor: pointer;
	position: static;
	/* Reset positioning if manipulated elsewhere */
}

/* Submit Button */
.preorder-container #button-preorder {
	background: #ec2929;
	color: #fff;
	border: none;
	padding: 12px 50px;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 4px;
	/* Slightly rounded */
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	width: 100%;
}

.preorder-container #button-preorder:hover {
	background: #d32020;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Validation Errors */
/* SALE Sticker Style */
.text-sale {
	display: inline-block;
	background-color: #ec2929;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 4px;
	transform: rotate(-5deg) translateY(-5px);
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
	margin-left: 5px;
	text-transform: uppercase;
	vertical-align: middle;
}

.text-error {
	color: #ec2929;
	font-size: 0.8rem;
	font-weight: 600;
}

.material-group.has-error input {
	border-bottom-color: #d32020;
}

.material-group.has-error label {
	color: #d32020;
}

/* Responsive */
@media (max-width: 480px) {
	#form-preorder {
		padding: 20px 15px;
		box-shadow: none;
		/* Flat on mobile often looks better or simpler */
		border: 1px solid #eee;
	}
}

/* Custom Time Picker */
.preorder-container .time-picker-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	max-height: 200px;
	overflow-y: auto;
	margin-top: 5px;
}

.preorder-container .time-picker-dropdown ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.preorder-container .time-picker-dropdown li {
	padding: 10px 15px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	font-size: 18px;
	color: #333;
	transition: background 0.2s;
}

.preorder-container .time-picker-dropdown li:last-child {
	border-bottom: none;
}

.preorder-container .time-picker-dropdown li:hover {
	background: #f9f9f9;
	color: #ec2929;
}

/* Scrollbar styling for webkit */
.preorder-container .time-picker-dropdown::-webkit-scrollbar {
	width: 6px;
}

.preorder-container .time-picker-dropdown::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.preorder-container .time-picker-dropdown::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.preorder-container .time-picker-dropdown::-webkit-scrollbar-thumb:hover {
	background: #aaa;
}

.preorder-offer-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	border-bottom: none;
	margin-bottom: 20px;
	padding: 0;
	list-style: none;
}

.preorder-offer-nav li {
	list-style: none;
	flex: 0 1 auto;
}

.preorder-tab-link {
	display: block;
	padding: 10px 20px;
	border: 2px solid #ddd;
	border-radius: 30px;
	background: #fff;
	color: #444;
	font-weight: 600;
	transition: all .3s;
	margin: 0;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.preorder-offer-nav li.preorder-tab-active .preorder-tab-link,
.preorder-offer-nav li.preorder-tab-active .preorder-tab-link:hover,
.preorder-offer-nav li.preorder-tab-active .preorder-tab-link:focus {
	background: #ec2929 !important;
	color: #fff !important;
	border-color: #ec2929 !important;
}

.preorder-tab-link:hover {
	background: #f5f5f5;
	border-color: #ec2929;
	color: #ec2929;
}

/* Tab Content Container */
.preorder-offer-tabs {
	width: 100%;
}

.preorder-offer-tab {
	display: none;
}

.preorder-offer-tab.preorder-tab-active {
	display: block;
}

/* Mobile responsive - Column layout */
@media (max-width: 800px) {
	.preorder-offer-nav {
		flex-direction: column;
		gap: 8px;
		align-items: stretch;
	}

	.preorder-offer-nav li {
		flex: 1 1 100%;
		width: 100%;
	}

	.preorder-tab-link {
		padding: 12px 16px;
		font-size: 1rem;
		white-space: normal;
		text-align: center;
		width: 100%;
	}
}
