/* =========================================================================
   Enterprise CORE Contact widget
   Namespaced under .ec-contact to avoid collisions with global-inputs.css.
   ========================================================================= */

.ec-contact {
	padding: 0;
	display: grid;
	gap: 72px;
	align-items: flex-start;
	background: #fff;
	box-sizing: border-box;
}
.ec-contact--two-col { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.ec-contact--one-col { grid-template-columns: minmax(0, 1fr); }
.ec-contact *, .ec-contact *::before, .ec-contact *::after { box-sizing: border-box; }

@media (max-width: 1100px) {
	.ec-contact--two-col { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Form shell ---------- */
.ec-contact__shell {
	background: #fff;
	padding: 40px 0;
	position: relative;
}
@media (max-width: 820px) {
	.ec-contact__shell { padding: 28px 0; }
}

.ec-contact__title {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	color: #001D25;
	margin: 0 0 6px;
}
.ec-contact__sub {
	font-size: 14px;
	color: #4B4C4D;
	margin: 0 0 28px;
	max-width: 52ch;
	line-height: 1.55;
}

.ec-contact__req {
	color: #F41C1C;
	font-weight: 400;
	font-size: 13px;
	margin-left: 6px;
}

/* ---------- Form primitives ---------- */
.ec-contact__form { margin: 0; }
.ec-contact__field { margin-bottom: 18px; }
.ec-contact__field--consent { margin-bottom: 0; }
.ec-contact__lbl {
	display: block;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #21282D;
	margin-bottom: 8px;
	line-height: 1.3;
}
.ec-contact__hint {
	font-size: 12px;
	color: #4B4C4D;
	margin-top: -4px;
	margin-bottom: 8px;
	line-height: 1.4;
}
.ec-contact__err {
	display: none;
	font-size: 13px;
	color: #F41C1C;
	margin-top: 6px;
}
.ec-contact__err--consent { margin-left: 34px; }
.ec-contact__field.ec-contact__field--error .ec-contact__err { display: block; }
.ec-contact__field.ec-contact__field--error .ec-contact__input,
.ec-contact__field.ec-contact__field--error .ec-contact__textarea,
.ec-contact__field.ec-contact__field--error .ec-contact__ts-control {
	border-color: #F41C1C;
}

/* Override global input[type=text] (64px, !important width) with specificity */
.ec-contact .ec-contact__input,
.ec-contact .ec-contact__textarea {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 15px;
	width: 100% !important;
	box-sizing: border-box;
	padding: 14px;
	border: 2px solid #000;
	border-radius: 0;
	color: #21282D;
	background: #fff;
	line-height: 1.3;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s, box-shadow .15s;
	margin: 0;
}
.ec-contact .ec-contact__input { height: 52px; }
.ec-contact .ec-contact__textarea {
	min-height: 120px;
	resize: vertical;
	line-height: 1.55;
	height: auto;
}
.ec-contact__input::placeholder,
.ec-contact__textarea::placeholder { color: #707070; }

.ec-contact__input:focus,
.ec-contact__textarea:focus,
.ec-contact__ts-control.is-open,
.ec-contact__ts-control:focus-within {
	outline: none;
	border-color: #026982;
	box-shadow: 0 0 0 3px rgba(2, 105, 130, .18);
}

.ec-contact__grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
@media (max-width: 620px) {
	.ec-contact__grid-2 { grid-template-columns: 1fr; }
}

/* ---------- TomSelect-like chip multi-select ---------- */
.ec-contact__ts-wrap { position: relative; }
.ec-contact__ts-control {
	min-height: 52px;
	padding: 8px;
	background: #fff;
	border: 2px solid #000;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	cursor: text;
	transition: border-color .15s, box-shadow .15s;
}
.ec-contact__ts-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: #5CFF96;
	color: #000;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}
.ec-contact__ts-chip-x {
	cursor: pointer;
	font-weight: 700;
	line-height: 1;
	padding: 2px;
	color: #000;
}
.ec-contact__ts-chip-x:hover { color: #F41C1C; }

.ec-contact .ec-contact__ts-control input {
	border: none;
	outline: none;
	flex: 1;
	min-width: 160px;
	height: 34px;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 15px;
	background: transparent;
	padding: 0;
	box-shadow: none;
	width: auto !important;
	color: #21282D;
}

.ec-contact__ts-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 2px solid #000;
	border-top: none;
	z-index: 5;
	max-height: 240px;
	overflow-y: auto;
}
.ec-contact__ts-dropdown.is-open { display: block; }
.ec-contact__ts-option {
	padding: 12px 14px;
	cursor: pointer;
	font-size: 15px;
	border-bottom: 1px solid #E6EAE9;
	transition: background .1s;
}
.ec-contact__ts-option:last-child { border-bottom: none; }
.ec-contact__ts-option:hover,
.ec-contact__ts-option.is-active { background: #F6F8F8; }
.ec-contact__ts-option.is-selected { color: #707070; pointer-events: none; }
.ec-contact__ts-option.is-selected::after {
	content: "\2713";
	float: right;
	color: #026982;
}

/* ---------- Checkbox (privacy consent) ---------- */
.ec-contact__check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
	position: relative;
}
.ec-contact__check input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.ec-contact__check-box {
	width: 22px;
	height: 22px;
	border: 2px solid #000;
	background: #fff;
	flex-shrink: 0;
	margin-top: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
.ec-contact__check-box svg {
	width: 15px;
	height: 15px;
	display: none;
}
.ec-contact__check input:checked ~ .ec-contact__check-box { background: #5CFF96; }
.ec-contact__check input:checked ~ .ec-contact__check-box svg { display: block; }
.ec-contact__check-txt {
	flex: 1;
	min-width: 0;
	color: #21282D;
}
.ec-contact__check-txt a { color: #066EB9; }

/* ---------- Submit row ---------- */
.ec-contact__submit-row {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 2px solid #E6EAE9;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.ec-contact__submit {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	padding: 18px 26px;
	border: 2px solid #000;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	line-height: 1;
	transition: background .15s, color .15s, border-color .15s;
	background: #5CFF96;
	color: #000;
	border-radius: 0;
}
.ec-contact__submit::after {
	content: "\2192";
	font-weight: 400;
	letter-spacing: 0;
}
.ec-contact__submit:hover:not(:disabled) {
	background: #001D25;
	color: #fff;
	border-color: #001D25;
}
.ec-contact__submit:disabled {
	background: #E6EAE9;
	color: #707070;
	border-color: #A5A5A5;
	cursor: not-allowed;
}
.ec-contact__submit:disabled::after { opacity: .4; }
.ec-contact__submit-meta {
	font-size: 12px;
	color: #4B4C4D;
	letter-spacing: .3px;
}
.ec-contact__submit-meta i {
	color: #026982;
	margin-right: 6px;
}

/* ---------- Error banner ---------- */
.ec-contact__error-banner {
	margin-bottom: 18px;
	padding: 14px 16px;
	border: 2px solid #F41C1C;
	background: #fff;
	color: #21282D;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
}
.ec-contact__error-banner[hidden] { display: none; }
.ec-contact__error-retry,
.ec-contact__error-dismiss {
	border: 2px solid #000;
	background: #fff;
	padding: 6px 12px;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	cursor: pointer;
}
.ec-contact__error-dismiss {
	margin-left: auto;
	padding: 6px 10px;
	font-size: 16px;
	letter-spacing: 0;
}

/* ---------- Success state ---------- */
.ec-contact__success {
	display: none;
	text-align: center;
	padding: 40px 20px 20px;
}
.ec-contact__success.is-on { display: block; }
.ec-contact__success > i {
	font-size: 64px;
	color: #038710;
	margin-bottom: 18px;
}
.ec-contact__success h2 {
	font-size: 36px;
	color: #001D25;
	margin: 0 0 12px;
	line-height: 1.15;
}
.ec-contact__success p {
	font-size: 16px;
	color: #4B4C4D;
	margin: 0 auto 28px;
	max-width: 46ch;
	line-height: 1.55;
}
.ec-contact__ticket {
	display: inline-block;
	background: #F6F8F8;
	border: 2px solid #001D25;
	padding: 10px 18px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	color: #001D25;
}
.ec-contact__nxt {
	margin-top: 32px;
	display: inline-flex;
	flex-direction: column;
	gap: 10px;
}
.ec-contact__nxt a {
	font-size: 13px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	font-weight: 700;
	color: #066EB9;
	text-decoration: none;
}
.ec-contact__nxt a i { margin-right: 6px; }
.ec-contact__nxt a:hover { color: #026982; }

/* ---------- Right sidebar ---------- */
.ec-contact__side {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 15px;
	color: #21282D;
	line-height: 1.6;
}
.ec-contact__side h2,
.ec-contact__side h3 { margin: 0; font-family: "DM Sans", system-ui, sans-serif; font-weight: 700; }
.ec-contact__side-eyebrow,
.ec-contact__side h3 {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	color: #026982;
	margin-bottom: 18px;
	font-weight: 700;
}
.ec-contact__side-title,
.ec-contact__side h2 {
	font-size: 36px;
	color: #001D25;
	margin-bottom: 18px;
	line-height: 1.15;
}
.ec-contact__side p {
	margin: 0 0 24px;
	color: #21282D;
	max-width: 48ch;
}
.ec-contact__divider {
	height: 1px;
	background: #E6EAE9;
	margin: 32px 0;
}

.ec-contact__methods {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.ec-contact__cm {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}
.ec-contact__cm-ico {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	background: #F6F8F8;
	border: 2px solid #001D25;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #001D25;
}
.ec-contact__cm-body { min-width: 0; }
.ec-contact__cm-lbl {
	font-size: 11px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	font-weight: 700;
	color: #4B4C4D;
	margin-bottom: 4px;
	display: block;
}
.ec-contact__cm-val {
	font-size: 17px;
	color: #001D25;
	font-weight: 700;
	text-decoration: none;
	display: block;
}
.ec-contact__cm-val:hover { color: #026982; }
.ec-contact__cm-sub {
	font-size: 13px;
	color: #4B4C4D;
	margin-top: 2px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	display: block;
}
.ec-contact__cm-body address {
	font-style: normal;
	font-size: 15px;
	color: #21282D;
	line-height: 1.55;
	margin-top: 2px;
}

.ec-contact__hours {
	background: #001D25;
	color: #fff;
	padding: 24px;
	border-left: 8px solid #5CFF96;
	display: flex;
	gap: 18px;
	align-items: flex-start;
}
.ec-contact__hours > i {
	font-size: 22px;
	color: #5CFF96;
	margin-top: 2px;
}
.ec-contact__hours strong {
	display: block;
	font-size: 13px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	margin-bottom: 8px;
	color: #fff;
}
.ec-contact__hours-body {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .9);
}
