/* MTE Multi-Step Request Form — frontend styles */
.mte-wrap { background: var(--mte-bg); padding: clamp(24px, 5vw, 64px) 16px; font-family: var(--mte-bfont); color: var(--mte-text); box-sizing: border-box; }
.mte-wrap *, .mte-wrap *::before, .mte-wrap *::after { box-sizing: border-box; }
.mte-card { max-width: var(--mte-max); margin: 0 auto; background: var(--mte-card); border: 1px solid var(--mte-border); border-radius: var(--mte-radius); padding: clamp(20px, 4vw, 32px); box-shadow: 0 8px 30px rgba(90, 70, 50, .06); }

/* Progress */
.mte-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.mte-step-label { font-size: 14px; font-weight: 700; color: var(--mte-head); white-space: nowrap; }
.mte-track { flex: 1; height: 6px; border-radius: 6px; background: var(--mte-track); overflow: hidden; }
.mte-bar { height: 100%; width: 0; border-radius: 6px; background: var(--mte-accent); transition: width .35s ease; }

/* Titles */
.mte-step-title { font-family: var(--mte-hfont); font-size: 28px; line-height: 1.2; font-weight: 600; color: var(--mte-head); margin: 28px 0 22px; padding: 0; outline: none; }
.mte-intro { margin: -14px 0 18px; font-size: 15px; line-height: 1.5; }
.mte-info { color: var(--mte-text); vertical-align: middle; }

/* Fields */
.mte-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
.mte-field { min-width: 0; }
.mte-w-full { grid-column: 1 / -1; }
.mte-field[hidden] { display: none !important; }
.mte-step[hidden], .mte-form[hidden], .mte-thanks[hidden], .mte-summary[hidden], .mte-error[hidden] { display: none !important; }

.mte-label, .mte-group legend { display: block; font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--mte-head); margin: 0 0 10px; padding: 0; }
.mte-opt { font-weight: 400; font-size: 13px; color: var(--mte-text); }
.mte-help { font-size: 14px; line-height: 1.7; margin: 6px 0 10px; color: var(--mte-text); max-width: 640px; }
.mte-label + .mte-help, .mte-group legend + .mte-help { margin-top: -4px; }

.mte-input { display: block; width: 100%; min-height: 50px; padding: 13px 16px; font: inherit; font-size: 16px; color: var(--mte-text); background: var(--mte-input); border: 1px solid var(--mte-iborder); border-radius: 12px; appearance: auto; box-shadow: none; margin: 0; }
.mte-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.mte-input:focus, .mte-file:focus-visible, .mte-choice input:focus-visible, .mte-btn:focus-visible { outline: 3px solid var(--mte-head); outline-offset: 2px; }
.mte-invalid .mte-input { border-color: var(--mte-errbd); }

/* Choices */
.mte-choices { display: grid; gap: 16px 24px; }
.mte-cols-2 { grid-template-columns: 1fr 1fr; }
.mte-choice { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 16px; line-height: 1.45; color: var(--mte-text); }
.mte-choice input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--mte-head); cursor: pointer; }
.mte-rd { gap: 22px; }
.mte-rd .mte-choice { font-weight: 700; color: var(--mte-head); align-items: center; }
.mte-consent { line-height: 1.7; }
.mte-consent a { color: var(--mte-head); }
.mte-t-consent { grid-column: 1 / -1; }

/* File drop box */
.mte-drop { border: 1px dashed #cdbfb5; border-radius: 12px; background: var(--mte-input); padding: 28px 30px; }
.mte-drop .mte-label { margin-bottom: 14px; }
.mte-file { font: inherit; font-size: 16px; color: var(--mte-text); max-width: 100%; }

/* Errors */
.mte-error { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--mte-text); }
.mte-erricon { flex: 0 0 auto; color: var(--mte-errbd); }
.mte-summary { margin: 22px 0 0; padding: 18px 24px; background: var(--mte-errbg); border: 2px solid var(--mte-errbd); border-radius: 14px; color: var(--mte-head); }
.mte-summary strong { display: block; font-size: 16px; margin-bottom: 8px; }
.mte-summary ul { list-style: none; margin: 0; padding: 0 0 0 20px; }
.mte-summary li { font-weight: 700; margin: 6px 0; font-size: 16px; }

/* Buttons */
.mte-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; }
.mte-btn { font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; border: 0; background: transparent; color: var(--mte-head); padding: 14px 20px; border-radius: 6px; line-height: 1.2; }
.mte-btn:hover { text-decoration: underline; }
.mte-primary { background: var(--mte-accent); color: var(--mte-btn); padding: 14px 28px; box-shadow: 0 6px 16px rgba(228, 139, 139, .35); transition: transform .15s ease, filter .15s ease; }
.mte-primary:hover { text-decoration: none; filter: brightness(.97); transform: translateY(-1px); }
.mte-primary[disabled] { opacity: .65; cursor: wait; transform: none; }

/* Thank you */
.mte-thanks { text-align: center; padding: clamp(28px, 6vw, 56px) 12px; outline: none; }
.mte-heart { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: var(--mte-errbg); color: var(--mte-accent); display: flex; align-items: center; justify-content: center; }
.mte-thanks-title { font-family: var(--mte-hfont); font-size: clamp(36px, 6vw, 48px); font-weight: 700; color: var(--mte-head); margin: 0 0 12px; line-height: 1.1; }
.mte-thanks-text { font-size: 16px; line-height: 1.8; margin: 0 auto; max-width: 560px; }

/* Honeypot + turnstile */
.mte-hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px; height: 1px; overflow: hidden; }
.mte-turnstile { margin-top: 24px; }

@media (max-width: 640px) {
	.mte-fields, .mte-cols-2 { grid-template-columns: 1fr; }
	.mte-w-half { grid-column: 1 / -1; }
	.mte-step-title { font-size: 24px; }
	.mte-drop { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .mte-bar, .mte-primary { transition: none; } }

/* "Other" text box */
.mte-other { margin-top: 16px; }
.mte-other[hidden] { display: none !important; }
.mte-sublabel { display: block; font-weight: 700; font-size: 15px; color: var(--mte-head); margin: 0 0 8px; }

/* Primary button: theme-proof colours + locked (faded) state until consents are ticked */
.mte-wrap .mte-btn.mte-primary { background: var(--mte-accent) !important; color: var(--mte-btn) !important; opacity: 1 !important; border: 0 !important; }
.mte-wrap .mte-btn.mte-primary.mte-locked { opacity: .5 !important; box-shadow: none; cursor: not-allowed; }
.mte-wrap .mte-btn.mte-primary[disabled] { opacity: .6 !important; cursor: wait; }
.mte-wrap .mte-btn.mte-back { background: transparent !important; color: var(--mte-head) !important; box-shadow: none; }
