/* =====================================================================
   Contact / Book Now page — Feature 350, Story US-001.

   Two-column layout: contact information (map, hours, phone) alongside the
   appointment booking form. Uses the theme's shared --mytheme-* design
   tokens (defined at :root in responsive.css) with safe fallbacks so it
   stays consistent with the rest of the site.
   ===================================================================== */

.cbnp {
	color: var(--mytheme-ink, #16202c);
	background: var(--mytheme-bg, #f5f7fa);
}

.cbnp-container {
	width: 100%;
	max-width: var(--mytheme-maxw, 1100px);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---- Hero -------------------------------------------------------- */
.cbnp-hero {
	position: relative;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	color: #fff;
	background:
		linear-gradient(135deg, rgba(16, 32, 44, 0.92), rgba(167, 29, 21, 0.88)),
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 60%);
	background-color: var(--color-navy-deep, #141824);
	text-align: center;
}

.cbnp-hero__eyebrow {
	margin: 0 0 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.82);
}

.cbnp-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.cbnp-hero__lead {
	margin: 0 auto;
	max-width: 44ch;
	font-size: clamp(1rem, 0.96rem + 0.3vw, 1.1875rem);
	color: rgba(255, 255, 255, 0.9);
}

.cbnp-hero__call {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.75rem;
	padding: 0.75rem 1.5rem;
	min-height: var(--mytheme-touch, 44px);
	border-radius: var(--mytheme-radius, 12px);
	background: #fff;
	color: var(--mytheme-accent-dark, #a71d15);
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--mytheme-shadow, 0 6px 20px rgba(16, 32, 44, 0.08));
	transition: transform var(--mytheme-duration, 220ms) var(--mytheme-ease, ease),
		box-shadow var(--mytheme-duration, 220ms) var(--mytheme-ease, ease);
}

.cbnp-hero__call:hover {
	transform: translateY(-2px);
	box-shadow: var(--mytheme-shadow-lg, 0 16px 40px rgba(16, 32, 44, 0.14));
}

.cbnp-hero__call-icon {
	font-size: 1.5rem;
	line-height: 1;
}

.cbnp-hero__call-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.2;
}

.cbnp-hero__call-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--mytheme-muted, #5a6675);
}

.cbnp-hero__call-number {
	font-size: 1.25rem;
}

/* ---- Layout ------------------------------------------------------ */
.cbnp-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
	.cbnp-layout {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.cbnp-section-title {
	margin: 0 0 1rem;
	font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
	letter-spacing: -0.01em;
}

.cbnp-info,
.cbnp-booking {
	background: var(--mytheme-surface, #fff);
	border: 1px solid var(--mytheme-border, #e3e8ef);
	border-radius: var(--mytheme-radius, 12px);
	box-shadow: var(--mytheme-shadow, 0 6px 20px rgba(16, 32, 44, 0.08));
	padding: clamp(1.25rem, 3vw, 2rem);
}

/* ---- Map --------------------------------------------------------- */
.cbnp-map {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	margin-bottom: 1.5rem;
	border-radius: var(--mytheme-radius-sm, 8px);
	overflow: hidden;
	border: 1px solid var(--mytheme-border, #e3e8ef);
	background: var(--mytheme-bg, #f5f7fa);
}

.cbnp-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---- Contact details -------------------------------------------- */
.cbnp-details {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.cbnp-detail {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
}

.cbnp-detail__icon {
	flex: 0 0 auto;
	font-size: 1.25rem;
	line-height: 1.4;
	color: var(--mytheme-accent, #c8281e);
}

.cbnp-detail__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.cbnp-detail__label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--mytheme-muted, #5a6675);
}

.cbnp-detail__value {
	font-size: 1.0625rem;
	color: var(--mytheme-ink, #16202c);
}

.cbnp-detail__value--link {
	color: var(--mytheme-accent-dark, #a71d15);
	text-decoration: none;
	font-weight: 600;
}

.cbnp-detail__value--link:hover {
	text-decoration: underline;
}

.cbnp-detail__link {
	margin-top: 0.15rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--mytheme-accent, #c8281e);
	text-decoration: none;
}

.cbnp-detail__link:hover {
	text-decoration: underline;
}

/* ---- Hours ------------------------------------------------------- */
.cbnp-hours {
	border-top: 1px solid var(--mytheme-border, #e3e8ef);
	padding-top: 1.5rem;
}

.cbnp-hours__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}

.cbnp-hours__title {
	margin: 0;
	font-size: 1.1875rem;
}

.cbnp-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.75rem;
	border-radius: var(--mytheme-radius-full, 999px);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cbnp-badge__dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: currentColor;
}

.cbnp-badge--open {
	color: #1b7a3d;
	background: rgba(27, 122, 61, 0.12);
}

.cbnp-badge--open .cbnp-badge__dot {
	animation: cbnp-pulse 2s var(--mytheme-ease, ease) infinite;
}

.cbnp-badge--closed {
	color: var(--mytheme-accent-dark, #a71d15);
	background: rgba(167, 29, 21, 0.1);
}

@keyframes cbnp-pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.45;
		transform: scale(0.7);
	}
}

.cbnp-hours__next {
	margin: 0 0 0.85rem;
	font-size: 0.9375rem;
	color: var(--mytheme-muted, #5a6675);
}

.cbnp-hours__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9875rem;
}

.cbnp-hours__row + .cbnp-hours__row th,
.cbnp-hours__row + .cbnp-hours__row td {
	border-top: 1px solid var(--mytheme-border, #e3e8ef);
}

.cbnp-hours__day,
.cbnp-hours__time {
	padding: 0.55rem 0;
	text-align: left;
	font-weight: 500;
	vertical-align: middle;
}

.cbnp-hours__time {
	text-align: right;
	color: var(--mytheme-ink, #16202c);
}

.cbnp-hours__time.is-closed {
	color: var(--mytheme-muted, #5a6675);
}

.cbnp-hours__row.is-today th,
.cbnp-hours__row.is-today td {
	font-weight: 700;
	color: var(--mytheme-accent-dark, #a71d15);
}

.cbnp-hours__today-tag {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.1rem 0.45rem;
	border-radius: var(--mytheme-radius-full, 999px);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: var(--mytheme-accent, #c8281e);
}

/* ---- Booking form ------------------------------------------------ */
.cbnp-booking__lead {
	margin: 0 0 1.5rem;
	color: var(--mytheme-muted, #5a6675);
}

.cbnp-form__status {
	margin-bottom: 1.25rem;
	padding: 0.85rem 1rem;
	border-radius: var(--mytheme-radius-sm, 8px);
	font-weight: 600;
	border: 1px solid transparent;
}

.cbnp-form__status.is-success {
	color: #1b7a3d;
	background: rgba(27, 122, 61, 0.1);
	border-color: rgba(27, 122, 61, 0.3);
}

.cbnp-form__status.is-error {
	color: var(--mytheme-accent-dark, #a71d15);
	background: rgba(167, 29, 21, 0.08);
	border-color: rgba(167, 29, 21, 0.3);
}

.cbnp-field {
	margin-bottom: 1.1rem;
}

.cbnp-field-row {
	display: grid;
	gap: 1.1rem;
	margin-bottom: 0;
}

@media (min-width: 520px) {
	.cbnp-field-row {
		grid-template-columns: 1fr 1fr;
	}
}

.cbnp-field-row .cbnp-field {
	margin-bottom: 1.1rem;
}

.cbnp-field__label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--mytheme-ink, #16202c);
}

.cbnp-field__req {
	color: var(--mytheme-accent, #c8281e);
}

.cbnp-field__input {
	width: 100%;
	min-height: var(--mytheme-touch, 44px);
	padding: 0.65rem 0.85rem;
	font-size: 1rem;
	font-family: inherit;
	color: var(--mytheme-ink, #16202c);
	background: var(--mytheme-surface, #fff);
	border: 1px solid var(--mytheme-border, #e3e8ef);
	border-radius: var(--mytheme-radius-sm, 8px);
	transition: border-color var(--mytheme-duration, 220ms) var(--mytheme-ease, ease),
		box-shadow var(--mytheme-duration, 220ms) var(--mytheme-ease, ease);
}

.cbnp-field__input:focus {
	outline: none;
	border-color: var(--mytheme-accent, #c8281e);
	box-shadow: 0 0 0 3px rgba(200, 40, 30, 0.18);
}

.cbnp-field__textarea {
	resize: vertical;
	min-height: 6rem;
}

.cbnp-field__select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6675' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}

.cbnp-field__hint {
	margin: -0.35rem 0 1.1rem;
	font-size: 0.85rem;
	color: var(--mytheme-muted, #5a6675);
}

.cbnp-field__error {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--mytheme-accent-dark, #a71d15);
}

.cbnp-field.is-invalid .cbnp-field__input {
	border-color: var(--mytheme-accent, #c8281e);
}

.cbnp-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--mytheme-touch, 44px);
	margin-top: 0.5rem;
	padding: 0.85rem 1.5rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: #fff;
	background: var(--mytheme-accent, #c8281e);
	border: none;
	border-radius: var(--mytheme-radius-sm, 8px);
	cursor: pointer;
	transition: background-color var(--mytheme-duration, 220ms) var(--mytheme-ease, ease),
		transform var(--mytheme-duration, 220ms) var(--mytheme-ease, ease);
}

.cbnp-submit:hover {
	background: var(--mytheme-accent-dark, #a71d15);
	transform: translateY(-1px);
}

.cbnp-submit:disabled {
	opacity: 0.65;
	cursor: progress;
	transform: none;
}

.cbnp-form__fallback {
	margin: 1.1rem 0 0;
	text-align: center;
	font-size: 0.9375rem;
	color: var(--mytheme-muted, #5a6675);
}

.cbnp-form__fallback a {
	color: var(--mytheme-accent-dark, #a71d15);
	font-weight: 700;
	text-decoration: none;
}

.cbnp-form__fallback a:hover {
	text-decoration: underline;
}

/* ---- Focus visibility & motion ----------------------------------- */
.cbnp a:focus-visible,
.cbnp button:focus-visible,
.cbnp .cbnp-field__input:focus-visible {
	outline: 3px solid var(--mytheme-accent, #c8281e);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.cbnp *,
	.cbnp *::before,
	.cbnp *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
