/* Contact page. Loaded after ib-base.css, which carries the tokens, buttons,
   nav and footer this shares with the home page. */

/* The nav sits on white here rather than over the hero image, so it needs an
   edge of its own. */
.ib-site--contact .ib-navcap {
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.ib-site--contact a {
	color: #1C75BC;
}

.ib-site--contact a:hover,
.ib-site--contact a:focus {
	color: #f47b20;
}

/* Buttons and nav links opt back out of the link colour above. */
.ib-site--contact a.ib-btn,
.ib-site--contact a.ib-nav__cta,
.ib-site--contact a.ib-chip-link {
	color: var(--ib-ink);
}

.ib-site--contact a.ib-btn--primary,
.ib-site--contact a.ib-btn--primary:hover,
.ib-site--contact a.ib-nav__cta:not(.ib-nav__cta--outline) {
	color: #fff;
}

.ib-site--contact a.ib-btn:hover,
.ib-site--contact a.ib-nav__cta:hover,
.ib-site--contact a.ib-chip-link:hover {
	color: var(--ib-ink);
}

/* INTRO */
.ib-contact__intro {
	padding-top: clamp(120px, 12vw, 170px);
	padding-bottom: clamp(40px, 5vw, 64px);
}

.ib-contact__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-size: 13px;
	color: var(--ib-muted);
}

.ib-contact__eyebrow span:first-child {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #29ABE2;
	display: block;
	flex: none;
}

.ib-contact__heading {
	font-weight: 300;
	font-size: clamp(2rem, 5.4vw, 4rem);
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0 0 20px;
	max-width: 900px;
	text-wrap: balance;
}

.ib-contact__lead {
	font-size: 16px;
	line-height: 1.65;
	color: var(--ib-muted);
	margin: 0;
	max-width: 620px;
	text-wrap: pretty;
}

/* COLUMNS */
.ib-contact__cols {
	padding-bottom: clamp(64px, 8vw, 110px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
	gap: 20px;
	align-items: start;
}

.ib-contact__aside {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ib-panel {
	border: 1px solid var(--ib-line);
	border-radius: var(--ib-radius-lg);
	padding: clamp(22px, 2.4vw, 34px);
}

.ib-panel--tint {
	background: #eaf6fc;
	color: #333;
	border-color: transparent;
}

.ib-panel h2 {
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.02em;
	margin: 0 0 8px;
}

.ib-panel__text {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ib-muted);
	margin: 0 0 18px;
}

.ib-panel--tint h2 {
	margin-bottom: 20px;
	color: #333;
}

.ib-panel--tint .ib-panel__text {
	color: rgba(51, 51, 51, 0.7);
	margin-bottom: 22px;
}

/* Outlined pill used for the operator sites and the vacancy link. */
.ib-chip-link {
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: var(--ib-radius);
	padding: 9px 15px;
	font-size: 12px;
	font-weight: 500;
	display: inline-block;
	transition: background .16s ease;
}

.ib-chip-link:hover,
.ib-chip-link:focus {
	background: var(--ib-surface);
}

.ib-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

/* COMPANY DETAILS */
.ib-details {
	display: grid;
	gap: 18px;
}

.ib-details__group + .ib-details__group {
	border-top: 1px solid rgba(51, 51, 51, 0.12);
	padding-top: 18px;
}

.ib-details__label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.5px;
	color: rgba(51, 51, 51, 0.5);
	margin-bottom: 5px;
}

.ib-details__name {
	font-size: 15px;
	font-weight: 500;
	margin: 0 0 6px;
	color: #333;
}

.ib-details__lines {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 14.5px;
}

.ib-details__address {
	font-size: 14.5px;
	line-height: 1.6;
	margin: 0 0 6px;
	color: rgba(51, 51, 51, 0.78);
}

.ib-details__pair {
	display: flex;
	gap: 34px;
	flex-wrap: wrap;
}

.ib-details__pair p {
	font-size: 14.5px;
	margin: 0;
	color: rgba(51, 51, 51, 0.78);
}

/* FORM */
.ib-form__lead {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ib-muted);
	margin: 0 0 24px;
}

.ib-form h2 {
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
}

.ib-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.ib-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	position: relative;
	min-width: 0;
}

.ib-field__label {
	font-size: 12px;
	font-weight: 500;
	color: var(--ib-label);
}

.ib-form input[type="text"],
.ib-form input[type="email"],
.ib-form select,
.ib-form textarea {
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: var(--ib-radius);
	padding: 12px 14px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: var(--ib-ink);
	transition: border-color .18s ease, box-shadow .18s ease;
}

.ib-form textarea {
	line-height: 1.55;
	resize: vertical;
}

.ib-form select {
	padding-right: 38px;
	appearance: none;
	cursor: pointer;
}

.ib-form input::placeholder,
.ib-form textarea::placeholder {
	color: rgba(10, 10, 10, 0.38);
}

.ib-form input:focus,
.ib-form select:focus,
.ib-form textarea:focus {
	outline: none;
	border-color: #29ABE2;
	box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.16);
}

.ib-field__caret {
	position: absolute;
	right: 14px;
	bottom: 18px;
	pointer-events: none;
}

.ib-field__error {
	font-size: 12px;
	color: #c0392b;
}

.ib-field--invalid input,
.ib-field--invalid textarea,
.ib-field--invalid select {
	border-color: #c0392b;
}

/* A fieldset groups the toggles for screen readers, but it has to be stripped
   back to a plain block first -- the default border and legend notch are not
   in the design. min-width:0 stops it forcing the grid column wider. */
.ib-form__topics {
	border: 0;
	padding: 0;
	margin: 0 0 18px;
	min-width: 0;
}

.ib-form__topics-label {
	display: block;
	padding: 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--ib-label);
	margin-bottom: 9px;
}

/* Toggle chips. The checkbox stays in the accessibility tree and drives the
   selected styling, so this needs no JavaScript. */
.ib-toggle input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.ib-toggle span {
	display: inline-block;
	border: 1px solid rgba(0, 0, 0, 0.14);
	background: #fff;
	color: var(--ib-ink);
	border-radius: var(--ib-radius);
	padding: 9px 15px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.ib-toggle input:checked + span {
	background: #eaf6fc;
	border-color: #29ABE2;
	color: #1C75BC;
}

.ib-toggle input:focus-visible + span {
	outline: 2px solid #29ABE2;
	outline-offset: 2px;
}

.ib-form__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.ib-form__note {
	font-size: 12.5px;
	color: rgba(10, 10, 10, 0.45);
}

button.ib-btn {
	border: none;
	font-family: inherit;
	cursor: pointer;
}

button.ib-btn--ghost {
	background: none;
	border: 1px solid rgba(0, 0, 0, 0.2);
	color: var(--ib-ink);
}

/* Honeypot. Off-screen rather than display:none, which some bots skip. */
.ib-form__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ib-form__message {
	border-radius: var(--ib-radius);
	padding: 12px 15px;
	font-size: 13.5px;
	line-height: 1.55;
	margin-bottom: 20px;
}

.ib-form__message.bad,
.ib-form__message.error,
.ib-form__message.required {
	background: #fdecea;
	color: #a32b1c;
}

.ib-form__message.good {
	background: #eaf6fc;
	color: #1C75BC;
}

/* SENT */
.ib-sent {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 26px 0;
}

.ib-sent__mark {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: #eaf6fc;
	color: #1C75BC;
	display: grid;
	place-items: center;
	font-size: 20px;
}

.ib-sent h2 {
	font-size: 20px;
	font-weight: 500;
	margin: 0;
}

.ib-sent p {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ib-muted);
	margin: 0;
	max-width: 380px;
}
