/**
 * Van Hero Applications — front-end form styles.
 *
 * All rules are scoped under #vha-application-form and use !important on colour
 * declarations where needed so the form renders correctly inside Elementor
 * templates regardless of the active theme's cascade.
 */

#vha-application-form,
#vha-application-form * {
	box-sizing: border-box;
}

#vha-application-form {
	--vha-navy: #002496;
	--vha-navy-deep: #001A6B;
	--vha-yellow: #FFD41C;
	--vha-yellow-hover: #F2C20A;
	--vha-field: #F2F5FA;
	--vha-border: #D5DAE2;
	--vha-text: #030541;
	--vha-muted: #717B9D;

	font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: var(--vha-text) !important;
	line-height: 1.5;
	max-width: 100%;
}

.vha-wrap {
	max-width: 480px;
	margin: 0 auto;
	width: 100%;
}

/* ---------------------------------------------------------------------------
 * Card + header band.
 * ------------------------------------------------------------------------ */
#vha-application-form .vha-card {
	background: #ffffff !important;
	border: 1px solid var(--vha-border) !important;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(0, 36, 150, 0.10);
	overflow: hidden;
}

#vha-application-form .vha-step {
	width: 100%;
}

#vha-application-form .vha-head {
	background: linear-gradient(135deg, #002496 0%, #001A6B 100%) !important;
	color: #ffffff !important;
	padding: 22px 24px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

#vha-application-form .vha-head__title {
	margin: 0 !important;
	font-size: 20px;
	font-weight: 800;
	color: #ffffff !important;
	line-height: 1.2;
}

#vha-application-form .vha-head__sub {
	margin: 6px 0 0 !important;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82) !important;
}

#vha-application-form .vha-pill {
	flex: 0 0 auto;
	background: rgba(255, 212, 28, 0.18) !important;
	color: var(--vha-yellow) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 6px 12px;
	border-radius: 999px;
	white-space: nowrap;
}

#vha-application-form .vha-body {
	padding: 24px;
}

/* ---------------------------------------------------------------------------
 * Fields.
 * ------------------------------------------------------------------------ */
#vha-application-form .vha-field {
	margin-bottom: 18px;
}

#vha-application-form .vha-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--vha-text) !important;
	margin-bottom: 7px;
}

#vha-application-form .vha-req {
	color: #d33 !important;
	font-weight: 700;
}

#vha-application-form .vha-req--conditional {
	color: var(--vha-muted) !important;
}

#vha-application-form .vha-opt {
	color: var(--vha-muted) !important;
	font-weight: 500;
	font-size: 12px;
}

#vha-application-form .vha-input,
#vha-application-form select.vha-input {
	width: 100%;
	height: 44px;
	background: var(--vha-field) !important;
	border: 1px solid var(--vha-border) !important;
	border-radius: 10px;
	padding: 0 14px;
	font-size: 15px;
	color: var(--vha-text) !important;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

#vha-application-form .vha-input::placeholder {
	color: var(--vha-muted) !important;
	opacity: 1;
}

#vha-application-form .vha-input:focus {
	outline: none;
	background: #ffffff !important;
	border-color: var(--vha-navy) !important;
	box-shadow: 0 0 0 3px rgba(0, 36, 150, 0.15) !important;
}

#vha-application-form .vha-uppercase {
	text-transform: uppercase;
}

#vha-application-form .vha-err {
	display: none;
	margin-top: 6px;
	font-size: 12px;
	color: #d33 !important;
}

#vha-application-form .vha-field.has-error .vha-input {
	border-color: #d33 !important;
	background: #fff6f6 !important;
}

#vha-application-form .vha-field.has-error .vha-err {
	display: block;
}

/* ---------------------------------------------------------------------------
 * Role cards.
 * ------------------------------------------------------------------------ */
#vha-application-form .vha-role-group {
	display: grid;
	gap: 10px;
}

#vha-application-form .vha-radio-card {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--vha-border) !important;
	background: var(--vha-field) !important;
	border-radius: 12px;
	padding: 12px 14px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#vha-application-form .vha-radio-card input {
	accent-color: #002496;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

#vha-application-form .vha-radio-card__body {
	display: flex;
	flex-direction: column;
}

#vha-application-form .vha-radio-card__body strong {
	color: var(--vha-text) !important;
	font-size: 14px;
	font-weight: 700;
}

#vha-application-form .vha-radio-card__body small {
	color: var(--vha-muted) !important;
	font-size: 12px;
}

#vha-application-form .vha-radio-card:has(input:checked) {
	border-color: var(--vha-navy) !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(0, 36, 150, 0.12) !important;
}

/* ---------------------------------------------------------------------------
 * Yes/No + choice pills.
 * ------------------------------------------------------------------------ */
#vha-application-form .vha-radio-group--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#vha-application-form .vha-radio-pill {
	position: relative;
	cursor: pointer;
}

#vha-application-form .vha-radio-pill input {
	position: absolute;
	opacity: 0;
	inset: 0;
	cursor: pointer;
}

#vha-application-form .vha-radio-pill span {
	display: inline-block;
	padding: 9px 18px;
	border: 1px solid var(--vha-border) !important;
	background: var(--vha-field) !important;
	color: var(--vha-text) !important;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.15s ease;
}

#vha-application-form .vha-radio-pill input:checked + span {
	background: var(--vha-navy) !important;
	border-color: var(--vha-navy) !important;
	color: #ffffff !important;
}

#vha-application-form .vha-radio-pill input:focus-visible + span {
	box-shadow: 0 0 0 3px rgba(0, 36, 150, 0.15) !important;
}

/* ---------------------------------------------------------------------------
 * File inputs.
 * ------------------------------------------------------------------------ */
#vha-application-form .vha-file {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--vha-field) !important;
	border: 1px dashed var(--vha-border) !important;
	border-radius: 10px;
	padding: 8px 10px;
	cursor: pointer;
}

#vha-application-form .vha-file input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

#vha-application-form .vha-file__btn {
	flex: 0 0 auto;
	background: var(--vha-navy) !important;
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 8px;
}

#vha-application-form .vha-file__name {
	font-size: 13px;
	color: var(--vha-muted) !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#vha-application-form .vha-file-field.has-file .vha-file__name {
	color: var(--vha-text) !important;
	font-weight: 600;
}

#vha-application-form .vha-file-field.has-file .vha-file {
	border-style: solid !important;
	border-color: var(--vha-navy) !important;
}

/* ---------------------------------------------------------------------------
 * Consent checkboxes.
 * ------------------------------------------------------------------------ */
#vha-application-form .vha-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	color: var(--vha-text) !important;
	margin: 4px 0 4px;
	cursor: pointer;
}

#vha-application-form .vha-check input {
	margin-top: 2px;
	width: 18px;
	height: 18px;
	accent-color: #002496;
	flex: 0 0 auto;
}

/* ---------------------------------------------------------------------------
 * Buttons.
 * ------------------------------------------------------------------------ */
#vha-application-form .vha-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	height: 48px;
	padding: 0 22px;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
	font-family: inherit;
}

#vha-application-form .vha-btn--primary {
	background: var(--vha-yellow) !important;
	color: var(--vha-navy) !important;
	width: 100%;
}

#vha-application-form .vha-btn--primary:hover {
	background: var(--vha-yellow-hover) !important;
}

#vha-application-form .vha-btn--ghost {
	background: transparent !important;
	color: var(--vha-navy) !important;
	border: 1px solid var(--vha-border) !important;
}

#vha-application-form .vha-btn--ghost:hover {
	background: var(--vha-field) !important;
}

#vha-application-form .vha-btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

#vha-application-form .vha-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

#vha-application-form .vha-actions .vha-btn--ghost {
	width: auto;
	flex: 0 0 auto;
	min-width: 96px;
}

#vha-application-form .vha-actions .vha-btn--primary {
	flex: 1 1 auto;
}

/* ---------------------------------------------------------------------------
 * Honeypot — visually removed but present for bots.
 * ------------------------------------------------------------------------ */
#vha-application-form .vha-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * Modal.
 * ------------------------------------------------------------------------ */
#vha-application-form .vha-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

#vha-application-form .vha-modal[data-open="true"] {
	display: flex;
}

#vha-application-form .vha-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 36, 150, 0.6) !important;
	backdrop-filter: blur(2px);
}

#vha-application-form .vha-modal__dialog {
	position: relative;
	z-index: 1;
	background: #ffffff !important;
	border-radius: 14px;
	width: 100%;
	max-width: 480px;
	max-height: 92vh;
	overflow-y: auto;
	box-shadow: 0 30px 60px rgba(0, 26, 107, 0.35);
	-webkit-overflow-scrolling: touch;
}

#vha-application-form .vha-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.85) !important;
	color: var(--vha-muted) !important;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
}

#vha-application-form .vha-modal__close:hover {
	background: #e7ebf3 !important;
	color: var(--vha-text) !important;
}

/* Inside the modal the header band already sits at the top; keep the close
   button legible over the navy band. */
#vha-application-form .vha-modal__dialog .vha-head {
	padding-right: 56px;
}

/* ---------------------------------------------------------------------------
 * Confirm summary.
 * ------------------------------------------------------------------------ */
#vha-application-form .vha-summary {
	background: var(--vha-field) !important;
	border: 1px solid var(--vha-border) !important;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 18px;
}

#vha-application-form .vha-summary__group + .vha-summary__group {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--vha-border) !important;
}

#vha-application-form .vha-summary__heading {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--vha-muted) !important;
	margin: 0 0 8px;
}

#vha-application-form .vha-summary__item {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	padding: 3px 0;
}

#vha-application-form .vha-summary__k {
	color: var(--vha-muted) !important;
	flex: 0 0 auto;
}

#vha-application-form .vha-summary__v {
	color: var(--vha-text) !important;
	font-weight: 600;
	text-align: right;
	word-break: break-word;
}

#vha-application-form .vha-form-error {
	background: #fff1f1 !important;
	border: 1px solid #f3c6c6 !important;
	color: #a1201f !important;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	margin: 4px 0 16px;
}

/* ---------------------------------------------------------------------------
 * Success.
 * ------------------------------------------------------------------------ */
#vha-application-form .vha-success {
	padding: 40px 28px;
	text-align: center;
}

#vha-application-form .vha-success__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #e6f7ec !important;
	color: #1a8f4c !important;
	font-size: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#vha-application-form .vha-success__title {
	margin: 0 0 8px !important;
	font-size: 22px;
	font-weight: 800;
	color: var(--vha-text) !important;
}

#vha-application-form .vha-success__text {
	color: var(--vha-muted) !important;
	font-size: 14px;
	margin: 0 0 14px !important;
}

#vha-application-form .vha-success__number {
	display: inline-block;
	background: var(--vha-navy) !important;
	color: var(--vha-yellow) !important;
	font-weight: 800;
	letter-spacing: 0.04em;
	font-size: 18px;
	padding: 10px 22px;
	border-radius: 999px;
	margin: 0 !important;
}

/* ---------------------------------------------------------------------------
 * Spinner.
 * ------------------------------------------------------------------------ */
#vha-application-form .vha-btn.is-loading {
	position: relative;
	color: transparent !important;
}

#vha-application-form .vha-btn.is-loading::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(0, 36, 150, 0.35);
	border-top-color: var(--vha-navy);
	border-radius: 50%;
	animation: vha-spin 0.7s linear infinite;
}

@keyframes vha-spin {
	to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------------
 * Small screens.
 * ------------------------------------------------------------------------ */
@media (max-width: 520px) {
	#vha-application-form .vha-head { padding: 18px 18px; }
	#vha-application-form .vha-body { padding: 18px; }
	#vha-application-form .vha-head__title { font-size: 18px; }
	#vha-application-form .vha-actions { flex-direction: column-reverse; }
	#vha-application-form .vha-actions .vha-btn--ghost { width: 100%; }
}
