/* Mobile Repair Toolkit — forms and price checker. Theme-neutral; override the variables in your theme. */
.mrt-pc, .mrt-form, .mrt-contact, .mrt-alert {
	--_accent: var(--mrt-accent, #0b6bcb);
	--_accent-ink: var(--mrt-accent-ink, #fff);
	--_ink: var(--mrt-ink, #16202c);
	--_muted: var(--mrt-muted, #5b6776);
	--_line: var(--mrt-line, #d5dce4);
	--_surface: var(--mrt-surface, #fff);
	--_soft: var(--mrt-soft, #f3f6f9);
	--_radius: var(--mrt-radius, 12px);
	color: var(--_ink);
}

.mrt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-bottom: 16px; }
.mrt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mrt-field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .mrt-grid { grid-template-columns: 1fr; } }

.mrt-field label { font-weight: 600; font-size: .95rem; }
.mrt-req { color: #c0362c; }
.mrt-field input, .mrt-field select, .mrt-field textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--_ink);
	padding: 12px 14px; border: 1px solid var(--_line); border-radius: calc(var(--_radius) - 4px);
	background: var(--_surface); transition: border-color .15s, box-shadow .15s;
}
.mrt-field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6776' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.mrt-field input:focus, .mrt-field select:focus, .mrt-field textarea:focus { outline: none; border-color: var(--_accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--_accent) 25%, transparent); }
.mrt-field select:disabled { opacity: .6; cursor: not-allowed; }
.mrt-field--error input, .mrt-field--error select, .mrt-field--error textarea { border-color: #c0362c; }
.mrt-error { color: #c0362c; font-size: .875rem; margin: 0; }
.mrt-muted { color: var(--_muted); font-size: .925rem; }
.mrt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mrt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
	padding: 13px 22px; border-radius: 999px; border: 2px solid var(--_accent, #0b6bcb);
	background: var(--_accent, #0b6bcb); color: var(--_accent-ink, #fff); cursor: pointer; transition: filter .15s, transform .15s;
}
.mrt-btn:hover { filter: brightness(1.08); color: var(--_accent-ink, #fff); }
.mrt-btn:active { transform: translateY(1px); }
.mrt-btn--ghost { background: transparent; color: var(--_accent, #0b6bcb); }
.mrt-btn--ghost:hover { color: var(--_accent, #0b6bcb); background: color-mix(in srgb, var(--_accent, #0b6bcb) 8%, transparent); }

.mrt-alert { padding: 14px 18px; border-radius: var(--_radius); margin: 0 0 18px; border: 1px solid; }
.mrt-alert--success { background: #e9f8ee; border-color: #9bd8ad; color: #0f5227; }
.mrt-alert--error { background: #fdeeee; border-color: #f0b1ad; color: #8a1d16; }
.mrt-alert--info { background: var(--_soft); border-color: var(--_line); }

/* Price checker */
.mrt-pc { background: var(--_surface); border: 1px solid var(--_line); border-radius: calc(var(--_radius) + 4px); padding: clamp(18px, 4vw, 32px); box-shadow: 0 10px 30px -18px rgba(16, 32, 48, .35); }
.mrt-pc__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
@media (max-width: 640px) { .mrt-pc__controls { grid-template-columns: 1fr; } }
.mrt-pc__result:not(:empty) { margin-top: 22px; }
.mrt-card { background: var(--_soft); border-radius: var(--_radius); padding: 22px 24px; animation: mrt-in .25s ease-out; }
.mrt-card > * { margin: 0 0 8px; }
.mrt-card__label { color: var(--_muted); font-weight: 600; }
.mrt-card__price { font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--_ink); }
.mrt-card__price--quote { font-size: 1.6rem; }
.mrt-card__meta { color: var(--_muted); }
.mrt-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mrt-pc__enquiry { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--_line); }
.mrt-pc__enquiry h3 { margin: 0 0 4px; }
@keyframes mrt-in { from { opacity: 0; transform: translateY(6px); } }

/* Contact details */
.mrt-contact { margin: 0; display: grid; gap: 4px; }
.mrt-contact dt { font-weight: 700; margin-top: 12px; }
.mrt-contact dd { margin: 0; color: var(--_muted); }
