/*
 * Global Cycling Travel — Tour Request Modal
 */

html.gct-trm-open,
body.gct-trm-open {
	overflow: hidden !important;
}

.gct-trm[hidden] {
	display: none !important;
}

.gct-trm {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 22px;
	opacity: 0;
	transition: opacity .18s ease;
}

.gct-trm.is-open {
	opacity: 1;
}

.gct-trm__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 29, 48, .74);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
}

.gct-trm__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(920px, 100%);
	max-height: min(92vh, 980px);
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 32px 90px rgba(0,24,42,.38);
	overflow: hidden;
	transform: translateY(16px) scale(.985);
	transition: transform .2s ease;
}

.gct-trm.is-open .gct-trm__dialog {
	transform: translateY(0) scale(1);
}

.gct-trm__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 24px;
	color: #fff;
	background:
		radial-gradient(circle at 86% 0, rgba(105,184,52,.25), transparent 32%),
		linear-gradient(135deg, #052f50, #087f9f);
}

.gct-trm__header-copy {
	min-width: 0;
}

.gct-trm__eyebrow {
	margin: 0 0 4px;
	color: #abe5f7;
	font-size: .68rem;
	font-weight: 850;
	letter-spacing: .13em;
	line-height: 1.3;
	text-transform: uppercase;
}

.gct-trm__header h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.45rem, 3vw, 2rem);
	line-height: 1.2;
	letter-spacing: -.03em;
}

.gct-trm__header-copy > p:last-child {
	margin: 7px 0 0;
	color: rgba(255,255,255,.78);
	font-size: .82rem;
	line-height: 1.45;
}

.gct-trm__header-copy > p:last-child span {
	color: #b9ed9a;
	font-weight: 750;
}

.gct-trm__close {
	display: grid;
	flex: 0 0 42px;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: #fff;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 12px;
	background: rgba(255,255,255,.09);
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}

.gct-trm__close:hover {
	background: rgba(255,255,255,.18);
	transform: rotate(4deg);
}

.gct-trm__close span {
	display: block;
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-1px);
}

.gct-trm__body {
	flex: 1;
	min-height: 0;
	padding: 24px;
	background: #f4f8fa;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.gct-trm__body .gct-tour-request {
	max-width: 100%;
	margin: 0;
	border-radius: 17px;
	box-shadow: 0 12px 35px rgba(7,55,86,.09);
}

.gct-trm__body .gct-tour-request__intro {
	display: none;
}

.gct-trm__body .gct-tour-request__section:first-of-type {
	border-top: 0;
}

.gct-trm__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 22px;
	padding: 13px 20px;
	color: #607584;
	border-top: 1px solid #dce8ef;
	background: #fff;
	font-size: .7rem;
	font-weight: 700;
}

.gct-trm__footer span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.gct-trm__footer span::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #69b834;
	content: "";
}

@media (max-width: 680px) {
	.gct-trm {
		align-items: end;
		padding: 0;
	}

	.gct-trm__dialog {
		width: 100%;
		max-height: 94dvh;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 20px 20px 0 0;
		transform: translateY(35px);
	}

	.gct-trm__header {
		padding: 17px 18px;
	}

	.gct-trm__header h2 {
		font-size: 1.4rem;
	}

	.gct-trm__header-copy > p:last-child {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.gct-trm__close {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
	}

	.gct-trm__body {
		padding: 12px;
	}

	.gct-trm__body .gct-tour-request {
		border-radius: 14px;
	}

	.gct-trm__footer {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gct-trm,
	.gct-trm__dialog,
	.gct-trm__close {
		transition: none !important;
	}
}


/*
 * Global Cycling Travel — Contact Form 7 Tour Request
 * Add to the child theme CSS or Appearance > Customize > Additional CSS.
 */

.gct-tour-request {
	--gct-form-navy: #082f52;
	--gct-form-navy-deep: #052f50;
	--gct-form-blue: #0788c9;
	--gct-form-blue-dark: #056ba1;
	--gct-form-teal: #0a9db0;
	--gct-form-green: #69b834;
	--gct-form-green-dark: #4d9424;
	--gct-form-sky: #eaf7fd;
	--gct-form-soft: #f6fafc;
	--gct-form-ink: #173044;
	--gct-form-muted: #607584;
	--gct-form-line: #dce8ef;
	color: var(--gct-form-ink);
	border: 1px solid var(--gct-form-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 20px 55px rgba(7,55,86,.12);
	overflow: hidden;
}

.gct-tour-request *,
.gct-tour-request *::before,
.gct-tour-request *::after {
	box-sizing: border-box;
}

.gct-tour-request__intro {
	padding: 34px 38px;
	color: #fff;
	background:
		radial-gradient(circle at 88% 0, rgba(105,184,52,.23), transparent 31%),
		linear-gradient(135deg, var(--gct-form-navy-deep), #087e9e);
}

.gct-tour-request__eyebrow {
	margin: 0 0 7px;
	color: #a9e4f8;
	font-size: .72rem;
	font-weight: 850;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.gct-tour-request__intro h2 {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.12;
	letter-spacing: -.035em;
}

.gct-tour-request__intro > p:last-of-type {
	max-width: 740px;
	margin: 0;
	color: rgba(255,255,255,.82);
	font-size: .96rem;
	line-height: 1.7;
}

.gct-tour-request__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 20px;
}

.gct-tour-request__trust span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 11px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	color: rgba(255,255,255,.9);
	font-size: .72rem;
	font-weight: 700;
}

.gct-tour-request__trust span::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #8bd253;
	content: "";
}

.gct-tour-request__section {
	padding: 30px 38px;
	border-bottom: 1px solid var(--gct-form-line);
}

.gct-tour-request__section-heading {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	margin-bottom: 23px;
}

.gct-tour-request__section-heading > span {
	display: grid;
	flex: 0 0 38px;
	place-items: center;
	width: 38px;
	height: 38px;
	color: #fff;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--gct-form-blue), var(--gct-form-teal));
	box-shadow: 0 8px 20px rgba(7,136,201,.22);
	font-size: .75rem;
	font-weight: 900;
}

.gct-tour-request__section-heading h3 {
	margin: 0 0 3px;
	color: var(--gct-form-navy);
	font-size: 1.18rem;
	line-height: 1.3;
}

.gct-tour-request__section-heading p {
	margin: 0;
	color: var(--gct-form-muted);
	font-size: .82rem;
	line-height: 1.55;
}

.gct-tour-request__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 19px 20px;
}

.gct-tour-request__field {
	display: block;
	min-width: 0;
	margin: 0;
}

.gct-tour-request__field--full {
	grid-column: 1 / -1;
}

.gct-tour-request__field > span:first-child {
	display: block;
	margin-bottom: 7px;
	color: var(--gct-form-navy);
	font-size: .78rem;
	font-weight: 800;
	line-height: 1.4;
}

.gct-tour-request__field b {
	color: #d24b4b;
}

.gct-tour-request .wpcf7-form-control-wrap {
	display: block;
}

.gct-tour-request input[type="text"],
.gct-tour-request input[type="email"],
.gct-tour-request input[type="tel"],
.gct-tour-request input[type="number"],
.gct-tour-request input[type="date"],
.gct-tour-request select,
.gct-tour-request textarea {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 49px;
	margin: 0;
	padding: 11px 13px;
	color: var(--gct-form-ink);
	border: 1px solid #cfdfe7;
	border-radius: 10px;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(7,55,86,.035);
	font: inherit;
	font-size: .9rem;
	line-height: 1.4;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.gct-tour-request textarea {
	min-height: 135px;
	resize: vertical;
}

.gct-tour-request input:focus,
.gct-tour-request select:focus,
.gct-tour-request textarea:focus {
	outline: none;
	border-color: var(--gct-form-blue);
	background: #fbfeff;
	box-shadow: 0 0 0 4px rgba(7,136,201,.13);
}

.gct-tour-request input::placeholder,
.gct-tour-request textarea::placeholder {
	color: #91a2ad;
	opacity: 1;
}

.gct-tour-request .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.gct-tour-request .wpcf7-list-item {
	margin: 0;
}

.gct-tour-request .wpcf7-radio .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 11px;
	border: 1px solid #d5e3ea;
	border-radius: 999px;
	background: #f9fcfd;
	color: #3d5868;
	font-size: .78rem;
	font-weight: 700;
	cursor: pointer;
}

.gct-tour-request .wpcf7-radio input {
	accent-color: var(--gct-form-blue);
}

.gct-tour-request__consent {
	padding: 23px 38px 0;
	color: var(--gct-form-muted);
	font-size: .78rem;
	line-height: 1.6;
}

.gct-tour-request__consent .wpcf7-list-item {
	margin: 0;
}

.gct-tour-request__consent label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
}

.gct-tour-request__consent input {
	flex: 0 0 auto;
	margin-top: 4px;
	accent-color: var(--gct-form-green);
}

.gct-tour-request__consent a {
	color: var(--gct-form-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gct-tour-request__submit-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	padding: 22px 38px 32px;
}

.gct-tour-request input.gct-tour-request__submit {
	flex: 0 0 auto;
	min-height: 50px;
	padding: 13px 22px;
	color: #fff;
	border: 0;
	border-radius: 10px;
	background: var(--gct-form-blue);
	box-shadow: 0 10px 24px rgba(7,136,201,.25);
	font-size: .88rem;
	font-weight: 850;
	cursor: pointer;
	transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.gct-tour-request input.gct-tour-request__submit:hover {
	background: var(--gct-form-blue-dark);
	box-shadow: 0 13px 28px rgba(7,136,201,.28);
	transform: translateY(-2px);
}

.gct-tour-request__submit-row p {
	max-width: 500px;
	margin: 0;
	color: var(--gct-form-muted);
	font-size: .75rem;
	line-height: 1.55;
}

.gct-tour-request__submit-row strong {
	color: var(--gct-form-navy);
}

.gct-tour-request .wpcf7-spinner {
	margin: 0 0 0 10px;
}

.gct-tour-request .wpcf7-not-valid-tip {
	margin-top: 5px;
	color: #c53f3f;
	font-size: .72rem;
}

.gct-tour-request + .wpcf7-response-output,
.wpcf7 form .gct-tour-request ~ .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 13px 15px;
	border-radius: 10px;
	font-size: .83rem;
	line-height: 1.5;
}

.gct-tour-request__success {
	display: none;
	margin: 0 38px 30px;
	padding: 17px 19px;
	color: #31523e;
	border: 1px solid #cfe4c0;
	border-left: 4px solid var(--gct-form-green);
	border-radius: 10px;
	background: #f5fbf1;
}

.gct-tour-request__success strong,
.gct-tour-request__success span {
	display: block;
}

.gct-tour-request__success span {
	margin-top: 3px;
	font-size: .82rem;
	line-height: 1.55;
}

.wpcf7 form.sent .gct-tour-request__success {
	display: block;
}

.wpcf7 form.submitting .gct-tour-request__submit {
	opacity: .7;
	pointer-events: none;
}

@media (max-width: 680px) {
	.gct-tour-request__intro,
	.gct-tour-request__section {
		padding-right: 22px;
		padding-left: 22px;
	}

	.gct-tour-request__grid {
		grid-template-columns: 1fr;
	}

	.gct-tour-request__field--full {
		grid-column: auto;
	}

	.gct-tour-request__consent {
		padding-right: 22px;
		padding-left: 22px;
	}

	.gct-tour-request__submit-row {
		align-items: stretch;
		flex-direction: column;
		padding-right: 22px;
		padding-left: 22px;
	}

	.gct-tour-request input.gct-tour-request__submit {
		width: 100%;
	}

	.gct-tour-request__success {
		margin-right: 22px;
		margin-left: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gct-tour-request *,
	.gct-tour-request *::before,
	.gct-tour-request *::after {
		transition: none !important;
	}
}


/* v1.1 compatibility: keep the modal above sticky headers, cookie bars and theme wrappers. */
body > .gct-trm {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483000 !important;
	transform: none !important;
}

body.gct-trm-open #masthead,
body.gct-trm-open .gct-tour-mobile-cta {
	pointer-events: none;
}

body.gct-trm-open .gct-trm,
body.gct-trm-open .gct-trm * {
	pointer-events: auto;
}
