/*
 * TIS Contact. Left: heading + detail cards. Right: white enquiry card with the generic form builder
 * (.tis-quote__* field classes). Optional map below.
 */

.tis-contact { background: var(--tis-bg); }

.tis-contact__inner { padding-right: calc(75 * var(--tis-u)); padding-left: calc(75 * var(--tis-u)); }

.tis-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: calc(80 * var(--tis-u));
	align-items: start;
}

.tis-contact__eyebrow { gap: calc(24 * var(--tis-u)); }
.tis-contact__eyebrow .tis-eyebrow__line { width: calc(72 * var(--tis-u)); }

.tis-contact__title {
	margin: calc(18 * var(--tis-u)) 0 0;
	font-family: var(--tis-font-display);
	font-size: max(28px, calc(52 * var(--tis-u)));
	font-weight: 900;
	line-height: 1.08;
	color: var(--tis-ink);
}

.tis-contact__text {
	margin-top: calc(22 * var(--tis-u));
	font-size: max(15px, calc(20 * var(--tis-u)));
	line-height: 1.55;
	color: #555d73;
}

.tis-contact__text p { margin: 0 0 0.5em; }
.tis-contact__text p:last-child { margin-bottom: 0; }

.tis-contact__details { display: grid; gap: calc(18 * var(--tis-u)); margin: var(--tis-gap) 0 0; padding: 0; list-style: none; }

.tis-contact__detail {
	display: flex;
	align-items: center;
	gap: calc(24 * var(--tis-u));
	padding: calc(22 * var(--tis-u)) calc(28 * var(--tis-u));
	border: 1px solid var(--tis-line);
	border-radius: calc(16 * var(--tis-u));
	background: var(--tis-white);
	box-shadow: var(--tis-shadow-card);
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.tis-contact__detail:hover { border-color: #c4d5f2; }

.tis-contact__detail-icon { flex: 0 0 auto; width: max(48px, calc(66 * var(--tis-u))); height: max(48px, calc(66 * var(--tis-u))); color: var(--tis-primary); }
.tis-contact__detail-icon svg { width: max(22px, calc(30 * var(--tis-u))); height: max(22px, calc(30 * var(--tis-u))); }

.tis-contact__detail-copy { display: flex; flex-direction: column; gap: calc(4 * var(--tis-u)); min-width: 0; }

.tis-contact__detail-label {
	font-size: max(12px, calc(14 * var(--tis-u)));
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tis-primary);
}

.tis-contact__detail-value {
	font-size: max(15px, calc(21 * var(--tis-u)));
	font-weight: 600;
	line-height: 1.35;
	color: var(--tis-ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}

a.tis-contact__detail-value:hover { color: var(--tis-primary); }

/* Form card */
.tis-contact__form-card {
	padding: calc(48 * var(--tis-u)) calc(52 * var(--tis-u)) calc(52 * var(--tis-u));
	border: 1px solid var(--tis-line);
	border-radius: calc(22 * var(--tis-u));
	background: var(--tis-white);
	box-shadow: 0 24px 60px rgba(31, 66, 108, 0.1);
}

.tis-contact__form-title {
	margin: 0;
	font-family: var(--tis-font-display);
	font-size: max(22px, calc(34 * var(--tis-u)));
	font-weight: 900;
	line-height: 1.15;
	color: var(--tis-ink);
}

.tis-contact__form-text { margin: calc(10 * var(--tis-u)) 0 calc(32 * var(--tis-u)); font-size: max(14px, calc(18 * var(--tis-u))); color: var(--tis-muted-2); }

.tis-quote__fields { display: flex; flex-wrap: wrap; gap: calc(22 * var(--tis-u)); }
.tis-quote__field { display: flex; flex-direction: column; gap: calc(8 * var(--tis-u)); min-width: 0; }
.tis-quote__field--full { flex: 0 0 100%; }
.tis-quote__field--half { flex: 1 1 calc(50% - 11 * var(--tis-u)); }

.tis-quote__label { font-size: max(13px, calc(16 * var(--tis-u))); font-weight: 600; color: var(--tis-navy); }

.tis-quote__control {
	display: block;
	width: 100%;
	height: max(46px, calc(62 * var(--tis-u)));
	padding: 0 calc(20 * var(--tis-u));
	border: 1px solid var(--tis-line);
	border-radius: calc(12 * var(--tis-u));
	background: var(--tis-field);
	color: var(--tis-ink);
	font-family: var(--tis-font-body);
	font-size: max(14px, calc(17 * var(--tis-u)));
	font-weight: 500;
	box-shadow: none;
	appearance: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tis-quote__control::placeholder { color: #8a93a8; opacity: 1; }
.tis-quote__control:focus { outline: 0; border-color: var(--tis-primary); background: var(--tis-white); }
.tis-quote__control.is-invalid { border-color: #d92d20; }
.tis-quote__control--textarea { height: auto; min-height: calc(150 * var(--tis-u)); padding-top: calc(16 * var(--tis-u)); padding-bottom: calc(16 * var(--tis-u)); resize: vertical; line-height: 1.5; }

/* UK date field: text box + calendar button; the native picker is invisible and only used to pick a date. */
.tis-quote__date { position: relative; display: block; }
.tis-quote__date .tis-quote__control { padding-right: calc(52 * var(--tis-u)); }
.tis-quote__date-picker { position: absolute; left: 0; bottom: 0; width: 100%; height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.tis-quote__date-btn { position: absolute; top: 50%; right: calc(12 * var(--tis-u)); display: flex; align-items: center; justify-content: center; width: max(28px, calc(36 * var(--tis-u))); height: max(28px, calc(36 * var(--tis-u))); margin: 0; padding: 0; transform: translateY(-50%); border: 0; background: transparent; color: var(--tis-primary); cursor: pointer; }
.tis-quote__date-btn svg { width: max(16px, calc(20 * var(--tis-u))); height: max(16px, calc(20 * var(--tis-u))); }

.tis-quote__select { position: relative; display: block; }
.tis-quote__select select { padding-right: calc(52 * var(--tis-u)); cursor: pointer; }
.tis-quote__select svg { position: absolute; top: 50%; right: calc(20 * var(--tis-u)); width: max(14px, calc(18 * var(--tis-u))); height: max(14px, calc(18 * var(--tis-u))); transform: translateY(-50%); color: var(--tis-primary); pointer-events: none; }

.tis-quote__error { display: block; font-size: max(12px, calc(14 * var(--tis-u))); font-weight: 500; color: #d92d20; }
.tis-quote__error:empty { display: none; }

.tis-quote__check,
.tis-quote__choice { display: flex; flex-direction: row; align-items: center; gap: 10px; font-size: max(14px, calc(16 * var(--tis-u))); color: var(--tis-muted-2); }
.tis-quote__choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tis-quote__html { font-size: max(13px, calc(15 * var(--tis-u))); color: var(--tis-muted-2); }

.tis-contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tis-contact__submit {
	width: 100%;
	margin-top: calc(30 * var(--tis-u));
	min-height: max(52px, calc(68 * var(--tis-u)));
	border-radius: calc(12 * var(--tis-u));
	font-size: max(15px, calc(19 * var(--tis-u)));
}

.tis-contact__status { margin: calc(16 * var(--tis-u)) 0 0; font-size: max(14px, calc(17 * var(--tis-u))); font-weight: 600; text-align: center; }
.tis-contact__status:empty { display: none; }
.tis-contact__status.is-success { color: #0a8f4f; }
.tis-contact__status.is-error { color: #d92d20; }

/* Map */
.tis-contact__map {
	position: relative;
	height: calc(440 * var(--tis-u));
	margin-top: var(--tis-gap);
	overflow: hidden;
	border: 1px solid var(--tis-line);
	border-radius: calc(22 * var(--tis-u));
	background: var(--tis-soft);
}

.tis-contact__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.tis-contact__map .tis-contact__map-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------------
 * Tablet / Mobile
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.tis-contact__inner { padding-right: var(--tis-gutter); padding-left: var(--tis-gutter); }
	.tis-contact__grid { grid-template-columns: 1fr; gap: 44px; }
	.tis-contact__eyebrow { gap: 14px; }
	.tis-contact__eyebrow .tis-eyebrow__line { width: 40px; }
	.tis-contact__title { margin-top: 14px; font-size: 40px; }
	.tis-contact__text { margin-top: 16px; font-size: 18px; }
	.tis-contact__details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: var(--tis-gap); }
	.tis-contact__detail { gap: 16px; padding: 18px 20px; border-radius: 14px; }
	.tis-contact__detail-icon { width: 52px; height: 52px; }
	.tis-contact__detail-icon svg { width: 24px; height: 24px; }
	.tis-contact__detail-label { font-size: 12px; }
	.tis-contact__detail-value { font-size: 16px; }
	.tis-contact__form-card { padding: 36px 32px 40px; border-radius: 18px; }
	.tis-contact__form-title { font-size: 28px; }
	.tis-contact__form-text { margin-bottom: 24px; font-size: 16px; }
	.tis-quote__fields { gap: 18px; }
	.tis-quote__field--half { flex-basis: calc(50% - 9px); }
	.tis-quote__label { font-size: 14px; }
	.tis-quote__control { height: 52px; padding: 0 16px; border-radius: 10px; font-size: 16px; }
	.tis-quote__control--textarea { min-height: 130px; padding-top: 14px; }
	.tis-quote__select select { padding-right: 44px; }
	.tis-quote__select svg { right: 16px; width: 16px; height: 16px; }
	.tis-contact__submit { min-height: 56px; margin-top: 24px; font-size: 17px; }
	.tis-contact__map { height: 340px; margin-top: var(--tis-gap); border-radius: 18px; }
}

@media (max-width: 767px) {
	.tis-contact__title { font-size: 28px; }
	.tis-contact__text { font-size: 16px; }
	.tis-contact__details { grid-template-columns: 1fr; }
	.tis-contact__detail-value { font-size: 15px; }
	.tis-contact__form-card { padding: 28px 20px 30px; }
	.tis-contact__form-title { font-size: 24px; }
	.tis-quote__field--half { flex-basis: 100%; }
	.tis-contact__map { height: 280px; }
}
