/* AlpAdventure Booking — form styles
   Brand: navy #112A74 · alpine orange #E78A45 · Inter */

.alp-booking {
	--alp-navy: #112A74;
	--alp-orange: #E78A45;
	--alp-navy-soft: rgba(17, 42, 116, 0.08);
	--alp-navy-line: rgba(17, 42, 116, 0.18);
	--alp-ink: #16213f;
	--alp-muted: #5a6486;
	--alp-bg: #ffffff;
	--alp-radius: 14px;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--alp-ink);
	max-width: 860px;
	margin: 0 auto;
	background: var(--alp-bg);
	border: 1px solid var(--alp-navy-line);
	border-radius: calc(var(--alp-radius) + 6px);
	padding: clamp(24px, 5vw, 48px);
	box-sizing: border-box;
}

.alp-booking *,
.alp-booking *::before,
.alp-booking *::after {
	box-sizing: border-box;
}

/* ---------- Header ---------- */

.alp-booking__head {
	margin-bottom: 32px;
}

.alp-booking__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--alp-orange);
	margin-bottom: 10px;
}

.alp-booking__title {
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--alp-navy);
	margin: 0 0 10px;
}

.alp-booking__subtitle {
	font-size: 16px;
	line-height: 1.6;
	color: var(--alp-muted);
	margin: 0;
	max-width: 56ch;
}

/* ---------- Programme cards ---------- */

.alp-booking__programmes {
	border: 0;
	padding: 0;
	margin: 0 0 28px;
}

.alp-booking__programmes legend {
	font-size: 14px;
	font-weight: 600;
	color: var(--alp-navy);
	margin-bottom: 14px;
	padding: 0;
}

.alp-booking__programmes legend span,
.alp-field label span {
	color: var(--alp-orange);
}

.alp-booking__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
}

.alp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 16px 14px;
	border: 1.5px solid var(--alp-navy-line);
	border-radius: var(--alp-radius);
	cursor: pointer;
	transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.alp-card:hover {
	border-color: var(--alp-navy);
	transform: translateY(-2px);
}

.alp-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.alp-card__num {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--alp-orange);
}

.alp-card__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--alp-navy);
	line-height: 1.3;
}

.alp-card__desc {
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--alp-muted);
}

.alp-card:has(input:checked) {
	border-color: var(--alp-navy);
	background: var(--alp-navy);
}

.alp-card:has(input:checked) .alp-card__name {
	color: #ffffff;
}

.alp-card:has(input:checked) .alp-card__desc {
	color: rgba(255, 255, 255, 0.75);
}

.alp-card:has(input:focus-visible) {
	outline: 3px solid var(--alp-orange);
	outline-offset: 2px;
}

/* Fallback for browsers without :has() (JS adds .is-selected) */
.alp-card.is-selected {
	border-color: var(--alp-navy);
	background: var(--alp-navy);
}

.alp-card.is-selected .alp-card__name {
	color: #ffffff;
}

.alp-card.is-selected .alp-card__desc {
	color: rgba(255, 255, 255, 0.75);
}

.alp-booking__locked {
	font-size: 14px;
	color: var(--alp-muted);
	background: var(--alp-navy-soft);
	border-radius: 10px;
	padding: 10px 14px;
	margin: 0 0 24px;
}

.alp-booking__locked strong {
	color: var(--alp-navy);
}

/* ---------- Fields ---------- */

.alp-booking__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 20px;
	margin-bottom: 16px;
}

@media (max-width: 600px) {
	.alp-booking__grid {
		grid-template-columns: 1fr;
	}
}

.alp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.alp-field--full {
	margin-bottom: 8px;
}

.alp-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--alp-navy);
}

.alp-field input,
.alp-field select,
.alp-field textarea {
	font-family: inherit;
	font-size: 15px;
	color: var(--alp-ink);
	background: #fbfbfd;
	border: 1.5px solid var(--alp-navy-line);
	border-radius: 10px;
	padding: 11px 14px;
	width: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.alp-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23112A74' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

.alp-field textarea {
	resize: vertical;
	min-height: 96px;
}

.alp-field input:focus,
.alp-field select:focus,
.alp-field textarea:focus {
	outline: none;
	border-color: var(--alp-navy);
	box-shadow: 0 0 0 3px rgba(231, 138, 69, 0.28);
}

.alp-field input::placeholder,
.alp-field textarea::placeholder {
	color: #a0a7c0;
}

/* Honeypot */
.alp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Footer / submit ---------- */

.alp-booking__footer {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.alp-booking__submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #ffffff;
	background: var(--alp-navy);
	border: 0;
	border-radius: 999px;
	padding: 14px 28px;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.alp-booking__submit:hover {
	background: var(--alp-orange);
	transform: translateY(-1px);
}

.alp-booking__submit:focus-visible {
	outline: 3px solid var(--alp-orange);
	outline-offset: 3px;
}

.alp-booking__submit[disabled] {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

.alp-booking__submit-arrow {
	transition: transform 0.18s ease;
}

.alp-booking__submit:hover .alp-booking__submit-arrow {
	transform: translateX(4px);
}

.alp-booking__note {
	font-size: 12.5px;
	color: var(--alp-muted);
	margin: 0;
}

/* ---------- Feedback ---------- */

.alp-booking__feedback {
	margin-top: 18px;
	font-size: 14.5px;
	line-height: 1.55;
	border-radius: 10px;
	display: none;
	padding: 14px 16px;
}

.alp-booking__feedback.is-success {
	display: block;
	background: rgba(17, 42, 116, 0.06);
	border: 1px solid rgba(17, 42, 116, 0.25);
	color: var(--alp-navy);
	font-weight: 500;
}

.alp-booking__feedback.is-error {
	display: block;
	background: rgba(231, 138, 69, 0.1);
	border: 1px solid rgba(231, 138, 69, 0.5);
	color: #9a4f13;
	font-weight: 500;
}

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

/* ---------- Sections, start date, children repeater ---------- */

.alp-booking__section {
	font-size: 15px;
	font-weight: 700;
	color: var(--alp-navy);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 28px 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--alp-orange);
	display: inline-block;
}

.alp-booking__section:first-of-type {
	margin-top: 4px;
}

.alp-card__start {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--alp-navy);
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px dashed var(--alp-navy-line);
}

.alp-card:has(input:checked) .alp-card__start,
.alp-card.is-selected .alp-card__start {
	color: var(--alp-orange);
	border-top-color: rgba(255, 255, 255, 0.25);
}

.alp-booking__startdate {
	font-size: 14px;
	color: var(--alp-muted);
	background: var(--alp-navy-soft);
	border-left: 3px solid var(--alp-orange);
	border-radius: 0 10px 10px 0;
	padding: 10px 14px;
	margin: 16px 0 0;
}

.alp-booking__startdate strong {
	color: var(--alp-navy);
}

.alp-child {
	border: 1.5px solid var(--alp-navy-line);
	border-radius: var(--alp-radius);
	padding: 16px 18px 14px;
	margin-bottom: 12px;
	position: relative;
}

.alp-child__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--alp-orange);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 12px;
}

.alp-child .alp-booking__grid {
	margin-bottom: 0;
}

.alp-field--wide {
	grid-column: 1 / -1;
}

@media (min-width: 601px) {
	.alp-child .alp-booking__grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
	.alp-child .alp-field--wide {
		grid-column: 1 / -1;
	}
}

/* Swiss Ski Licence field — highlighted so it reads as required for race programmes */
.alp-field--licence {
	background: rgba(231, 138, 69, 0.07);
	border: 1px dashed rgba(231, 138, 69, 0.55);
	border-radius: 10px;
	padding: 10px 12px;
}

.alp-field--licence[hidden] {
	display: none;
}

.alp-booking button.alp-child__remove {
	position: absolute;
	top: 12px;
	right: 14px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--alp-muted) !important;
	background: #ffffff !important;
	border: 1px solid var(--alp-navy-line);
	border-radius: 999px;
	padding: 5px 13px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: none;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.alp-booking button.alp-child__remove:hover,
.alp-booking button.alp-child__remove:focus {
	color: #ffffff !important;
	background: #b34a1a !important;
	border-color: #b34a1a;
	outline: none;
}

.alp-booking button.alp-child__remove:focus-visible {
	outline: 2px solid var(--alp-orange);
	outline-offset: 2px;
}

.alp-booking__addchild {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--alp-navy);
	background: var(--alp-navy-soft);
	border: 1.5px dashed var(--alp-navy-line);
	border-radius: 10px;
	padding: 10px 18px;
	cursor: pointer;
	margin-bottom: 20px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.alp-booking__addchild:hover {
	border-color: var(--alp-orange);
	background: rgba(231, 138, 69, 0.1);
}

.alp-booking__addchild span {
	font-size: 17px;
	font-weight: 700;
	color: var(--alp-orange);
}
