/**
 * Warranty Claim form styles. Loaded only on page-warranty-claim.php.
 * Matches site tokens (ink #0a2540, teal #2d8c7f, gold #c9a96a) and the
 * system-ui font stack the rest of the site uses. No web fonts.
 */

.wc-form {
	--wc-ink: #0a2540;
	--wc-teal: #2d8c7f;
	--wc-line: #d9e2ec;
	--wc-line-focus: #2d8c7f;
	--wc-muted: #64748b;
	--wc-error: #c0392b;
	font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	margin-top: 6px;
}

.wc-section { margin-bottom: 26px; }
.wc-section:last-of-type { margin-bottom: 18px; }

/* Process strip (Josh's mockup, rendered in site tokens). Sits under the hero. */
.wc-process {
	background: #fff;
	border-bottom: 1px solid #d9e2ec;
	padding: 18px 20px;
}
.wc-process-inner {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wc-proc-step { display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; }
.wc-proc-num {
	width: 28px; height: 28px; flex-shrink: 0;
	border-radius: 50%;
	background: #d9e2ec; color: #0a2540;
	font-size: 12px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.wc-proc-num.is-active { background: #0a2540; color: #fff; box-shadow: 0 0 0 3px rgba(45,140,127,.35); }
.wc-proc-label { font-size: 11.5px; color: #64748b; line-height: 1.3; min-width: 0; }
.wc-proc-label strong { display: block; color: #0a2540; font-size: 12.5px; }
.wc-proc-arrow { color: #cbd5e1; font-size: 20px; flex-shrink: 0; }

@media (max-width: 720px) {
	.wc-process-inner { flex-wrap: wrap; gap: 12px 4px; }
	.wc-proc-step { flex: 1 1 45%; }
	.wc-proc-arrow { display: none; }
}

/* Inline warning (filter/warranty), amber */
.wc-warn {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: #fff8e8;
	border: 1.5px solid #e6a020;
	border-radius: 8px;
	padding: 13px 15px;
	margin-top: 14px;
}
.wc-warn-icon { flex-shrink: 0; font-size: 15px; line-height: 1.5; }
.wc-warn-text { font-size: 12.5px; color: #6b4000; line-height: 1.5; }
.wc-warn-text strong { display: block; color: #7a4f00; margin-bottom: 2px; }

.wc-section-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--wc-teal);
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--wc-line);
}

.wc-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}
.wc-row:last-child { margin-bottom: 0; }

.wc-field { display: flex; flex-direction: column; }

.wc-field label {
	font-size: 14px;
	font-weight: 600;
	color: var(--wc-ink);
	margin-bottom: 6px;
	line-height: 1.35;
}

.wc-req { color: var(--wc-error); font-weight: 700; }

.wc-hint {
	display: inline-block;
	font-weight: 400;
	font-size: 12.5px;
	color: var(--wc-muted);
}

.wc-form input[type="text"],
.wc-form input[type="email"],
.wc-form input[type="tel"],
.wc-form input[type="date"],
.wc-form select,
.wc-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	font-size: 15px;
	font-family: inherit;
	color: var(--wc-ink);
	background: #fff;
	border: 1.5px solid var(--wc-line);
	border-radius: 9px;
	transition: border-color .15s ease, box-shadow .15s ease;
	appearance: none;
	-webkit-appearance: none;
}
.wc-form select {
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22%2364748b%22%3E%3Cpath%20d%3D%22M5.5%208l4.5%204.5L14.5%208z%22%2F%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 40px;
	cursor: pointer;
}
.wc-form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.wc-form input:focus,
.wc-form select:focus,
.wc-form textarea:focus {
	outline: none;
	border-color: var(--wc-line-focus);
	box-shadow: 0 0 0 3px rgba(45, 140, 127, .15);
}

.wc-form .wc-invalid input,
.wc-form .wc-invalid select,
.wc-form .wc-invalid textarea,
.wc-form input.wc-invalid,
.wc-form select.wc-invalid,
.wc-form textarea.wc-invalid {
	border-color: var(--wc-error);
	box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}
.wc-field-error {
	color: var(--wc-error);
	font-size: 12.5px;
	margin-top: 5px;
}

/* Upload zone */
.wc-upload {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border: 2px dashed var(--wc-line);
	border-radius: 11px;
	background: #f8fafc;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.wc-upload:hover,
.wc-upload.wc-dragover {
	border-color: var(--wc-teal);
	background: #f0f7f5;
}
.wc-upload-icon { font-size: 24px; line-height: 1; }
.wc-upload-text { font-size: 13.5px; color: var(--wc-muted); line-height: 1.45; }
.wc-upload-text strong { color: var(--wc-ink); }
.wc-upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.wc-file-name {
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--wc-ink);
	display: flex;
	align-items: center;
	gap: 8px;
}
.wc-file-name button {
	border: none;
	background: none;
	color: var(--wc-error);
	font-size: 13px;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

/* Submit */
.wc-submit-area { margin-top: 6px; }
.wc-submit-btn {
	appearance: none;
	border: none;
	background: var(--wc-ink);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	padding: 15px 30px;
	border-radius: 10px;
	cursor: pointer;
	transition: background .15s ease, transform .05s ease;
	width: 100%;
}
.wc-submit-btn:hover { background: color-mix(in srgb, var(--wc-ink) 88%, var(--wc-teal)); }
.wc-submit-btn:active { transform: translateY(1px); }
.wc-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.wc-submit-note {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--wc-muted);
	text-align: center;
	line-height: 1.5;
}

/* Inline alert (server / network errors) */
.wc-alert {
	margin-top: 16px;
	padding: 13px 16px;
	border-radius: 9px;
	background: #fdecea;
	border: 1px solid #f5c6c0;
	color: var(--wc-error);
	font-size: 14px;
	line-height: 1.45;
}

/* Success panel (replaces the form) */
.wc-success {
	text-align: center;
	padding: 34px 24px;
}
.wc-success-icon {
	width: 58px;
	height: 58px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #2d8c7f;
	color: #fff;
	font-size: 30px;
	line-height: 58px;
}
.wc-success h3 { color: #0a2540; margin: 0 0 10px; font-size: 22px; }
.wc-success p { color: #475569; margin: 0 auto; max-width: 440px; line-height: 1.55; }
.wc-success a { color: #2d8c7f; }

/* Honeypot: visually and semantically hidden, still submitted */
.wc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 640px) {
	.wc-row { grid-template-columns: 1fr; gap: 16px; }
}
