:root {
	--asm-primary: #3a5cf5;
	--asm-primary-dark: #2743c7;
	--asm-primary-soft: #eef1ff;
	--asm-text: #16181d;
	--asm-text-muted: #6b7280;
	--asm-border: #e5e7eb;
	--asm-bg: #f6f7fb;
	--asm-card: #ffffff;
	--asm-success-bg: #eefaf1;
	--asm-success-text: #157a45;
	--asm-error-bg: #fdeeee;
	--asm-error-text: #c8332b;
	--asm-radius-lg: 16px;
	--asm-radius: 12px;
	--asm-radius-sm: 8px;
	--asm-shadow: 0 1px 2px rgba(16, 20, 30, 0.04), 0 8px 24px rgba(16, 20, 30, 0.06);
	--asm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
		"Malgun Gothic", Roboto, Helvetica, Arial, sans-serif;
}

.asm-form,
.asm-tracking {
	max-width: 480px;
	margin: 0 auto;
	font-family: var(--asm-font);
	font-size: 16px;
	color: var(--asm-text);
	background: var(--asm-card);
	border-radius: var(--asm-radius-lg);
	box-shadow: var(--asm-shadow);
	padding: 24px 20px;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

.asm-form *,
.asm-tracking * {
	box-sizing: border-box;
	font-family: var(--asm-font);
}

.asm-field {
	margin-bottom: 18px;
}

.asm-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: -0.01em;
	margin-bottom: 6px;
	color: var(--asm-text);
}

.asm-field input[type="text"],
.asm-field input[type="tel"],
.asm-field input[type="email"],
.asm-field input[type="date"],
.asm-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1.5px solid var(--asm-border);
	border-radius: var(--asm-radius-sm);
	font-family: var(--asm-font);
	font-size: 16px;
	color: var(--asm-text);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.asm-field input:focus,
.asm-field textarea:focus,
.asm-otp-box input:focus {
	outline: none;
	border-color: var(--asm-primary);
	box-shadow: 0 0 0 3px var(--asm-primary-soft);
}

.asm-field input[readonly] {
	background: #fafafa;
	color: var(--asm-text-muted);
}

.asm-field textarea {
	resize: vertical;
	line-height: 1.5;
}

.asm-file-input {
	display: block;
	width: 100%;
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--asm-text-muted);
}

.asm-claim {
	background: var(--asm-bg);
	padding: 14px;
	border-radius: var(--asm-radius);
}

.asm-hint {
	font-size: 13px;
	color: var(--asm-text-muted);
	line-height: 1.5;
	margin: 6px 0 0;
}

.asm-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 14px;
	background: var(--asm-primary);
	color: #fff;
	border: none;
	border-radius: var(--asm-radius-sm);
	font-family: var(--asm-font);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.asm-btn:hover {
	background: var(--asm-primary-dark);
	color: #fff;
	text-decoration: none;
}

.asm-btn:active {
	transform: scale(0.99);
}

.asm-btn:disabled {
	background: #c6cbd6;
	cursor: not-allowed;
}

.asm-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.asm-notice {
	padding: 14px 16px;
	border-radius: var(--asm-radius);
	margin-bottom: 16px;
	font-size: 14.5px;
	line-height: 1.6;
}

.asm-notice-success {
	background: var(--asm-success-bg);
	color: var(--asm-success-text);
}

.asm-notice-error {
	background: var(--asm-error-bg);
	color: var(--asm-error-text);
}

.asm-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.asm-row:last-child {
	border-bottom: none;
}

.asm-row span:first-child {
	color: var(--asm-text-muted);
	flex-shrink: 0;
}

.asm-row span:last-child {
	text-align: right;
}

.asm-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #eee;
}

.asm-badge-received { background: #e3f2fd; color: #1565c0; }
.asm-badge-picking_up { background: #fff3e0; color: #ef6c00; }
.asm-badge-checked_in { background: #e0f2f1; color: #00695c; }
.asm-badge-repairing { background: #fff8e1; color: #f9a825; }
.asm-badge-repaired { background: #e8f5e9; color: #2e7d32; }
.asm-badge-shipped { background: #ede7f6; color: #4527a0; }
.asm-badge-awaiting_payment { background: #fce4ec; color: #ad1457; }
.asm-badge-new_received { background: #e3f2fd; color: #1565c0; }
.asm-badge-customer_shipped { background: #fff3e0; color: #ef6c00; }
.asm-badge-repairing_paid { background: #fff3e0; color: #d84315; }
.asm-badge-processed { background: #e8f5e9; color: #2e7d32; }
.asm-badge-shipped_out { background: #ede7f6; color: #4527a0; }
.asm-badge-on_hold { background: #f5f5f5; color: #616161; }
.asm-badge-rejected { background: #ffebee; color: #b71c1c; }

.asm-progress {
	height: 6px;
	background: var(--asm-border);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 10px;
}

.asm-progress-bar {
	height: 100%;
	background: var(--asm-primary);
	border-radius: 999px;
	transition: width 0.25s ease;
}

.asm-step-indicator {
	text-align: center;
	font-weight: 600;
	font-size: 13px;
	color: var(--asm-text-muted);
	margin-bottom: 20px;
}

.asm-step h3 {
	margin: 0 0 18px;
	font-size: 18px;
	letter-spacing: -0.01em;
	text-align: center;
}

.asm-checkbox-line {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 500;
	font-size: 14.5px;
	line-height: 1.5;
}

.asm-checkbox-line input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: var(--asm-primary);
	flex-shrink: 0;
}

.asm-consent-box {
	max-height: 220px;
	overflow-y: auto;
	background: var(--asm-bg);
	border: 1px solid var(--asm-border);
	border-radius: var(--asm-radius);
	padding: 14px 16px;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--asm-text-muted);
	margin-bottom: 16px;
	white-space: pre-line;
}

.asm-step-nav {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.asm-step-nav .asm-btn {
	flex: 1;
}

.asm-btn-secondary {
	background: #fff;
	color: var(--asm-text);
	border: 1.5px solid var(--asm-border);
}

.asm-btn-secondary:hover {
	background: var(--asm-bg);
}

.asm-phone-row,
.asm-address-row {
	display: flex;
	gap: 8px;
}

.asm-phone-row input,
.asm-address-row input {
	flex: 1;
}

.asm-phone-row .asm-btn,
.asm-address-row .asm-btn {
	width: auto;
	white-space: nowrap;
	padding: 0 16px;
	font-size: 13.5px;
}

.asm-otp-box {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.asm-otp-box input {
	flex: 1;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1.5px solid var(--asm-border);
	border-radius: var(--asm-radius-sm);
	font-family: var(--asm-font);
	font-size: 16px;
}

.asm-otp-box .asm-btn {
	width: auto;
	white-space: nowrap;
	padding: 0 16px;
	font-size: 13.5px;
}

.asm-otp-msg {
	font-size: 13px;
	color: var(--asm-primary);
	min-height: 18px;
	margin: 8px 0 0;
}

#asm_address1 {
	margin-top: 8px;
}

#asm_address2 {
	margin-top: 8px;
}

.asm-ship-form {
	margin-top: 18px;
	padding: 18px;
	background: var(--asm-bg);
	border-radius: var(--asm-radius);
}

.asm-ship-form h4 {
	margin: 0 0 4px;
	font-size: 15.5px;
}

.asm-section-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
}

.asm-pay-link {
	display: block;
	text-decoration: none;
	margin-bottom: 10px;
	background: var(--asm-error-text);
}

.asm-pay-link:hover {
	background: #a82a23;
}

.asm-search-toggle {
	margin-bottom: 16px;
}
