/* ==========================================================================
   Book a Lesson Page
   Reuses global tokens/classes from style.css (--navy, --green, --green-bright,
   --gray-text, --white, .container, .btn, bg-gray, anim-fade-up, etc.)
   ========================================================================== */

/* ==========================================================================
   1. HERO (MATCHES PROGRAMS PAGE LAYOUT)
   ========================================================================== */

.bl-hero-full {
    min-height: 80vh;
    background-color: var(--navy);
}



/* Stretch container to full height */
.bl-hero-full .hero-container {
    align-items: stretch !important;
    padding-bottom: 40px !important; /* Floor padding */
}

/* Turn content into a vertical column */
.bl-hero-full .hero-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* Keeps the headings perfectly centered */
    height: 100% !important;
}

/* The Magic Spring: Pushes the Quick Jump bar to the floor */
.bl-hero-full .hero-quick-jump {
    margin-top: 40px !important; /* Forces it to the bottom */
    margin-bottom: 0 !important;
    margin-left: auto !important; /* Keeps it horizontally centered */
    margin-right: auto !important;
}

@media (max-width: 768px) {
    .bl-hero-full {
        min-height: 60vh;
    }
    .bl-hero-full .hero-container {
        padding-bottom: 20px !important;
    }
}

/* Shared section rhythm */
.bl-section {
	padding: 80px 0;
}

.bl-section-title {
	text-align: center;
	font-size: clamp(22px, 3.5vw, 30px);
	letter-spacing: 1px;
	margin-bottom: 40px;
}

/* ---------------------------------------------------------------
   2. BENEFITS (COLORFUL NAVY UPGRADE)
   --------------------------------------------------------------- */
.bl-benefits-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}
/* Subtle pattern overlay to make the navy background premium */
.bl-benefits-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.bl-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}
.bl-benefit {
    background: var(--white);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-bottom: 5px solid var(--green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bl-benefit:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
.bl-benefit-icon {
    width: 65px;
    height: 65px;
    background: rgba(103, 155, 48, 0.15);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.bl-benefit:hover .bl-benefit-icon {
    transform: scale(1.1);
    background: var(--green);
    color: var(--white);
}
.bl-benefit-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}
.bl-benefit h3 {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bl-benefit p {
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.5;
    margin: 0;
}

/* ---------------------------------------------------------------
   3. BOOKING FORM (VIBRANT GREEN DOT-GRID)
   --------------------------------------------------------------- */
.bl-form-section {
    background-color: #F4F9F0; /* Replaces the boring gray with fresh pale green */
    background-image: radial-gradient(rgba(103, 155, 48, 0.08) 2px, transparent 2px);
    background-size: 30px 30px;
    position: relative;
}
.bl-form-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 0 25px 60px rgba(11, 32, 70, 0.08);
    border-top: 8px solid var(--green); /* Heavy colorful accent */
    position: relative;
    z-index: 2;
}
.bl-card-header {
    text-align: center;
    margin-bottom: 35px;
}
.bl-card-header .bl-section-title {
    color: var(--navy);
    margin-bottom: 10px;
}
.bl-card-header p {
    font-size: 1.05rem;
    color: var(--gray-text);
}

/* Responsive updates for the heavily padded card */
@media (max-width: 768px) {
    .bl-form-card {
        padding: 40px 25px;
    }
}

.bl-alert {
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 14px;
}

.bl-alert--success {
	background: rgba(46, 125, 50, 0.1);
	color: var(--green, #2e7d32);
	border: 1px solid rgba(46, 125, 50, 0.3);
}

.bl-alert--error {
	background: rgba(200, 40, 40, 0.08);
	color: #b3261e;
	border: 1px solid rgba(200, 40, 40, 0.25);
}

.bl-alert--error ul {
	margin: 0;
	padding-left: 18px;
}

.bl-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.bl-form-group {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bl-form-group--full {
	grid-column: 1 / -1;
}

.bl-form-group label {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--navy, #0a1e2d);
}

.bl-form-group input,
.bl-form-group select,
.bl-form-group textarea {
	font: inherit;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	background: var(--white, #fff);
	color: var(--navy, #0a1e2d);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.bl-form-group select {
	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='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.bl-form-group input:focus,
.bl-form-group select:focus,
.bl-form-group textarea:focus {
	outline: none;
	border-color: var(--green, #2e7d32);
	box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.bl-form-group input.bl-invalid,
.bl-form-group select.bl-invalid,
.bl-form-group textarea.bl-invalid {
	border-color: #b3261e;
}

.bl-form-group input[type="date"],
.bl-form-group input[type="time"] {
	min-height: 46px;
}

.bl-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.bl-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	justify-content: center;
	margin-top: 8px;
}

/* 4. Testimonials */
.bl-testimonial-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	align-items: stretch; /* CRITICAL FIX: Forces all boxes in the row to be equal height */
}

.bl-testimonial {
	background: var(--white, #fff);
	border-radius: 16px;
	padding: 32px 28px 28px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.05);
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	height: 100%; /* CRITICAL FIX: Ensures the background box actually stretches */
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bl-testimonial:hover {
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
}

.bl-testimonial__avatar-wrap {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 16px;
	border: 3px solid var(--green, #2e7d32);
	flex-shrink: 0;
	box-shadow: 0 2px 10px rgba(46, 125, 50, 0.2);
}

.bl-testimonial__avatar {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: 100%;
}

.bl-testimonial__stars {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	margin-bottom: 14px;
}

.bl-testimonial__stars svg {
	width: 16px;
	height: 16px;
}

.bl-testimonial p {
	font-size: 15px;
	line-height: 1.65;
	color: var(--navy, #0a1e2d);
	margin-bottom: 20px;
	flex-grow: 1;
	font-style: italic;
}

.bl-testimonial footer {
	display: flex;
	background-color: white !important;
	color: var(--navy)!important;
	padding: 0px !important;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.bl-testimonial__name {
	font-size: 14px;
	font-weight: 700;
	color: var(--navy, #0a1e2d);
}

.bl-testimonial__location {
	font-size: 12px;
	color: var(--gray-text, #6b7280);
	letter-spacing: 0.3px;
}

/* 5. FAQ */
.bl-faq {
	max-width: 780px;
	margin: 0 auto;
}

.bl-faq-item {
	background: var(--white, #fff);
	border-radius: 10px;
	padding: 0;
	margin-bottom: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.bl-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--navy, #0a1e2d);
	list-style: none;
	padding: 18px 52px 18px 20px;
	position: relative;
	display: flex;
	align-items: center;
	min-height: 56px;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	line-height: 1.4;
}

.bl-faq-item summary::-webkit-details-marker {
	display: none;
}

.bl-faq-item summary::after {
	content: '+';
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	font-weight: 700;
	color: var(--green, #2e7d32);
	width: 28px;
	text-align: center;
}

.bl-faq-item[open] summary::after {
	content: '−';
}

.bl-faq-item p {
	margin: 0;
	padding: 0 20px 18px;
	color: var(--gray-text, #6b7280);
	font-size: 14px;
	line-height: 1.6;
}

/* 6. Global CTA */
.bl-global-cta {
	position: relative;
	padding: 90px 0;
	text-align: center;
	color: var(--white, #fff);
	overflow: hidden;
}

.bl-global-cta__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.bl-global-cta__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 30, 45, 0.8);
}

.bl-global-cta__content {
	position: relative;
	z-index: 1;
}

.bl-global-cta__content h2 {
	font-size: clamp(24px, 4vw, 40px);
	margin-bottom: 10px;
}

.bl-global-cta__tagline {
	font-size: clamp(14px, 2vw, 16px);
	opacity: 0.9;
	margin-bottom: 28px;
}

.bl-global-cta__actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* 992px — tablet landscape */
@media (max-width: 992px) {
	.bl-benefits-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bl-testimonial-grid {
		grid-template-columns: 1fr;
		max-width: 520px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* 768px — tablet portrait */
@media (max-width: 768px) {
	.bl-hero {
		padding: 100px 0 70px;
	}

	.bl-section {
		padding: 60px 0;
	}

	.bl-form-card {
		padding: 32px 24px;
	}

	.bl-global-cta {
		padding: 70px 0;
	}

	.bl-global-cta__actions {
		flex-direction: column;
		align-items: center;
	}

	.bl-global-cta__actions .btn {
		width: 100%;
		max-width: 320px;
		min-height: 48px;
		display: flex;
		justify-content: center;
	}
}

/* 640px — large phones */
@media (max-width: 640px) {
	.bl-hero {
		padding: 90px 0 60px;
	}

	.bl-hero__strip {
		gap: 12px 16px;
	}

	.bl-strip__item {
		font-size: 13px;
		white-space: normal;
		text-align: left;
	}

	.bl-hero__cta {
		display: block;
		width: 100%;
		text-align: center;
	}

	.bl-benefits-grid {
		grid-template-columns: 1fr;
	}

	.bl-form-card {
		padding: 24px 16px;
	}

	.bl-form-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.bl-form-group input[type="date"],
	.bl-form-group input[type="time"] {
		max-width: 100%;
	}

	.bl-testimonial {
		padding: 28px 20px 24px;
	}

	.bl-faq-item summary {
		padding: 16px 48px 16px 16px;
	}

	.bl-faq-item p {
		padding: 0 16px 16px;
	}

	.bl-global-cta {
		padding: 60px 0;
	}
}

/* 414px — iPhone Plus / Max */
@media (max-width: 414px) {
	.bl-hero {
		padding: 80px 0 56px;
	}

	.bl-hero__eyebrow {
		font-size: 12px;
		letter-spacing: 1.5px;
	}

	.bl-section-title {
		margin-bottom: 28px;
	}

	.bl-form-card {
		border-radius: 12px;
	}

	.bl-testimonial {
		border-radius: 12px;
	}
}

/* 375px — iPhone SE / standard small phones */
@media (max-width: 375px) {
	.bl-hero {
		padding: 72px 0 48px;
	}

	.bl-hero__strip {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.bl-section {
		padding: 48px 0;
	}

	.bl-form-card {
		padding: 20px 14px;
		border-radius: 10px;
	}

	.bl-testimonial__avatar-wrap {
		width: 60px;
		height: 60px;
	}

	.bl-global-cta__actions .btn {
		max-width: 100%;
	}
}

/* ============================================================
   PHASE 2 & 3: BOOKING PAGE UI POLISH
   ============================================================ */

/* --- Massive Senior-Friendly Calendar Inputs --- */
.bl-form-group input[type="date"],
.bl-form-group input[type="time"] {
    min-height: 56px !important;
    font-size: 1.05rem !important;
    padding: 14px 18px !important;
    cursor: pointer;
    border: 2px solid var(--gray-light) !important;
}
.bl-form-group input[type="date"]::-webkit-calendar-picker-indicator,
.bl-form-group input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    width: 24px;
    height: 24px;
    transition: opacity 0.2s;
}
.bl-form-group input[type="date"]:hover::-webkit-calendar-picker-indicator,
.bl-form-group input[type="time"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* --- Focus States for High Visibility --- */
.bl-form-group input:focus,
.bl-form-group select:focus,
.bl-form-group textarea:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 4px rgba(103, 155, 48, 0.2) !important;
}

/* --- Real-Time Reservation Summary Box --- */
.bl-summary-box {
    background-color: var(--navy);
    color: var(--white);
    padding: 24px 30px;
    border-radius: 12px;
    margin: 20px 0 24px;
    box-shadow: 0 10px 30px rgba(11, 32, 70, 0.15);
    animation: fadeIn 0.4s ease;
}
.bl-summary-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--green-bright);
    text-transform: uppercase;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}
.bl-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}
.bl-summary-list li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bl-summary-list li strong {
    font-size: 0.75rem;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bl-summary-list li span {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--white);
}

@media (max-width: 640px) {
    .bl-summary-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================================
   PREMIUM FORM REDESIGN (Soft-Fill & Vibrant Focus)
   ============================================================ */
/* 1. Remove the old dot background and let the pba-bg-pattern shine */
.bl-form-section {
    background-image: none !important; 
    background-color: transparent !important;
}

/* 2. Upgrade the Form Card Container */
.bl-form-card {
    border-top: 8px solid var(--accent-orange) !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 60px rgba(11, 32, 70, 0.08), 0 0 0 1px rgba(11, 32, 70, 0.03) !important;
}

/* 3. Modern Soft-Fill Inputs */
.bl-form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy) !important;
    margin-bottom: 8px !important;
}

.bl-form-group input,
.bl-form-group select,
.bl-form-group textarea {
    background: rgba(11, 32, 70, 0.03) !important; /* Soft gray-blue tint */
    border: 2px solid rgba(11, 32, 70, 0.05) !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    color: var(--navy) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 4. Glowing Focus State (Pops up and turns white with green border) */
.bl-form-group input:focus,
.bl-form-group select:focus,
.bl-form-group textarea:focus {
    background: var(--white) !important;
    border-color: var(--green) !important;
    box-shadow: 0 10px 25px rgba(103, 155, 48, 0.15) !important;
    transform: translateY(-2px); /* Physically lifts off the page */
}

/* 5. Vibrant Summary Box Upgrade */
.bl-summary-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%) !important;
    border-left: 6px solid var(--accent-orange) !important;
    border-radius: 16px !important;
    padding: 30px 35px !important;
}
.bl-summary-title {
    color: var(--accent-orange) !important;
    font-size: 1.4rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 15px !important;
}
.bl-summary-list li {
    font-size: 1.05rem !important;
}
.bl-summary-list li strong {
    color: var(--green-bright) !important;
}

/* 6. Massive Submit Button */
.bl-submit-btn {
    font-size: 1rem !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 20px rgba(103, 155, 48, 0.3) !important;
    transition: all 0.3s ease !important;
    margin-top: 15px !important;
}
.bl-submit-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(103, 155, 48, 0.4) !important;
}
