/* ==========================================================================
   Fizio6 — Booking form (frontend)
   ========================================================================== */

/* ---------- Standalone /zakazivanje page chrome ---------- */
body.f6-booking-page {
	margin: 0;
	background: #f7f7f7;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.f6-booking-page__topbar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding: 18px clamp(16px, 4vw, 40px);
	background: rgba(250, 246, 241, 0.92);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid rgba(30, 30, 30, 0.08);
	position: sticky;
	top: 0;
	z-index: 50;
}

.f6-booking-page__back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #154d60;
	background: transparent;
	border: 1.5px solid rgba(30, 30, 30, 0.18);
	border-radius: 999px;
	padding: 9px 18px 9px 14px;
	text-decoration: none;
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
	justify-self: start;
	line-height: 1;
}

.f6-booking-page__back svg { transition: transform 0.25s ease; }

.f6-booking-page__back:hover,
.f6-booking-page__back:focus {
	background: #154d60;
	border-color: #154d60;
	color: #f7f7f7;
	outline: none;
}

.f6-booking-page__back:hover svg,
.f6-booking-page__back:focus svg { transform: translateX(-3px); }

.f6-booking-page__brand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
}

.f6-booking-page__brand img {
	display: block;
	height: 48px;
	width: auto;
	max-width: 100%;
}

.f6-booking-page__topbar-spacer { display: block; }

.f6-booking-page__main {
	min-height: calc(100vh - 90px);
	min-height: calc(100dvh - 90px);
}

/* Hide any stray theme/page-title chrome inside the page content */
.f6-booking-page .entry-header,
.f6-booking-page .page-header,
.f6-booking-page .wp-block-post-title,
.f6-booking-page header.entry-header,
.f6-booking-page .breadcrumbs,
.f6-booking-page .breadcrumb {
	display: none !important;
}

/* Keep the booking form section flush with the topbar */
.f6-booking-page .f6-booking { padding-top: clamp(28px, 5vw, 64px); }

@media (max-width: 600px) {
	.f6-booking-page__topbar {
		grid-template-columns: auto 1fr;
		padding: 12px 14px;
	}
	.f6-booking-page__back {
		padding: 8px 14px 8px 12px;
		font-size: 11px;
		letter-spacing: 0.12em;
	}
	.f6-booking-page__back span { display: none; }
	.f6-booking-page__back svg { margin-right: 0; }
	.f6-booking-page__brand { justify-self: end; }
	.f6-booking-page__brand img { height: 40px; }
	.f6-booking-page__topbar-spacer { display: none; }
}

.f6-booking {
	--hcb-cream:        #f7f7f7;
	--hcb-cream-deep:   #eaf2f5;
	--hcb-nude:         #dbe9ee;
	--hcb-blush:        #b8d4dc;
	--hcb-rose:         #2a7591;
	--hcb-rose-deep:    #216179;
	--hcb-charcoal:     #1e1e1e;
	--hcb-charcoal-2:   #154d60;
	--hcb-mute:         #6b7d84;
	--hcb-line:         rgba(30, 30, 30, 0.10);
	--hcb-radius:       18px;
	--hcb-shadow:       0 30px 60px -30px rgba(30, 30, 30, 0.25);
	--hcb-font-script:  'Jost', 'Inter', system-ui, sans-serif;
	--hcb-font-body:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	background: linear-gradient(180deg, var(--hcb-cream) 0%, #fff 100%);
	padding: clamp(40px, 6vw, 80px) 16px;
	font-family: var(--hcb-font-body);
	color: var(--hcb-charcoal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

.f6-booking__container {
	max-width: 880px;
	margin: 0 auto;
}

/* ---------- Header ---------- */
.f6-booking__header {
	text-align: center;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.f6-booking__eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--hcb-rose-deep);
	margin-bottom: 12px;
}

.f6-booking__title {
	font-family: var(--hcb-font-body);
	font-weight: 300;
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.1;
	margin: 0 0 16px;
	color: var(--hcb-charcoal-2);
	letter-spacing: -0.01em;
}

.f6-booking__title em {
	font-family: var(--hcb-font-script);
	font-style: normal;
	font-weight: 400;
	color: var(--hcb-rose-deep);
	font-size: 1.45em;
	line-height: 0.85;
	display: inline-block;
	margin-top: 0.05em;
}

.f6-booking__lede {
	font-size: 15px;
	line-height: 1.7;
	color: var(--hcb-mute);
	margin: 0 auto;
	max-width: 56ch;
}

/* ---------- Alerts ---------- */
.f6-booking__alert {
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 24px;
	font-size: 14px;
	line-height: 1.6;
	border: 1px solid var(--hcb-line);
	border-left-width: 4px;
	background: #fff;
	box-shadow: 0 8px 20px -16px rgba(30, 30, 30, 0.15);
}

.f6-booking__alert--success { border-left-color: #6f8f6a; }
.f6-booking__alert--error   { border-left-color: #b8595a; }
.f6-booking__alert strong   { font-weight: 600; color: var(--hcb-charcoal-2); display: inline-block; margin-right: 6px; }

/* ---------- Form wrapper ---------- */
.f6-booking__form {
	background: #fff;
	border: 1px solid var(--hcb-line);
	border-radius: var(--hcb-radius);
	padding: clamp(24px, 4vw, 48px);
	box-shadow: var(--hcb-shadow);
}

.f6-booking__honeypot {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ---------- Fieldset / step ---------- */
.f6-booking__fieldset {
	border: none;
	padding: 0;
	margin: 0 0 clamp(28px, 3.5vw, 40px);
}

.f6-booking__fieldset:last-of-type { margin-bottom: 28px; }

.f6-booking__legend {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--hcb-font-body);
	font-weight: 600;
	font-size: clamp(16px, 1.8vw, 18px);
	color: var(--hcb-charcoal-2);
	margin: 0 0 20px;
	padding: 0;
	letter-spacing: -0.005em;
	width: 100%;
}

.f6-booking__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--hcb-charcoal-2);
	color: var(--hcb-cream);
	font-family: var(--hcb-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	flex-shrink: 0;
}

/* ---------- Service selector ---------- */
.f6-booking__service-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.f6-booking__service-card {
	position: relative;
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 20px 22px;
	border: 1.5px solid var(--hcb-line);
	border-radius: 14px;
	cursor: pointer;
	transition: all 0.25s ease;
	background: #fff;
}

.f6-booking__service-card:hover {
	border-color: var(--hcb-rose);
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -16px rgba(30, 30, 30, 0.2);
}

.f6-booking__service-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.f6-booking__service-card:has(input:checked),
.f6-booking__service-card.is-checked {
	border-color: var(--hcb-charcoal-2);
	background: linear-gradient(135deg, var(--hcb-cream-deep) 0%, #fff 100%);
}

.f6-booking__service-card input:focus-visible + .f6-booking__service-icon {
	outline: 2px solid var(--hcb-rose);
	outline-offset: 4px;
	border-radius: 50%;
}

.f6-booking__service-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--hcb-cream-deep);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--hcb-charcoal-2);
	flex-shrink: 0;
	transition: background 0.25s ease;
}

.f6-booking__service-card:has(input:checked) .f6-booking__service-icon,
.f6-booking__service-card.is-checked .f6-booking__service-icon {
	background: var(--hcb-charcoal-2);
	color: var(--hcb-cream);
}

.f6-booking__service-icon svg { width: 32px; height: 32px; }

.f6-booking__service-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.f6-booking__service-title {
	font-weight: 600;
	font-size: 16px;
	color: var(--hcb-charcoal-2);
	letter-spacing: -0.005em;
}

.f6-booking__service-desc {
	font-size: 13px;
	color: var(--hcb-mute);
	line-height: 1.5;
}

/* Subservice select — hidden until parent service is chosen */
.f6-booking__sub {
	display: none;
	margin-top: 18px;
	animation: hcb-fade 0.25s ease both;
}

.f6-booking__sub.is-visible { display: block; }

@keyframes hcb-fade {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Inputs ---------- */
.f6-booking__row {
	display: grid;
	gap: 18px;
	margin-bottom: 18px;
}

.f6-booking__row--two { grid-template-columns: 1fr 1fr; }

.f6-booking__field { margin-bottom: 18px; min-width: 0; }
.f6-booking__row .f6-booking__field { margin-bottom: 0; }

.f6-booking__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hcb-mute);
	margin-bottom: 8px;
}

.f6-booking__input,
.f6-booking__select,
.f6-booking__textarea {
	width: 100%;
	font-family: var(--hcb-font-body);
	font-size: 15px;
	color: var(--hcb-charcoal-2);
	background: #fff;
	border: 0;
	border-bottom: 1.5px solid var(--hcb-line);
	border-radius: 0;
	padding: 12px 0 10px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.f6-booking__select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'><path d='M1 1l6 7 6-7' stroke='%231f1b18' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 4px center;
	padding-right: 28px;
	cursor: pointer;
}

.f6-booking__textarea {
	border: 1.5px solid var(--hcb-line);
	border-radius: 12px;
	padding: 14px 16px;
	resize: vertical;
	min-height: 110px;
	line-height: 1.6;
}

.f6-booking__input:focus,
.f6-booking__select:focus,
.f6-booking__textarea:focus {
	outline: none;
	border-color: var(--hcb-rose);
	box-shadow: 0 1px 0 0 var(--hcb-rose);
}

.f6-booking__textarea:focus {
	box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.25);
}

.f6-booking__hint {
	font-size: 13px;
	color: var(--hcb-mute);
	line-height: 1.6;
	margin: 12px 0 0;
}

/* ---------- Consent checkbox ---------- */
.f6-booking__check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 13px;
	color: var(--hcb-charcoal-2);
	line-height: 1.5;
	cursor: pointer;
	margin-top: 8px;
}

.f6-booking__check input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 1.5px solid var(--hcb-line);
	border-radius: 5px;
	background: #fff;
	cursor: pointer;
	flex-shrink: 0;
	margin: 0;
	position: relative;
	transition: all 0.2s ease;
}

.f6-booking__check input[type="checkbox"]:hover { border-color: var(--hcb-rose); }

.f6-booking__check input[type="checkbox"]:checked {
	background: var(--hcb-charcoal-2);
	border-color: var(--hcb-charcoal-2);
}

.f6-booking__check input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border-right: 2px solid var(--hcb-cream);
	border-bottom: 2px solid var(--hcb-cream);
	transform: rotate(45deg);
}

.f6-booking__check input[type="checkbox"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.35);
}

/* ---------- Submit ---------- */
.f6-booking__actions { text-align: center; margin-top: 8px; }

.f6-booking__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-family: var(--hcb-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hcb-cream);
	background: var(--hcb-charcoal-2);
	border: 0;
	border-radius: 999px;
	padding: 18px 36px;
	cursor: pointer;
	box-shadow: 0 12px 30px -14px rgba(21, 77, 96, 0.55);
	transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
	min-width: 280px;
}

.f6-booking__submit svg { transition: transform 0.25s ease; }

.f6-booking__submit:hover,
.f6-booking__submit:focus {
	background: var(--hcb-rose-deep);
	transform: translateY(-2px);
	box-shadow: 0 16px 36px -12px rgba(33, 97, 121, 0.6);
	outline: none;
}

.f6-booking__submit:hover svg,
.f6-booking__submit:focus svg { transform: translateX(4px); }

.f6-booking__submit:active { transform: translateY(0); }

.f6-booking__submit[disabled] { opacity: 0.6; cursor: progress; }

.f6-booking__legal {
	font-size: 12px;
	color: var(--hcb-mute);
	margin: 16px auto 0;
	max-width: 48ch;
	line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.f6-booking { padding: 32px 12px; }
	.f6-booking__form { padding: 22px 18px; border-radius: 14px; }
	.f6-booking__service-grid { grid-template-columns: 1fr; }
	.f6-booking__row--two { grid-template-columns: 1fr; }
	.f6-booking__service-card { padding: 16px 18px; }
	.f6-booking__service-icon { width: 48px; height: 48px; }
	.f6-booking__service-icon svg { width: 26px; height: 26px; }
	.f6-booking__legend { font-size: 16px; gap: 10px; }
	.f6-booking__step { width: 28px; height: 28px; font-size: 12px; }
	.f6-booking__submit { width: 100%; min-width: 0; padding: 16px 24px; font-size: 12px; letter-spacing: 0.16em; }
	.f6-booking__input,
	.f6-booking__select { font-size: 16px; }   /* avoid iOS zoom on focus */
}

@media (max-width: 380px) {
	.f6-booking { padding: 24px 8px; }
	.f6-booking__form { padding: 18px 14px; }
}

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