/**
 * BlueMed — strona Rejestracja
 *
 * Follows the same conventions as contact-page.css, pricing-page.css, etc.
 */

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.bluemed-reg-hero {
	position: relative;
	overflow: hidden;
	background: var(--bluemed-white, #ffffff);
	margin-top: 0;
}

.bluemed-reg-hero::before {
	content: "";
	position: absolute;
	right: -6%;
	top: -40%;
	width: min(44vw, 620px);
	height: min(44vw, 620px);
	border-radius: 50%;
	background: radial-gradient(
		ellipse at 40% 40%,
		var(--bm-sand-deep, #EAF0FA) 0%,
		var(--bluemed-sand, #F8F9FD) 60%,
		transparent 100%
	);
	pointer-events: none;
	z-index: 0;
}

.bluemed-reg-hero::after {
	content: "";
	position: absolute;
	left: -4%;
	bottom: -30%;
	width: min(22vw, 280px);
	height: min(22vw, 280px);
	border-radius: 50%;
	background: radial-gradient(
		ellipse,
		rgba(205, 216, 228, 0.18) 0%,
		transparent 70%
	);
	pointer-events: none;
	z-index: 0;
}

.bluemed-reg-hero__stage {
	display: grid;
	grid-template-columns: 54fr 46fr;
	align-items: center;
	gap: clamp(2.5rem, 5vw, 5.5rem);
	max-width: 1480px;
	margin-left: auto;
	margin-right: auto;
	padding: 70px clamp(1.5rem, 5vw, 3.5rem);
	position: relative;
	z-index: 1;
	box-sizing: border-box;
}

.bluemed-reg-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.bluemed-reg-hero__visual {
	position: relative;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.bluemed-reg-hero__photo {
	width: 100%;
	margin: 0 !important;
}

.bluemed-reg-hero__photo img {
	width: 100%;
	max-height: min(74vh, 700px);
	object-fit: cover;
	border-radius: 20px;
	display: block;
	box-shadow: var(--bm-shadow-hero, 0 40px 100px rgba(51, 52, 61, 0.08), 0 8px 32px rgba(21, 61, 138, 0.04));
}

/* Kicker — pill consistent with About / Service hero */
.bluemed-reg-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.72rem !important;
	letter-spacing: 0.3em !important;
	text-transform: uppercase !important;
	font-weight: 700 !important;
	color: var(--accent-primary, #153D8A) !important;
	border: 1px solid rgba(21, 61, 138, 0.2);
	border-radius: 999px;
	padding: 0.45rem 1rem;
	margin: 0 0 1.75rem !important;
	line-height: 1;
	width: fit-content;
}

/* Title */
.bluemed-reg-hero__title {
	font-size: clamp(2.05rem, 4.15vw, 3.5rem) !important;
	font-weight: 700 !important;
	line-height: 1.07 !important;
	letter-spacing: -0.034em !important;
	color: var(--bluemed-navy, #0f2042) !important;
	margin-bottom: clamp(1rem, 2vw, 1.35rem) !important;
	max-width: 14ch;
}

/* Lead */
.bluemed-reg-hero__lead {
	font-size: clamp(1rem, 1.5vw, 1.15rem) !important;
	line-height: 1.7 !important;
	margin-bottom: clamp(1.5rem, 3vw, 2rem) !important;
	max-width: 50ch;
}

/* CTA wrap */
.bluemed-reg-hero__cta-wrap {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0 !important;
	padding: 0 !important;
}

.bluemed-reg-hero__cta-note {
	margin: 0 !important;
	opacity: 0.7;
}

/* Hero buttons — canonical pill style, consistent with About / Service hero */
.bluemed-reg-hero__cta-primary .wp-block-button__link,
.bluemed-reg-hero__cta-primary a.wp-block-button__link {
	background-color: var(--bluemed-graphite, #153D8A) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 1rem 2.25rem !important;
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em !important;
	box-shadow: 0 16px 44px rgba(21, 61, 138, 0.22) !important;
	border: none !important;
	transition: transform 0.3s var(--bluemed-ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
	            box-shadow 0.3s var(--bluemed-ease-out, cubic-bezier(0.22, 1, 0.36, 1)) !important;
}

.bluemed-reg-hero__cta-primary .wp-block-button__link:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 24px 56px rgba(21, 61, 138, 0.28) !important;
}

.bluemed-reg-hero__cta-secondary .wp-block-button__link,
.bluemed-reg-hero__cta-secondary a.wp-block-button__link {
	border: 1.5px solid rgba(21, 61, 138, 0.22) !important;
	color: var(--bluemed-graphite, #153D8A) !important;
	background: transparent !important;
	border-radius: 999px !important;
	padding: 0.95rem 2rem !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em !important;
	transition: border-color 0.25s ease, color 0.25s ease,
	            transform 0.25s var(--bluemed-ease-out, cubic-bezier(0.22, 1, 0.36, 1)) !important;
}

.bluemed-reg-hero__cta-secondary .wp-block-button__link:hover {
	border-color: var(--bluemed-graphite, #153D8A) !important;
	background: var(--primary-50, #EEF3FC) !important;
	transform: translateY(-2px) !important;
}

/* ── Sekcja kroków ─────────────────────────────────────────────────────────── */
.bluemed-reg-steps-section {
	background: var(--bluemed-white, #ffffff);
}

.bluemed-step-card {
	height: 100%;
	box-sizing: border-box;
	position: relative;
}

.bluemed-step-card__num {
	font-size: clamp(2.5rem, 4vw, 3.5rem);
	font-weight: 800;
	line-height: 1;
	color: var(--bm-sand-deep, #EAF0FA);
	letter-spacing: -0.04em;
	margin-bottom: 0.25rem;
}

.bluemed-step-card .bluemed-lucide.bluemed-step-card__icon {
	width: 2.25rem;
	height: 2.25rem;
	color: var(--bluemed-oak, #1E3A8A);
	stroke-width: 1.6;
	margin-top: -0.25rem;
}

/* ── ZnanyLekarz sekcja ────────────────────────────────────────────────────── */
.bluemed-znany-section {
	background: var(--bluemed-sand, #F8F9FD);
}

.bluemed-znany-widget-card {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* Placeholder — big (clinic) */
.bluemed-znany-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
	background: var(--bluemed-sand, #F8F9FD);
	border: 2px dashed var(--border-light, #D1DDED);
	border-radius: 16px;
	text-align: center;
}

.bluemed-znany-placeholder > svg {
	color: var(--bluemed-oak, #1E3A8A);
	opacity: 0.5;
}

.bluemed-znany-placeholder__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--bluemed-navy, #0f2042);
	margin: 0;
}

.bluemed-znany-placeholder__text {
	font-size: 0.9rem;
	color: var(--bluemed-ash, #8694A8);
	line-height: 1.6;
	margin: 0;
}

.bluemed-znany-placeholder__link {
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--bluemed-oak, #1E3A8A);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
	transition: opacity 0.2s ease;
}

.bluemed-znany-placeholder__link:hover {
	opacity: 0.7;
}

/* Placeholder — small (per doctor) */
.bluemed-znany-placeholder--sm {
	padding: 1.25rem 1rem;
	gap: 0.5rem;
	margin-bottom: var(--wp--preset--spacing--50, 1.25rem);
}

.bluemed-znany-placeholder--sm .bluemed-znany-placeholder__text {
	font-size: 0.8rem;
}

/* ── Sekcja lekarzy ────────────────────────────────────────────────────────── */
.bluemed-reg-doctors-section {
	background: var(--bluemed-white, #ffffff);
}

.bluemed-reg-doctor-card .wp-block-buttons {
	margin-top: auto;
}

/* ── Formularz — sekcja alternatywna ───────────────────────────────────────── */
.bluemed-reg-form-section {
	background: var(--bluemed-sand, #F8F9FD);
}

.bluemed-reg-trust-list {
	margin: 0 !important;
	padding: 0 !important;
}

.bluemed-reg-trust-items {
	list-style: none;
	margin: 0 0 1.5rem 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bluemed-reg-trust-items li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.95rem;
	color: var(--bluemed-graphite, #3A4A5C);
	line-height: 1.4;
}

.bluemed-reg-trust-items li i.bluemed-lucide {
	width: 1.2rem;
	height: 1.2rem;
	flex-shrink: 0;
	color: var(--bluemed-oak, #1E3A8A);
	stroke-width: 1.8;
}

.bluemed-reg-form-card {
	width: 100%;
}

/* ── FAQ sekcja ────────────────────────────────────────────────────────────── */
.bluemed-reg-faq-section {
	background: var(--bluemed-white, #ffffff);
}

.bluemed-faq-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(0.75rem, 1.5vw, 1rem);
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

.bluemed-faq-item {
	border: 1px solid var(--border-light, #E2E7F1);
	border-radius: 16px;
	overflow: hidden;
	background: var(--bluemed-white, #ffffff);
	transition: box-shadow 0.2s ease;
}

.bluemed-faq-item:hover {
	box-shadow: 0 4px 20px rgba(30, 58, 138, 0.07);
}

.bluemed-faq-item[open] {
	box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
}

.bluemed-faq-item__q {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1.35rem 1.5rem;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	color: var(--bluemed-navy, #0f2042);
	list-style: none;
	user-select: none;
	line-height: 1.4;
	transition: background 0.15s ease;
}

.bluemed-faq-item__q::-webkit-details-marker {
	display: none;
}

.bluemed-faq-item__q::marker {
	display: none;
}

.bluemed-faq-item__q:hover {
	background: var(--bluemed-sand, #F8F9FD);
}

.bluemed-faq-item[open] .bluemed-faq-item__q {
	background: var(--bluemed-sand, #F8F9FD);
	border-bottom: 1px solid var(--border-light, #E2E7F1);
}

.bluemed-faq-item__q i.lucide,
.bluemed-faq-item__q [data-lucide] {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	color: var(--bluemed-oak, #1E3A8A);
	stroke-width: 1.8;
	transition: transform 0.25s ease;
}

.bluemed-faq-item[open] .bluemed-faq-item__q i.lucide,
.bluemed-faq-item[open] .bluemed-faq-item__q [data-lucide] {
	transform: rotate(45deg);
}

.bluemed-faq-item__a {
	padding: 1.25rem 1.5rem;
}

.bluemed-faq-item__a p {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--bluemed-ash, #8694A8);
	margin: 0;
}

/* ── Explicit CSS Grid for step + doctor columns — 3→2→1 control ────────── */
.bluemed-reg-steps-section .wp-block-columns,
.bluemed-reg-doctors-section .wp-block-columns {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	align-items: stretch;
	gap: var(--wp--preset--spacing--60, 2rem) !important;
}

.bluemed-reg-steps-section .wp-block-column,
.bluemed-reg-doctors-section .wp-block-column {
	flex-basis: unset !important;
	min-width: 0;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.bluemed-reg-hero__stage {
		grid-template-columns: 1fr;
		padding: 50px clamp(1rem, 4vw, 2rem);
	}

	.bluemed-reg-hero__visual {
		order: -1;
	}

	.bluemed-reg-hero__photo img {
		max-height: 380px;
		border-radius: 14px;
	}

	.bluemed-reg-hero__title {
		max-width: 100%;
	}

	.bluemed-faq-grid {
		grid-template-columns: 1fr;
	}

	/* Steps + doctors: 3 → 2 columns at tablet */
	.bluemed-reg-steps-section .wp-block-columns,
	.bluemed-reg-doctors-section .wp-block-columns {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	/* Steps + doctors: 2 → 1 column on mobile */
	.bluemed-reg-steps-section .wp-block-columns,
	.bluemed-reg-doctors-section .wp-block-columns {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 640px) {
	.bluemed-reg-hero__stage {
		padding: 40px 1rem;
	}

	.bluemed-step-card__num {
		font-size: 2.25rem;
	}

	.bluemed-znany-placeholder {
		padding: 2rem 1.25rem;
	}
}

/* ── Phase 2C: Touch targets + overflow protection ──────────────────────── */

/* Booking placeholder CTA buttons — 44px minimum */
.bluemed-znany-placeholder .wp-block-button__link,
.bluemed-reg-doctor-card .wp-block-button__link {
	min-height: 44px;
}

/* Overflow protection for registration hero title */
.bluemed-reg-hero__title {
	overflow-wrap: break-word;
	word-break: break-word;
}
