:root {
	--mazda-blue: #0d5aa7;
	--mazda-blue-deep: #092f57;
	--mazda-blue-soft: #d9ebff;
	--mazda-red: #d72638;
	--ink: #17212b;
	--muted: #5f6b77;
	--line: rgba(9, 47, 87, 0.12);
	--surface: #ffffff;
	--surface-alt: #f4f8fc;
	--shadow: 0 20px 50px rgba(7, 27, 51, 0.12);
	--radius-lg: 24px;
	--radius-md: 16px;
	--radius-sm: 10px;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	font-family: "PT Sans", Arial, sans-serif;
	color: var(--ink);
	background:
		radial-gradient(circle at top left, rgba(13, 90, 167, 0.14), transparent 28%),
		radial-gradient(circle at top right, rgba(215, 38, 56, 0.12), transparent 22%),
		linear-gradient(180deg, #f3f8fd 0%, #eef4fa 42%, #f8fbff 100%);
}

a {
	color: var(--mazda-blue);
}

#wrap {
	margin: 0 auto -20px;
	min-height: 100%;
	text-align: center;
	width: 100%;
	padding-bottom: 40px;
}

.site-header {
	position: relative;
	overflow: hidden;
	padding: 28px 0 14px;
}

.site-header__bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(9, 47, 87, 0.96), rgba(13, 90, 167, 0.85)),
		url('../img/header.png') right center / contain no-repeat;
	opacity: 0.98;
}

.site-header__inner {
	position: relative;
	z-index: 1;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 26px;
	text-decoration: none;
	color: #fff;
	text-align: left;
	padding: 20px 0 10px;
}

.site-brand:hover,
.site-brand:focus {
	color: #fff;
	text-decoration: none;
}

#wrap .logo {
	background: url('../img/mazda_logo_512.png') no-repeat center center / contain;
	height: 124px;
	width: 156px;
	flex: 0 0 156px;
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.site-brand__eyebrow {
	display: inline-block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: rgba(255, 255, 255, 0.72);
	margin-bottom: 6px;
}

.site-brand__text h1 {
	margin: 0;
	font-family: "Oswald", Arial, sans-serif;
	font-size: 44px;
	line-height: 1.02;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.site-brand__text p {
	margin: 10px 0 0;
	max-width: 640px;
	font-size: 18px;
	color: rgba(255, 255, 255, 0.86);
}

#wrap > .container {
	margin-top: 18px;
}

.home-shell {
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 28px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.nav.nav-tabs {
	border: 0;
	padding: 18px 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(239, 246, 252, 0.95));
}

.nav.nav-tabs.nav-justified > li {
	float: none;
	display: block;
	width: auto;
}

.nav.nav-tabs > li > a {
	margin: 0;
	border: 0;
	border-radius: 999px;
	padding: 13px 22px;
	font-weight: 700;
	color: var(--muted);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: inset 0 0 0 1px rgba(9, 47, 87, 0.08);
}

ul.nav li.active a,
ul.nav li:hover a,
ul.nav li.active:hover a {
	background: linear-gradient(135deg, var(--mazda-blue), #1d76ca);
	color: #fff;
	box-shadow: 0 12px 30px rgba(13, 90, 167, 0.24);
}

.tab-content {
	padding: 24px;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
	gap: 26px;
	text-align: left;
}

.hero-card,
.feature-card,
.card_form,
.checkout-card,
.request-info,
.already-box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.hero-card {
	padding: 34px 34px 18px;
	background:
		linear-gradient(135deg, rgba(9, 47, 87, 0.98), rgba(13, 90, 167, 0.92)),
		linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
	color: #fff;
	position: relative;
	overflow: hidden;
}

.hero-card:after {
	content: "";
	position: absolute;
	right: -70px;
	bottom: -90px;
	width: 230px;
	height: 230px;
	background: radial-gradient(circle, rgba(255,255,255,0.2), rgba(255,255,255,0));
}

.hero-kicker {
	display: inline-block;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero-title {
	margin: 16px 0 14px;
	font-family: "Oswald", Arial, sans-serif;
	font-size: 44px;
	line-height: 1.05;
	text-transform: uppercase;
}

.hero-copy {
	font-size: 20px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
	max-width: 720px;
	margin-bottom: 18px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.btn-mazda,
.btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-mazda {
	background: #fff;
	color: var(--mazda-blue-deep);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.btn-ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn-mazda:hover,
.btn-ghost:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 12px;
}

.hero-stat {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	padding: 16px 18px;
}

.hero-stat strong {
	display: block;
	font-family: "Oswald", Arial, sans-serif;
	font-size: 28px;
}

.hero-stat span {
	display: block;
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
}

.hero-benefits-copy {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	max-width: 920px;
}

.hero-benefits-copy h3 {
	margin: 0 0 8px;
	font-family: "Oswald", Arial, sans-serif;
	font-size: 24px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.hero-benefits-copy p {
	margin: 0;
	font-size: 18px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
}

.feature-stack {
	display: grid;
	gap: 18px;
}

.feature-card {
	padding: 24px;
	text-align: left;
}

.feature-card h3,
.section-title,
.request-panel__title,
.request-info h4 {
	margin-top: 0;
	font-family: "Oswald", Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.feature-card h3 {
	margin-bottom: 10px;
	font-size: 28px;
}

.feature-card p,
.feature-card li,
.hero-card li,
.request-info li {
	font-size: 17px;
	line-height: 1.5;
}

.feature-list,
.request-info ul,
.already-box ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.feature-list li,
.request-info li,
.already-box li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 10px;
	text-align: left;
}

.feature-list li:before,
.request-info li:before,
.already-box li:before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--mazda-red);
	box-shadow: 0 0 0 4px rgba(215, 38, 56, 0.12);
}

.feature-card--image {
	padding-bottom: 18px;
}

.card-preview {
	display: block;
	width: 100%;
	max-width: 340px;
	margin: 0 auto 18px;
	border-radius: 18px;
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.why-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 22px;
}

.why-item {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 22px;
	text-align: left;
}

.why-item h4 {
	margin: 0 0 10px;
	font-size: 21px;
	font-weight: 700;
}

.why-item p {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.5;
}

.section-title {
	font-size: 34px;
	margin-bottom: 10px;
	text-align: left;
}

.section-copy {
	text-align: left;
	font-size: 18px;
	color: var(--muted);
	margin-bottom: 22px;
}

.request-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) 320px;
	gap: 24px;
	align-items: start;
}

.request-panel__title {
	font-size: 34px;
	margin-bottom: 8px;
}

.request-panel__lead {
	font-size: 18px;
	color: var(--muted);
	margin-bottom: 22px;
}

.request-info {
	padding: 24px;
	position: sticky;
	top: 20px;
}

.request-info h4 {
	font-size: 28px;
	margin-bottom: 14px;
}

.request-info__badge {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--mazda-blue-soft);
	color: var(--mazda-blue-deep);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-bottom: 12px;
}

.card_form {
	width: auto;
	margin: 0;
	padding: 28px;
}

#response_msg {
	margin: 0 0 22px;
}

#response_msg .alert {
	display: block;
	border: 0;
	border-radius: 14px;
	padding: 14px 16px;
	font-size: 16px;
}

.form-section-title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
	text-align: left;
}

.input-group {
	width: 100%;
	margin-bottom: 16px;
}

.field-with-icon {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.input-group-addon,
.form-control {
	border-color: rgba(9, 47, 87, 0.14);
}

.form-control {
	height: 50px;
	font-size: 16px;
	border-radius: 12px !important;
	box-shadow: none;
}

textarea.form-control {
	height: auto;
	min-height: 110px;
	padding-top: 12px;
}

.input-group .form-control + .input-group-addon,
.input-group .input-group-addon + .form-control {
	border-left: 0;
}

.input-group-addon {
	background: #f4f8fc;
	color: var(--mazda-blue);
	border-radius: 12px !important;
}

.field-with-icon .input-group-addon {
	flex: 0 0 78px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(9, 47, 87, 0.14);
	border-right: 0;
	border-radius: 12px 0 0 12px !important;
	padding: 0;
	font-size: 28px;
}

.field-with-icon .form-control {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	border-radius: 0 12px 12px 0 !important;
}

.field-with-icon .field-hint {
	flex: 0 0 100%;
}

.field-icon-text {
	display: inline-block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 40px;
	line-height: 1;
	color: var(--mazda-blue);
	transform: translateY(-1px);
}

.input-group-inline {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.field-hint {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: var(--muted);
	text-align: left;
}

.delivery-summary {
	margin: 0 0 16px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: linear-gradient(180deg, #f8fbff, #eff6fd);
	text-align: left;
}

.delivery-summary__title {
	font-size: 20px;
	font-weight: 700;
	color: var(--mazda-blue-deep);
}

.delivery-summary__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-top: 8px;
	color: var(--muted);
	font-size: 15px;
}

.choice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 8px 0 18px;
}

.choice-card {
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 18px;
	background: var(--surface-alt);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.choice-card:hover,
.choice-card.is-active {
	border-color: rgba(13, 90, 167, 0.38);
	box-shadow: 0 12px 28px rgba(13, 90, 167, 0.12);
	transform: translateY(-1px);
}

.choice-card.is-active {
	border-color: #35a853;
	background: linear-gradient(180deg, #f5fff7, #ebf9ef);
	box-shadow:
		0 14px 30px rgba(53, 168, 83, 0.16),
		inset 0 0 0 2px rgba(53, 168, 83, 0.22);
}

.choice-card.is-active .choice-card__price {
	background: #35a853;
	color: #fff;
}

.choice-card h4 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
}

.choice-card p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

.choice-card__price {
	display: inline-block;
	margin-top: 12px;
	padding: 4px 9px;
	border-radius: 999px;
	background: #fff;
	color: var(--mazda-blue-deep);
	font-weight: 700;
	font-size: 14px;
}

.address-selector {
	margin: 0 0 18px !important;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	clear: both;
}

.address-selector .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 16px;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 700;
	margin: 0 !important;
	width: 100%;
}

#checkout {
	width: 100%;
	border: 1px solid rgba(9, 47, 87, 0.12);
	min-height: 50px;
	margin: 16px 0 24px;
	border-radius: 20px;
	background: linear-gradient(180deg, #fdfefe, #f1f7fd);
	padding: 18px;
}

#checkout .prices {
	text-align: left;
}

#checkout .prices > div,
#total_checkout .total_price {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 16px;
	padding: 6px 0;
}

#total_checkout {
	text-align: right;
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid rgba(9, 47, 87, 0.08);
}

#total_checkout .total_price {
	font-size: 21px;
	font-weight: 700;
	color: var(--mazda-blue-deep);
}

.submit-row {
	text-align: left;
}

.submit-row .btn-primary {
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--mazda-red), #b81e2e);
	box-shadow: 0 16px 34px rgba(215, 38, 56, 0.22);
	font-size: 17px;
	font-weight: 700;
}

.submit-order-btn {
	position: relative;
	min-width: 210px;
	overflow: hidden;
}

.submit-order-btn__label,
.submit-order-btn__spinner {
	transition: opacity 0.2s ease;
}

.submit-order-btn__spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.36);
	border-top-color: #fff;
	opacity: 0;
	pointer-events: none;
}

.submit-order-btn.is-loading {
	box-shadow:
		0 16px 34px rgba(215, 38, 56, 0.22),
		0 0 0 2px rgba(255, 255, 255, 0.08) inset;
}

.submit-order-btn.is-loading .submit-order-btn__label {
	opacity: 0;
}

.submit-order-btn.is-loading .submit-order-btn__spinner {
	opacity: 1;
	animation: submit-spinner-rotate 0.75s linear infinite;
}

.submit-order-btn[disabled] {
	opacity: 1;
}

.submit-row .btn-primary:hover,
.submit-row .btn-primary:focus {
	background: linear-gradient(135deg, #c61f31, #9d1726);
}

@keyframes submit-spinner-rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.already-box {
	max-width: 760px;
	margin: 12px auto;
	padding: 28px;
	text-align: left;
}

.already-box h1 {
	margin-top: 0;
	font-family: "Oswald", Arial, sans-serif;
	text-transform: uppercase;
}

#footer {
	min-height: 30px;
	margin-top: 26px;
	background: transparent;
}

#footer .container {
	text-align: center;
	color: var(--muted);
	padding: 0 0 18px;
}

#footer small {
	display: inline-block;
	background: rgba(255,255,255,0.72);
	padding: 10px 14px;
	border-radius: 999px;
}

#card_list {
	width: 100% !important;
	table-layout: fixed;
	font-size: 11px;
}

table.dataTable#card_list {
	width: 100% !important;
}

#card_list th,
#card_list td {
	padding: 8px 8px !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: middle !important;
}

#card_list th {
	font-size: 11px;
}

#card_list .column-search-row th {
	background: #f5f8fc;
	padding: 8px 6px;
}

#card_list .column-search {
	min-width: 0;
	width: 100%;
	font-size: 11px;
	border-radius: 8px !important;
	height: 30px;
	padding: 4px 8px;
}

#card_list td:nth-child(4),
#card_list td:nth-child(5),
#card_list td:nth-child(6),
#card_list td:nth-child(7),
#card_list td:nth-child(8),
#card_list td:nth-child(9) {
	max-width: 0;
}

#card_list td:nth-child(10),
#card_list td:nth-child(11),
#card_list td:nth-child(12),
#card_list td:nth-child(13),
#card_list th:nth-child(10),
#card_list th:nth-child(11),
#card_list th:nth-child(12),
#card_list th:nth-child(13) {
	text-align: center;
}

#card_list td img {
	max-width: 22px;
	height: auto;
}

.table-responsive {
	overflow-x: hidden;
}

.admin-tabs {
	margin-bottom: 18px;
	border-bottom: 1px solid rgba(9, 47, 87, 0.12);
}

.admin-tabs > li > a {
	border-radius: 14px 14px 0 0;
	font-weight: 700;
	color: var(--mazda-blue-deep);
}

.admin-tabs > li.active > a,
.admin-tabs > li.active > a:hover,
.admin-tabs > li.active > a:focus {
	border: 1px solid rgba(9, 47, 87, 0.12);
	border-bottom-color: transparent;
	background: #fff;
	color: var(--mazda-blue);
}

.admin-tab-content {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(9, 47, 87, 0.1);
	border-radius: 0 18px 18px 18px;
	padding: 18px;
	box-shadow: var(--shadow);
}

.site-settings-panel {
	border-color: rgba(9, 47, 87, 0.12);
	box-shadow: none;
}

.site-settings-panel > .panel-heading {
	background: linear-gradient(135deg, var(--mazda-blue-deep), var(--mazda-blue));
	border-color: transparent;
	font-weight: 700;
}

.settings-section-head {
	margin-bottom: 12px;
}

.settings-section-title {
	display: block;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--mazda-blue-deep);
}

.settings-section-copy {
	margin-top: 4px;
	color: var(--muted);
	font-size: 14px;
}

.delivery-method-row {
	border-color: rgba(9, 47, 87, 0.12);
	box-shadow: none;
}

div.dataTables_wrapper div.dataTables_length,
div.dataTables_wrapper div.dataTables_filter {
	margin-bottom: 14px;
}

div.dataTables_wrapper div.dataTables_filter input,
div.dataTables_wrapper div.dataTables_length select {
	border-radius: 8px;
	border: 1px solid rgba(9, 47, 87, 0.14);
	padding: 6px 10px;
}

.alert {
	z-index: 1050 !important;
}

div.modal-content .container {
	width: auto !important;
}

.modal-content .panel {
	margin: 0 !important;
}

@media (max-width: 991px) {
	.site-brand {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.hero-grid,
	.request-layout,
	.why-grid {
		grid-template-columns: 1fr;
	}

	.request-info {
		position: static;
	}
}

@media (max-width: 767px) {
	.site-header {
		padding-top: 12px;
	}

	#wrap .logo {
		width: 112px;
		height: 88px;
		flex-basis: 112px;
		background-size: contain;
	}

	.site-brand__text h1,
	.hero-title,
	.request-panel__title,
	.section-title {
		font-size: 30px;
	}

	.site-brand__text p,
	.hero-copy,
	.section-copy,
	.request-panel__lead {
		font-size: 16px;
	}

	.tab-content,
	.card_form,
	.hero-card,
	.feature-card,
	.request-info,
	.why-item,
	.already-box {
		padding: 20px;
	}

	.nav.nav-tabs {
		padding: 14px 14px 0;
	}

	.input-group-inline,
	.choice-grid,
	.hero-stats {
		grid-template-columns: 1fr;
	}

	.address-selector .btn {
		width: 100%;
		margin: 0 0 10px !important;
	}

	.settings-section-head .pull-left,
	.settings-section-head .pull-right {
		float: none !important;
	}

	.settings-section-head .pull-right {
		margin-top: 12px;
	}
}
