/* APEX24 Storage Booking — every selector is scoped under .apx24sb to avoid touching the theme. */

.apx24sb {
	--apx-navy: #0b2545;
	--apx-blue: #1f4e8c;
	--apx-sky: #7cc1e8;
	--apx-sky-soft: #eaf5fc;
	--apx-bg: #f5f8fb;
	--apx-line: #d9e2ec;
	--apx-text: #1c2b3a;
	--apx-muted: #5b6b7c;
	--apx-error: #b42318;
	--apx-warn-bg: #fff7e6;
	--apx-radius: 14px;
	--apx-focus: 0 0 0 3px rgba(31, 78, 140, .25);

	box-sizing: border-box;
	max-width: 1120px;
	margin: 0 auto;
	padding: 24px 16px 40px;
	color: var(--apx-text);
	font-size: 16px;
	line-height: 1.6;
	background: var(--apx-bg);
	border-radius: var(--apx-radius);
	/* Layout responds to the width the theme gives the form, not the window (themes often narrow content). */
	container-type: inline-size;
	container-name: apx24sb;
}
.apx24sb *, .apx24sb *::before, .apx24sb *::after { box-sizing: border-box; }
.apx24sb [hidden] { display: none !important; }

/* Header */
.apx24sb .apx24sb-head { display: flex; flex-direction: column; gap: 16px; margin: 0 0 20px; }
.apx24sb .apx24sb-title { margin: 0 0 6px; font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--apx-navy); letter-spacing: .01em; }
.apx24sb .apx24sb-lead { margin: 0; color: var(--apx-muted); font-size: 15px; }
.apx24sb .apx24sb-lang { display: inline-flex; align-self: flex-start; padding: 4px; background: #fff; border: 1px solid var(--apx-line); border-radius: 999px; }
.apx24sb .apx24sb-lang__btn {
	appearance: none; margin: 0; border: 0; background: transparent; color: var(--apx-blue);
	font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; padding: 8px 16px; min-height: 40px; border-radius: 999px; cursor: pointer;
}
.apx24sb .apx24sb-lang__btn[aria-pressed="true"] { background: var(--apx-navy); color: #fff; }
.apx24sb .apx24sb-lang__btn:focus-visible { outline: none; box-shadow: var(--apx-focus); }

/* Layout: one column by default, summary in a sticky right column when the form is wide enough */
.apx24sb .apx24sb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.apx24sb .apx24sb-col-a, .apx24sb .apx24sb-col-b { display: grid; gap: 16px; min-width: 0; }
@container apx24sb (min-width: 860px) {
	.apx24sb .apx24sb-head { flex-direction: row; justify-content: space-between; align-items: flex-start; }
	.apx24sb .apx24sb-title { font-size: 32px; }
	.apx24sb .apx24sb-layout {
		grid-template-columns: minmax(0, 1fr) 360px;
		grid-template-areas: "a side" "b side";
		gap: 20px 24px;
		align-items: start;
	}
	.apx24sb .apx24sb-col-a { grid-area: a; }
	.apx24sb .apx24sb-col-b { grid-area: b; }
	.apx24sb .apx24sb-side { grid-area: side; position: sticky; top: 24px; align-self: start; }
}
@container apx24sb (min-width: 520px) {
	.apx24sb .apx24sb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
}
@media (min-width: 960px) {
	.apx24sb { padding: 32px 28px 48px; }
}

/* Cards */
.apx24sb .apx24sb-card { background: #fff; border: 1px solid var(--apx-line); border-radius: var(--apx-radius); padding: 20px 18px; }
@container apx24sb (min-width: 560px) { .apx24sb .apx24sb-card { padding: 28px 28px; } }
.apx24sb .apx24sb-step { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--apx-blue); }
.apx24sb .apx24sb-card__title { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 20px; line-height: 1.35; font-weight: 700; color: var(--apx-navy); }
.apx24sb .apx24sb-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--apx-blue); }

/* Fields */
.apx24sb .apx24sb-field { margin: 0 0 18px; min-width: 0; }
.apx24sb .apx24sb-fieldset { border: 0; padding: 0; }
.apx24sb .apx24sb-field > label, .apx24sb .apx24sb-fieldset > legend {
	display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0;
	font-size: 15px; font-weight: 600; color: var(--apx-navy);
}
.apx24sb .apx24sb-field > label .apx24sb-icon { width: 18px; height: 18px; }
.apx24sb .apx24sb-badge { font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 6px; background: #eef2f6; color: var(--apx-muted); }
.apx24sb .apx24sb-badge--req { background: var(--apx-navy); color: #fff; }
.apx24sb .apx24sb-input {
	display: block; width: 100%; min-height: 52px; margin: 0; padding: 12px 14px;
	font: inherit; font-size: 16px; /* 16px prevents iOS zoom */ color: var(--apx-text);
	background: #fff; border: 1.5px solid var(--apx-line); border-radius: 10px; box-shadow: none;
	appearance: none; -webkit-appearance: none;
}
.apx24sb textarea.apx24sb-input { min-height: 88px; resize: vertical; }
.apx24sb .apx24sb-input::placeholder { color: #9aa8b6; }
.apx24sb .apx24sb-input:focus { outline: none; border-color: var(--apx-blue); box-shadow: var(--apx-focus); }
.apx24sb .apx24sb-input[aria-invalid="true"] { border-color: var(--apx-error); }
.apx24sb .apx24sb-err { margin: 6px 0 0; font-size: 13px; color: var(--apx-error); }
.apx24sb .apx24sb-hint { margin: 4px 0 0; font-size: 13px; color: var(--apx-muted); }
.apx24sb .apx24sb-hint--center { text-align: center; margin-top: 10px; }

/* Stepper */
.apx24sb .apx24sb-stepper { display: flex; align-items: center; gap: 8px; }
.apx24sb .apx24sb-stepper__btn {
	appearance: none; margin: 0; width: 52px; height: 52px; flex: none; border: 1.5px solid var(--apx-line); border-radius: 10px;
	background: #fff; color: var(--apx-navy); font: inherit; font-size: 24px; line-height: 1; cursor: pointer;
}
.apx24sb .apx24sb-stepper__btn:focus-visible { outline: none; box-shadow: var(--apx-focus); }
.apx24sb .apx24sb-stepper__val { width: 80px; text-align: center; font-weight: 700; font-size: 18px; -moz-appearance: textfield; }
.apx24sb .apx24sb-stepper__val::-webkit-inner-spin-button, .apx24sb .apx24sb-stepper__val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.apx24sb .apx24sb-stepper__unit { color: var(--apx-muted); }

/* Chips (luggage type) */
.apx24sb .apx24sb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.apx24sb .apx24sb-chip { position: relative; cursor: pointer; margin: 0; }
.apx24sb .apx24sb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.apx24sb .apx24sb-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--apx-line); border-radius: 999px; background: #fff; font-size: 15px; }
.apx24sb .apx24sb-chip input:checked + span { border-color: var(--apx-blue); background: var(--apx-sky-soft); color: var(--apx-navy); font-weight: 600; }
.apx24sb .apx24sb-chip input:focus-visible + span { box-shadow: var(--apx-focus); }

/* Location options */
.apx24sb .apx24sb-options { display: grid; gap: 10px; }
@container apx24sb (min-width: 640px) { .apx24sb .apx24sb-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.apx24sb .apx24sb-option { position: relative; display: block; margin: 0; cursor: pointer; }
.apx24sb .apx24sb-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.apx24sb .apx24sb-option__body {
	display: flex; align-items: center; gap: 12px; height: 100%; min-height: 68px; padding: 14px 16px;
	border: 1.5px solid var(--apx-line); border-radius: 12px; background: #fff;
}
.apx24sb .apx24sb-option__text { display: flex; flex-direction: column; line-height: 1.35; }
.apx24sb .apx24sb-option__text strong { color: var(--apx-navy); font-size: 16px; }
.apx24sb .apx24sb-option__text small { color: var(--apx-muted); font-size: 13px; }
.apx24sb .apx24sb-option input:checked + .apx24sb-option__body { border-color: var(--apx-blue); background: var(--apx-sky-soft); box-shadow: inset 0 0 0 1px var(--apx-blue); }
.apx24sb .apx24sb-option input:focus-visible + .apx24sb-option__body { box-shadow: var(--apx-focus); }

.apx24sb .apx24sb-counter { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; background: var(--apx-sky-soft); border-left: 4px solid var(--apx-sky); }
.apx24sb .apx24sb-counter__title { margin: 0 0 4px; font-weight: 700; color: var(--apx-navy); font-size: 14px; }
.apx24sb .apx24sb-counter__body { margin: 0; font-size: 14px; white-space: pre-line; }
.apx24sb .apx24sb-other { padding: 16px 0 0; border-top: 1px dashed var(--apx-line); margin-bottom: 4px; }

/* Summary */
.apx24sb .apx24sb-summary { border-top: 4px solid var(--apx-navy); }
.apx24sb .apx24sb-summary__empty { margin: 0 0 16px; color: var(--apx-muted); }
.apx24sb .apx24sb-sum { margin: 0 0 16px; }
.apx24sb .apx24sb-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.apx24sb .apx24sb-sum dt { margin: 0; color: var(--apx-muted); font-size: 14px; font-weight: 400; }
.apx24sb .apx24sb-sum dd { margin: 0; text-align: right; font-weight: 600; color: var(--apx-navy); }
.apx24sb .apx24sb-sum dd small { display: block; font-weight: 400; font-size: 12px; color: var(--apx-muted); }
.apx24sb .apx24sb-total { padding: 16px; margin: 0 0 14px; border-radius: 12px; background: var(--apx-navy); color: #fff; }
.apx24sb .apx24sb-total__label { display: block; font-size: 13px; letter-spacing: .04em; opacity: .85; }
.apx24sb .apx24sb-total__value { display: block; font-size: 32px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.apx24sb .apx24sb-total__value small { font-size: 13px; font-weight: 400; margin-left: 6px; opacity: .85; }
.apx24sb .apx24sb-total__note { margin: 8px 0 0; font-size: 13px; color: #cfe6f6; }
.apx24sb .apx24sb-note { margin: 0 0 6px; font-size: 13px; color: var(--apx-text); }
.apx24sb .apx24sb-note--sub { color: var(--apx-muted); }
.apx24sb .apx24sb-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; margin: 16px 0 0; padding: 0; }
.apx24sb .apx24sb-plans li { margin: 0; padding: 8px 6px; text-align: center; border: 1px solid var(--apx-line); border-radius: 8px; font-size: 12px; color: var(--apx-muted); }
.apx24sb .apx24sb-plans li > span { display: block; }
.apx24sb .apx24sb-plans li strong { display: block; font-size: 13px; color: var(--apx-navy); }
.apx24sb .apx24sb-plans .apx24sb-plans__rate { color: var(--apx-navy); font-weight: 600; }
.apx24sb .apx24sb-plans li.is-active { border-color: var(--apx-blue); background: var(--apx-sky-soft); }

/* Agreement checkboxes */
.apx24sb .apx24sb-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 400 !important; color: var(--apx-text) !important; }
.apx24sb .apx24sb-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--apx-blue); }
.apx24sb .apx24sb-check a { color: var(--apx-blue); text-decoration: underline; }
.apx24sb .apx24sb-check .apx24sb-badge { margin-left: 6px; vertical-align: middle; }

/* Submit */
.apx24sb .apx24sb-submit {
	appearance: none; display: block; width: 100%; min-height: 58px; margin: 8px 0 0; padding: 14px 20px;
	border: 0; border-radius: 12px; background: var(--apx-blue); color: #fff;
	font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}
.apx24sb .apx24sb-submit:hover { background: var(--apx-navy); }
.apx24sb .apx24sb-submit:focus-visible { outline: none; box-shadow: var(--apx-focus); }
.apx24sb .apx24sb-submit[disabled] { opacity: .6; cursor: progress; }

.apx24sb .apx24sb-alert { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #fdecea; color: var(--apx-error); font-size: 14px; }
.apx24sb .apx24sb-alert--warn { background: var(--apx-warn-bg); color: #7a4b00; }

/* Done */
.apx24sb .apx24sb-done { text-align: center; max-width: 640px; margin: 0 auto; outline: none; }
.apx24sb .apx24sb-done__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--apx-sky-soft); margin-bottom: 12px; }
.apx24sb .apx24sb-done__icon .apx24sb-icon { width: 30px; height: 30px; stroke-width: 2.4; }
.apx24sb .apx24sb-done__title { justify-content: center; }
.apx24sb .apx24sb-done__ref { font-weight: 700; color: var(--apx-navy); }

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