/* ═══════════════════════════════════════════════════════════════════
   GET-A-FREE-CONSULTATION POPUP
   Site-wide modal triggered by any [data-consult-trigger] button.
   Loaded globally (see functions.php).
   ═══════════════════════════════════════════════════════════════════ */

.consult-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}
.consult-modal.is-open { display: block; }

.consult-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 21, 89, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	animation: consult-fade .2s ease-out;
}

.consult-dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 0;
	width: min(560px, calc(100% - 40px));
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 40px 40px 36px;
	box-shadow: 0 24px 60px rgba(12, 21, 89, 0.25);
	animation: consult-pop .25s cubic-bezier(.2,.9,.3,1.2);
}

.consult-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--body, #4A5275);
	transition: background .15s ease, color .15s ease;
	padding: 0;
}
.consult-close:hover,
.consult-close:focus {
	background: var(--soft, #F4F6FB);
	color: var(--primary, #0C1559);
	outline: none;
}

.consult-eyebrow {
	font-size: 13px;
	font-weight: 700;
	color: var(--secondary, #06D6A0);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.consult-title {
	font-size: 26px;
	font-weight: 700;
	color: var(--primary, #0C1559);
	margin: 0 0 10px;
	line-height: 1.2;
}
.consult-lead {
	font-size: 14px;
	color: var(--body, #4A5275);
	margin: 0 0 24px;
	line-height: 1.55;
}

.consult-form {
	display: grid;
	gap: 14px;
}
.consult-field {
	display: grid;
	gap: 6px;
}
.consult-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--primary, #0C1559);
}
.consult-field .req { color: var(--secondary, #06D6A0); margin-left: 2px; }
.consult-field input,
.consult-field textarea,
.consult-field select {
	font: inherit;
	font-size: 14px;
	color: var(--primary, #0C1559);
	background: #fff;
	border: 1px solid var(--line, #E3E6F1);
	border-radius: 0;
	padding: 11px 14px;
	width: 100%;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.consult-field textarea {
	resize: vertical;
	min-height: 96px;
	max-height: 240px;
	line-height: 1.5;
}
.consult-field select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230C1559' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}
.consult-field select:invalid { color: var(--muted, #7A819B); }
.consult-field select option { color: var(--primary, #0C1559); }
.consult-field input:focus,
.consult-field textarea:focus,
.consult-field select:focus {
	outline: none;
	border-color: var(--secondary, #06D6A0);
	box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.15);
}
.consult-field input:invalid:not(:placeholder-shown),
.consult-field textarea:invalid:not(:placeholder-shown) {
	border-color: #E07A7A;
}

.consult-submit {
	margin-top: 6px;
	justify-self: start;
	font-size: 14px;
	padding: 12px 22px;
	cursor: pointer;
	border-radius: 0;
}

.consult-thanks {
	text-align: center;
	padding: 14px 0 6px;
}
.consult-thanks-icon {
	width: 56px;
	height: 56px;
	border-radius: 0;
	background: rgba(6, 214, 160, 0.14);
	color: var(--secondary, #06D6A0);
	margin: 0 auto 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.consult-thanks h4 {
	font-size: 22px;
	font-weight: 700;
	color: var(--primary, #0C1559);
	margin: 0 0 10px;
}
.consult-thanks p {
	font-size: 14px;
	color: var(--body, #4A5275);
	margin: 0;
	line-height: 1.55;
}

@keyframes consult-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes consult-pop {
	from { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
	to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

body.consult-locked {
	overflow: hidden;
}

@media (max-width: 600px) {
	.consult-dialog { padding: 32px 24px 28px; }
	.consult-title { font-size: 22px; }
}

/* ── Career application popup — CV / résumé upload field ──
   Reuses the consult modal shell; only the file control needs custom styling
   because native file inputs can't be themed consistently across browsers. */
.apply-file {
	position: relative;
}
.apply-file-control {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px dashed var(--line, #E3E6F1);
	background: var(--soft, #F4F6FB);
	padding: 14px 16px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.apply-file-control:hover,
.apply-file:focus-within .apply-file-control {
	border-color: var(--secondary, #06D6A0);
	background: rgba(6, 214, 160, 0.06);
}
.apply-file-control svg {
	flex: 0 0 auto;
	color: var(--secondary, #06D6A0);
}
.apply-file-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.apply-file-cta {
	font-size: 14px;
	font-weight: 600;
	color: var(--primary, #0C1559);
}
.apply-file-hint {
	font-size: 12px;
	color: var(--muted, #7A819B);
}
/* Visually-hidden native input — still focusable/clickable via the label. */
.apply-file input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.apply-file-name {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--secondary-ink, #04B98A);
	word-break: break-all;
}
.consult-field.has-error .apply-file-control {
	border-color: #e02424 !important;
	background: rgba(224, 36, 36, 0.04);
}

/* Per-field validation messages (matches the contact form). */
.consult-field-error {
	display: block;
	margin-top: 6px;
	color: #e02424;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 500;
}
.consult-field.has-error input,
.consult-field.has-error select,
.consult-field.has-error textarea {
	border-color: #e02424 !important;
	box-shadow: 0 0 0 1px rgba(224, 36, 36, 0.25);
}
