/* ─── Amax Connect Booking Form ───────────────────────────────────── */
/* Layered on top of amax-connect-public.css — reuses --sx-* tokens.   */

.ac-booking {
	font-family: var(--ac-font, inherit);
	color: #0f172a;
	max-width: 1120px;
	margin: 0 auto;
}

.ac-booking__title {
	font-size: calc(var(--ac-heading-size, 20px) + 6px);
	font-weight: 700;
	margin: 0 0 24px;
	color: #0f172a;
}

/* ── Two-column grid ───────────────────────────────────────── */
.ac-booking__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 32px;
	align-items: start;
}

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

.ac-booking__fields {
	min-width: 0;
}

/* ── Step cards ────────────────────────────────────────────── */
.ac-booking__step {
	border: 1px solid #e5e7eb;
	border-radius: var(--ac-radius, 12px);
	padding: 24px 24px 20px;
	margin: 0 0 20px;
	background: #fff;
}

.ac-booking__step legend {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ac-booking__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: var(--ac-primary, #0066ff);
	color: #fff;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
}

/* ── Form rows ─────────────────────────────────────────────── */
.ac-booking__row {
	margin: 0 0 14px;
}

.ac-booking__row label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.ac-booking__row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 520px) {
	.ac-booking__row--split {
		grid-template-columns: 1fr;
	}
}

.ac-input {
	width: 100%;
	padding: 11px 14px;
	font-size: 15px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	color: inherit;
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
}

.ac-input:focus {
	outline: none;
	border-color: var(--ac-primary, #0066ff);
	box-shadow: 0 0 0 3px rgba(0,102,255,0.12);
}

select.ac-input {
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

/* Date inputs (move-in date) overflow their container on iOS Safari,
   which sizes them to intrinsic content and ignores width shrinking.
   Reset the native appearance and allow the box to shrink. */
input[type="date"].ac-input {
	-webkit-appearance: none;
	appearance: none;
	min-width: 0;
	max-width: 100%;
}
input[type="date"].ac-input::-webkit-date-and-time-value {
	text-align: left;
	margin: 0;
	min-width: 0;
}
input[type="date"].ac-input::-webkit-calendar-picker-indicator {
	margin-left: auto;
	flex-shrink: 0;
}

/* ── Protection / product cards (JS-rendered) ──────────────── */
.ac-booking__protection,
.ac-booking__products {
	display: grid;
	gap: 10px;
	margin: 0 0 16px;
}

.ac-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	background: #fff;
}

.ac-option:hover {
	border-color: var(--ac-primary, #0066ff);
}

.ac-option input {
	margin-top: 3px;
	accent-color: var(--ac-primary, #0066ff);
	flex-shrink: 0;
}

.ac-option__body {
	flex: 1;
	min-width: 0;
}

.ac-option__title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-weight: 600;
	font-size: 14px;
	color: #0f172a;
	margin: 0 0 2px;
}

.ac-option__price {
	font-weight: 700;
	color: var(--ac-primary, #0066ff);
	white-space: nowrap;
}

.ac-option__desc {
	font-size: 13px;
	color: #6b7280;
	margin: 0;
	line-height: 1.45;
}

.ac-option--selected {
	border-color: var(--ac-primary, #0066ff);
	background: color-mix(in srgb, var(--ac-primary, #0066ff) 5%, #fff);
}

.ac-booking__section-label {
	font-size: 11px;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 4px 0 8px;
}

/* ── Coupon + terms ────────────────────────────────────────── */
.ac-booking__coupon-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
}

.ac-booking__coupon-msg {
	margin-top: 6px;
	font-size: 13px;
	min-height: 18px;
}

.ac-booking__coupon-msg--ok  { color: #059669; }
.ac-booking__coupon-msg--err { color: #dc2626; }

.ac-btn--ghost {
	padding: 11px 20px;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #374151;
	border-radius: var(--ac-btn-radius, 8px);
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.ac-btn--ghost:hover {
	border-color: var(--ac-primary, #0066ff);
	color: var(--ac-primary, #0066ff);
}

.ac-booking__terms {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	color: #374151;
	margin: 8px 0 18px;
	cursor: pointer;
	line-height: 1.5;
}

.ac-booking__terms input {
	margin-top: 3px;
	accent-color: var(--ac-primary, #0066ff);
	flex-shrink: 0;
}

.ac-booking__terms a {
	color: var(--ac-primary, #0066ff);
	text-decoration: underline;
}

/* ── Submit button + error ─────────────────────────────────── */
.ac-booking__submit {
	width: 100%;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 700;
	border: none;
	border-radius: var(--ac-btn-radius, 8px);
	cursor: pointer;
	transition: transform .1s, box-shadow .1s, opacity .15s;
}

.ac-booking__submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.ac-booking__submit:disabled {
	opacity: 0.6;
	cursor: wait;
	transform: none;
	box-shadow: none;
}

.ac-booking__error {
	padding: 12px 14px;
	margin: 0 0 14px;
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
	border-radius: 8px;
	font-size: 14px;
}

.ac-booking__secure-note {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 12px;
	color: #6b7280;
	margin: 14px 0 0;
	justify-content: center;
}

.ac-booking__secure-note svg {
	flex-shrink: 0;
}

/* ── Summary (right column) ────────────────────────────────── */
.ac-booking__summary {
	position: sticky;
	top: 24px;
}

.ac-booking__summary-inner {
	border: 1px solid #e5e7eb;
	border-radius: var(--ac-radius, 12px);
	background: var(--ac-secondary, #f5f7fa);
	padding: 20px;
}

.ac-booking__summary-img {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	margin: 0 0 16px;
	aspect-ratio: 16/10;
}

.ac-booking__summary-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ac-dim-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	bottom: auto;         /* defensive: prevent top+bottom stretch */
	right: auto;          /* defensive: prevent full-width stretch */
	height: auto;         /* defensive: size to content, not container */
	width: auto;          /* defensive: size to content, not container */
	align-self: auto;     /* defensive: ignore flex align-items: stretch */
	background: rgba(15,23,42,0.85);
	color: #fff;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	line-height: 1.4;
	font-weight: 700;
	box-sizing: border-box;
	white-space: nowrap;
}

.ac-booking__summary-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #0f172a;
}

.ac-booking__summary-size {
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 18px;
}

.ac-booking__summary-lines {
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
	border-top: 1px dashed #d1d5db;
	padding-top: 14px;
}

.ac-booking__summary-line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	color: #374151;
	padding: 6px 0;
}

.ac-booking__summary-label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ac-booking__summary-value {
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
}

.ac-booking__summary-totals {
	border-top: 1px solid #d1d5db;
	padding-top: 14px;
}

.ac-booking__summary-row {
	display: flex;
	justify-content: space-between;
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	padding: 4px 0;
}

.ac-booking__summary-row strong {
	font-weight: 700;
	color: var(--ac-primary, #0066ff);
}

.ac-booking__summary-note {
	font-size: 11px;
	color: #6b7280;
	margin: 14px 0 0;
	line-height: 1.5;
}

/* ── Small-screen summary: collapses above form ────────────── */
@media (max-width: 900px) {
	.ac-booking__summary {
		position: static;
		order: -1;
		margin-bottom: 16px;
	}
}

/* ─── Sidebar: offers ──────────────────────────────────────── */
.ac-booking__sidebar-label {
	margin: 18px 0 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7280;
	padding-top: 14px;
	border-top: 1px dashed #d1d5db;
}

.ac-booking__offers {
	padding: 0;
	margin: 0;
}

/* ─── Hero offer card (the saving being applied NOW) ───────── */
.ac-offer-hero {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border-radius: 12px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	position: relative;
	overflow: hidden;
}

/* Subtle left-edge accent — reads as a "price tag" ribbon */
.ac-offer-hero::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #16a34a;
}

.ac-offer-hero--auto {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.ac-offer-hero--auto::before {
	background: #16a34a;
}

/* When no auto-apply, style as "claim this" — still exciting */
.ac-offer-hero:not(.ac-offer-hero--auto) {
	background: #fff7ed;
	border-color: #fed7aa;
}

.ac-offer-hero:not(.ac-offer-hero--auto)::before {
	background: #ea580c;
}

.ac-offer-hero__tag {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #16a34a;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ac-offer-hero:not(.ac-offer-hero--auto) .ac-offer-hero__tag {
	background: #ea580c;
}

.ac-offer-hero__body {
	flex: 1;
	min-width: 0;
}

.ac-offer-hero__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

.ac-offer-hero__name {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.ac-offer-hero__badge {
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
	flex-shrink: 0;
}

.ac-offer-hero__badge--auto {
	background: #16a34a;
	color: #fff;
}

.ac-offer-hero__badge--code {
	background: #0f172a;
	color: #fff;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	letter-spacing: 0.02em;
	font-size: 11px;
}

.ac-offer-hero__desc {
	font-size: 12px;
	color: #475569;
	margin: 0;
	line-height: 1.5;
}

/* ─── Compact "other offers" list ──────────────────────────── */
.ac-offers-more {
	margin: 12px 0 0;
	padding: 0;
}

.ac-offers-more__label {
	margin: 0 0 6px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #94a3b8;
}

.ac-offers-more__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ac-offers-more__list li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
}

.ac-offers-more__tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 18px;
	padding: 0 6px;
	font-size: 9px;
	font-weight: 700;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.ac-offers-more__tag--auto {
	background: #dcfce7;
	color: #166534;
}

.ac-offers-more__tag--code {
	background: #e2e8f0;
	color: #334155;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	text-transform: none;
	letter-spacing: 0;
}

/* ─── Sidebar: location contact ────────────────────────────── */
.ac-booking__location {
	padding: 0;
}

.ac-booking__contact-row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 8px;
	font-size: 13px;
	color: #374151;
	line-height: 1.5;
}

.ac-booking__contact-row:last-child {
	margin-bottom: 0;
}

.ac-booking__contact-row svg {
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--ac-primary, #0066ff);
}

.ac-booking__contact-row address {
	font-style: normal;
	color: #374151;
}

.ac-booking__contact-row a {
	color: #374151;
	text-decoration: none;
	border-bottom: 1px dotted #9ca3af;
}

.ac-booking__contact-row a:hover {
	color: var(--ac-primary, #0066ff);
	border-bottom-color: var(--ac-primary, #0066ff);
}

/* ─── "Unit sold out" alternatives modal ───────────────────── */
.ac-sold-out-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: sxFadeIn .15s ease-out;
}

@keyframes sxFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.ac-sold-out {
	position: relative;
	background: #fff;
	border-radius: 14px;
	max-width: 480px;
	width: 100%;
	padding: 32px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.25);
	max-height: 85vh;
	overflow-y: auto;
	animation: sxZoomIn .2s ease-out;
}

@keyframes sxZoomIn {
	from { transform: scale(.96); opacity: 0; }
	to   { transform: scale(1);   opacity: 1; }
}

.ac-sold-out__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
	padding: 4px 10px;
}

.ac-sold-out__close:hover { color: #374151; }

.ac-sold-out__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #fef3c7;
	color: #92400e;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
	margin: 0 auto 16px;
}

.ac-sold-out__title {
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	color: #0f172a;
	margin: 0 0 8px;
}

.ac-sold-out__lead {
	font-size: 14px;
	text-align: center;
	color: #4b5563;
	margin: 0 0 20px;
	line-height: 1.5;
}

.ac-sold-out__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}

.ac-sold-out__alt {
	width: 100%;
	text-align: left;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	font-family: inherit;
}

.ac-sold-out__alt:hover {
	border-color: var(--ac-primary, #0066ff);
	background: color-mix(in srgb, var(--ac-primary, #0066ff) 4%, #fff);
}

.ac-sold-out__alt-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 2px;
}

.ac-sold-out__alt strong {
	font-size: 15px;
	color: #0f172a;
	font-weight: 600;
}

.ac-sold-out__price {
	font-weight: 700;
	color: var(--ac-primary, #0066ff);
	font-size: 14px;
}

.ac-sold-out__size {
	display: inline-block;
	font-size: 12px;
	color: #6b7280;
	margin-right: 10px;
}

.ac-sold-out__avail {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: #166534;
	background: #dcfce7;
	padding: 2px 8px;
	border-radius: 10px;
}

/* ─── Thank-you page ────────────────────────────────────────── */
.ac-thankyou {
	font-family: var(--ac-font, inherit);
	max-width: 640px;
	margin: 0 auto;
	padding: 20px;
}

.ac-thankyou__inner {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--ac-radius, 12px);
	padding: 48px 40px;
	text-align: center;
	box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.ac-thankyou__check {
	width: 88px;
	height: 88px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #dcfce7;
	color: #15803d;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: sxPop .35s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes sxPop {
	0%   { transform: scale(.6); opacity: 0; }
	60%  { transform: scale(1.08); }
	100% { transform: scale(1); opacity: 1; }
}

.ac-thankyou__title {
	font-size: 28px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
	line-height: 1.25;
}

.ac-thankyou__lead {
	font-size: 16px;
	color: #4b5563;
	margin: 0 0 20px;
	line-height: 1.5;
}

.ac-thankyou__ref {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	background: var(--ac-secondary, #f5f7fa);
	border-radius: 8px;
	margin: 0 0 28px;
}

.ac-thankyou__ref-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7280;
}

.ac-thankyou__ref-code {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	background: transparent;
	padding: 0;
}

.ac-thankyou__steps {
	text-align: left;
	margin: 0 0 32px;
	padding: 24px;
	background: var(--ac-secondary, #f5f7fa);
	border-radius: 10px;
}

.ac-thankyou__steps-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7280;
	margin: 0 0 16px;
}

.ac-thankyou__steps-list {
	counter-reset: ac-step;
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 14px;
}

.ac-thankyou__steps-list li {
	counter-increment: ac-step;
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 14px;
	align-items: start;
	font-size: 14px;
	color: #374151;
	line-height: 1.5;
}

.ac-thankyou__steps-list li::before {
	content: counter(ac-step);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ac-primary, #0066ff);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ac-thankyou__steps-list li strong,
.ac-thankyou__steps-list .ac-thankyou__step-body strong {
	display: block;
	color: #0f172a;
	font-weight: 600;
	margin: 0 0 3px;
	font-size: 14px;
}

.ac-thankyou__steps-list li span,
.ac-thankyou__steps-list .ac-thankyou__step-body span {
	color: #4b5563;
	display: block;
}

.ac-thankyou__step-body {
	min-width: 0;
}

.ac-thankyou__actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.ac-thankyou__actions .ac-btn {
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--ac-btn-radius, 8px);
	text-decoration: none;
	display: inline-block;
	transition: transform .1s, box-shadow .1s;
}

.ac-thankyou__actions .ac-btn--primary {
	border: none;
	color: var(--ac-btn-text, #fff);
}

.ac-thankyou__actions .ac-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ac-thankyou__actions .ac-btn--ghost {
	background: #fff;
	color: #374151;
	border: 1px solid #d1d5db;
}

.ac-thankyou__actions .ac-btn--ghost:hover {
	border-color: var(--ac-primary, #0066ff);
	color: var(--ac-primary, #0066ff);
}

@media (max-width: 540px) {
	.ac-thankyou__inner { padding: 32px 20px; }
	.ac-thankyou__title { font-size: 22px; }
	.ac-thankyou__lead  { font-size: 14px; }
}

/* ─── Urgency badge in booking sidebar ─────────────────────── */
.ac-booking__summary-urgency {
	margin: 0 0 14px;
}

.ac-booking__summary-urgency .ac-urgency-badge {
	font-size: 12px;
	padding: 6px 12px;
}


/* Compact protection dropdown (used when there are many cover tiers) */
.ac-option-select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	color: #0f172a;
	font-family: inherit;
	line-height: 1.3;
	cursor: pointer;
}
.ac-option-select:focus {
	outline: none;
	border-color: var(--ac-primary, #0066ff);
	box-shadow: 0 0 0 3px rgba(0, 102, 255, .12);
}
