/* Contact Page */
.octops-contact-hero {
	padding: 0 80px 40px;
	position: relative;
}

.octops-contact-hero__inner {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-inline: auto;
	max-width: 1280px;
	text-align: center;
	width: 100%;
	position: relative;
	z-index: 1;
}

.octops-contact-hero__eyebrow {
	flex: 0 0 auto;
	white-space: nowrap;
}

.octops-contact-hero__title {
	font-family: var(--octops-font-heading);
	font-size: 48px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 60px;
	margin: 0;
}

.octops-contact-hero__title strong,
.octops-contact-hero__title b {
	font-weight: 600;
}

.octops-contact-hero__description {
	color: var(--octops-text);
	font-family: var(--octops-font-body);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 30px;
	margin: 0;
	max-width: 986px;
}

.octops-contact-form-section {
	padding: 40px 80px 120px;
	position: relative;
	z-index: 1;
}

.octops-contact-form-section__inner {
	align-items: start;
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 889px) 351px;
	margin-inline: auto;
	max-width: 1280px;
	width: 100%;
}

.octops-contact-form-section__main {
	min-width: 0;
}

.octops-contact-form-section__intro {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 32px;
}

.octops-contact-form-section__title {
	font-family: var(--octops-font-heading);
	font-size: 30px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 38px;
	margin: 0;
}

.octops-contact-form-section__description,
.octops-contact-partners__description {
	color: var(--octops-text-muted);
	font-family: var(--octops-font-body);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 20px;
	margin: 0;
}

.octops-contact-form__card {
	background: #ffffff;
	border: 1px solid transparent;
	border-radius: 12px;
	box-shadow:
		0 0 1px rgba(24, 24, 27, 0.3),
		0 8px 16px rgba(24, 24, 27, 0.1);
	position: relative;
}

html[data-theme="dark"] .octops-contact-form__card {
	background: #0d1624;
	border-color: #27272a;
	box-shadow:
		0 0 1px rgba(0, 0, 0, 0.6),
		0 12px 28px rgba(0, 0, 0, 0.24);
}

.octops-contact-form {
	padding: 24px;
}

.octops-contact-field__label {
	align-items: flex-start;
	display: flex;
	gap: 2px;
	margin: 0 0 8px;
}

.octops-contact-field__required {
	color: #ef4444;
	font-weight: 500;
}

html[data-theme="dark"] .octops-contact-field__required {
	color: #fca5a5;
}

.octops-contact-control::placeholder {
	color: #a1a1aa;
}

.octops-contact-select__menu {
	--octops-contact-menu-max-height: 320px;
	max-height: min(320px, var(--octops-contact-menu-max-height));
}

.octops-contact-field.is-invalid .octops-contact-control {
	border-color: #ef4444;
}

.octops-contact-field.is-invalid .octops-contact-control:focus,
.octops-contact-field.is-invalid .octops-contact-select.is-open .octops-contact-select__trigger {
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.octops-contact-field__error {
	color: #ef4444;
	font-family: var(--octops-font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	margin: 6px 0 0;
}

html[data-theme="dark"] .octops-contact-field__error {
	color: #fca5a5;
}

.octops-contact-form__routing {
	align-items: center;
	background: #dbeafe;
	border-radius: 6px;
	color: #173da6;
	display: flex;
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	min-height: 40px;
	padding: 12px;
}

html[data-theme="dark"] .octops-contact-form__routing {
	background: rgba(46, 103, 222, 0.22);
	color: #a3cfff;
}

.octops-contact-form__helpers {
	color: var(--octops-text-muted);
	display: flex;
	flex-direction: column;
	font-size: 14px;
	font-weight: 400;
	gap: 4px;
	line-height: 20px;
}

.octops-contact-form__helpers p {
	margin: 0;
}

.octops-contact-form__general-error {
	background: #fff1f2;
	border: 1px solid #ef4444;
	border-radius: 6px;
	color: #991b1b;
	font-size: 12px;
	line-height: 16px;
	margin: 0;
	padding: 12px;
}

html[data-theme="dark"] .octops-contact-form__general-error {
	background: rgba(127, 29, 29, 0.2);
	border-color: #fca5a5;
	color: #fecaca;
}

.octops-contact-form__error-summary p,
.octops-contact-form__error-summary ul {
	margin: 0;
}

.octops-contact-form__error-summary ul {
	padding: 4px 0 0 18px;
}

.octops-contact-form__error-summary a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.octops-contact-form__error-summary {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.octops-contact-form__submit {
	min-width: 182px;
}

.octops-contact-form__spinner {
	animation: octops-contact-spin 700ms linear infinite;
}

.octops-contact-success {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-height: 334px;
	padding: 24px;
}

.octops-contact-success__icon {
	color: #22c55e;
	height: 52px;
	width: 52px;
}

.octops-contact-success__title {
	font-family: var(--octops-font-heading);
	font-size: 30px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 38px;
	margin: 0;
}

.octops-contact-success__body,
.octops-contact-success__helper {
	color: var(--octops-text-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}

.octops-contact-success__body p,
.octops-contact-success__helper {
	margin: 0;
}

.octops-contact-success__helper {
	white-space: pre-line;
}

.octops-contact-success__back {
	align-items: center;
	border-radius: 4px;
	color: var(--octops-primary);
	display: inline-flex;
	font-size: 14px;
	font-weight: 500;
	gap: 8px;
	height: 32px;
	line-height: 20px;
	margin-top: auto;
	padding: 6px 0;
}

.octops-contact-success__back svg {
	height: 16px;
	width: 16px;
}

.octops-contact-partners {
	background: var(--octops-panel);
	border: 1px solid var(--octops-border);
	border-radius: 16px;
	box-shadow:
		0 0 1px rgba(24, 24, 27, 0.2),
		0 1px 2px rgba(24, 24, 27, 0.1);
	overflow: hidden;
	position: sticky;
	top: 116px;
}

html[data-theme="dark"] .octops-contact-partners {
	box-shadow:
		0 0 1px rgba(0, 0, 0, 0.6),
		0 1px 2px rgba(0, 0, 0, 0.32);
}

.octops-contact-partners__header {
	border-bottom: 1px solid var(--octops-border);
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 15px 24px 17px;
}

.octops-contact-partners__title {
	color: var(--octops-primary);
	font-family: var(--octops-font-body);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 24px;
	margin: 0;
}

.octops-contact-partners__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.octops-contact-partners .octops-partner-entry__country {
	box-shadow: inset 0 0 1px var(--octops-primary);
}

.octops-contact-partners__item.is-closing .octops-partner-entry__link {
	font-size: 10px;
	font-weight: 600;
	line-height: 14px;
	min-height: 14px;
}

.octops-contact-form[hidden],
.octops-contact-success[hidden],
.octops-contact-select__trigger[hidden],
.octops-contact-select__menu[hidden],
.octops-contact-form__routing[hidden],
.octops-contact-field__error[hidden],
.octops-contact-form__error-summary[hidden],
.octops-contact-form__general-error[hidden] {
	display: none !important;
}

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

@media (max-width: 900px) {
	.octops-contact-hero {
		padding-inline: 40px;
	}

	.octops-contact-form-section {
		padding: 40px 24px 96px;
	}

	.octops-contact-form-section__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.octops-contact-partners {
		position: static;
	}
}

@media (max-width: 640px) {
	.octops-contact-hero {
		padding: 0 24px 32px;
	}

	.octops-contact-hero__title {
		font-size: clamp(36px, 11vw, 44px);
		line-height: 1.2;
	}

	.octops-contact-hero__description {
		font-size: 18px;
		line-height: 28px;
	}

	.octops-contact-form-section {
		padding-inline: 24px;
	}

	.octops-contact-field--full,
	.octops-contact-field--half {
		grid-column: 1;
	}

	.octops-contact-form__submit {
		min-width: 0;
		width: 100%;
	}

}

@media (prefers-reduced-motion: reduce) {
	.octops-contact-control,
	.octops-contact-select__trigger svg,
	.octops-contact-form__submit {
		transition: none;
	}

	.octops-contact-form__spinner {
		animation-duration: 1.4s;
	}
}
