:root {
	color-scheme: light;
	font-family: "Noto Sans Thai", system-ui, sans-serif;
	color: #253238;
	background: #eef4f7;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-width: 320px;
	background: linear-gradient(180deg, #e9f5ff 0%, #f6f9fb 38%, #eef4f7 100%);
}

.page-shell {
	width: min(100%, 720px);
	margin: 0 auto;
	padding: 12px 10px 32px;
}

.card {
	overflow: hidden;
	border: 1px solid #d7e5ec;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(30, 74, 102, 0.1);
}

.brand-header {
	padding: 18px 16px 16px;
	text-align: center;
	background: linear-gradient(135deg, #edf8ff, #fff);
	border-bottom: 1px solid #e0edf2;
}

.brand-logo {
	width: min(100%, 90px);
	height: auto;
}

.eyebrow {
	margin: 8px 0 4px;
	color: #0068b4;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	margin-bottom: 8px;
	color: #153e5c;
	font-size: clamp(1.45rem, 5vw, 2rem);
}

.intro {
	margin-bottom: 0;
	color: #5d747f;
	font-size: 0.95rem;
	line-height: 1.65;
}

form,
.success-panel {
	padding: 18px 16px;
}

.field,
.field-grid {
	margin-bottom: 17px;
}

.field-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 17px;
}

.field-grid .field {
	margin-bottom: 0;
}

label {
	display: block;
	margin-bottom: 7px;
	color: #334e5b;
	font-size: 0.92rem;
	font-weight: 700;
}

label span[aria-hidden="true"] {
	color: #d64545;
}

.optional {
	color: #79909a;
	font-size: 0.82rem;
	font-weight: 500;
}

input {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #bfd0d7;
	border-radius: 10px;
	background: #fff;
	color: #253238;
	font: inherit;
}

input:focus {
	border-color: #1475ba;
	outline: 3px solid rgba(20, 117, 186, 0.15);
}

.money-input {
	display: flex;
	align-items: center;
	gap: 8px;
}

.money-input span {
	color: #5c737d;
	font-size: 0.9rem;
}

.website-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 4px 0 18px;
	color: #47606b;
	font-size: 0.88rem;
	font-weight: 500;
	line-height: 1.6;
}

.consent input {
	width: 19px;
	min-height: 19px;
	margin-top: 2px;
	flex: 0 0 auto;
	accent-color: #086bb0;
}

.form-error {
	margin-bottom: 14px;
	padding: 11px 13px;
	border-radius: 9px;
	background: #fff0f0;
	color: #a52222;
	font-size: 0.9rem;
	line-height: 1.55;
}

.primary-button {
	width: 100%;
	min-height: 50px;
	border: 0;
	border-radius: 12px;
	background: #086bb0;
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.primary-button:hover {
	background: #055b98;
}

.primary-button:disabled {
	cursor: wait;
	opacity: 0.7;
}

.success-panel {
	text-align: center;
}

.success-icon {
	display: grid;
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	place-items: center;
	border-radius: 50%;
	background: #e0f7ea;
	color: #128144;
	font-size: 2rem;
	font-weight: 900;
}

.success-panel h2 {
	margin-bottom: 5px;
	color: #12633c;
}

.registration-code {
	display: block;
	margin: 14px 0;
	color: #0a609c;
	font-size: 1.35rem;
	letter-spacing: 0.04em;
}

.duplicate-note {
	padding: 9px;
	border-radius: 8px;
	background: #fff8df;
	color: #806414;
	font-size: 0.86rem;
}

.receipt {
	margin: 20px 0;
	padding: 8px 14px;
	border: 1px solid #e1eaee;
	border-radius: 12px;
	text-align: left;
}

.receipt div {
	display: grid;
	grid-template-columns: minmax(125px, 0.9fr) 1.1fr;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid #e8eff2;
}

.receipt div:last-child {
	border-bottom: 0;
}

.receipt dt {
	color: #6a8089;
	font-size: 0.83rem;
}

.receipt dd {
	margin: 0;
	color: #314850;
	font-size: 0.88rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.warranty {
	padding: 15px;
	border-radius: 12px;
	background: #f4f8fa;
	text-align: left;
}

.warranty h3 {
	margin-bottom: 10px;
	color: #234e64;
	font-size: 1rem;
}

.warranty pre {
	margin: 0;
	white-space: pre-wrap;
	color: #536b75;
	font: inherit;
	font-size: 0.82rem;
	line-height: 1.65;
}

@media (min-width: 560px) {
	.page-shell {
		padding: 34px 18px 54px;
	}

	.brand-header {
		padding: 24px 22px 20px;
	}

	form,
	.success-panel {
		padding: 28px;
	}

	.field-grid {
		grid-template-columns: 1fr 1fr;
	}
}
