/**
 * Brothers Home Inspection - Booking Page Styles
 * Stripe Payment Integration
 */

:root {
	--brand-green: #4E612C;
	--brand-green-dark: #3d4a22;
	--brand-cream: #E8E0BF;
	--brand-cream-dark: #d4c9a3;
}

/* ----------------------------------------
   BOOKING CONTENT CONTAINER
   ---------------------------------------- */
.bhi-booking-content {
	max-width: 1140px;
	margin: 0 auto;
	padding: 40px 30px 80px;
}

/* ----------------------------------------
   PROGRESS STEPS
   ---------------------------------------- */
.bhi-booking-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 50px;
	padding: 0 20px;
}

.bhi-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	opacity: 0.4;
	transition: opacity 0.3s;
}

.bhi-progress-step.active,
.bhi-progress-step.completed {
	opacity: 1;
}

.bhi-progress-step .step-number {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e0e0e0;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Gotham", "Poppins", sans-serif;
	font-weight: 700;
	font-size: 16px;
	transition: all 0.3s;
}

.bhi-progress-step.active .step-number,
.bhi-progress-step.completed .step-number {
	background: var(--brand-green);
	color: #fff;
}

.bhi-progress-step.completed .step-number {
	background: var(--brand-green-dark);
}

.bhi-progress-step .step-label {
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bhi-progress-line {
	flex: 1;
	max-width: 80px;
	height: 3px;
	background: #e0e0e0;
	margin: 0 10px;
	margin-bottom: 20px;
}

/* ----------------------------------------
   BOOKING SECTIONS
   ---------------------------------------- */
.bhi-booking-section {
	animation: fadeIn 0.4s ease-out;
}

.bhi-booking-section.hidden {
	display: none;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.bhi-booking-section-title {
	font-family: "Gotham", "Poppins", sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: var(--brand-green);
	text-align: center;
	margin-bottom: 30px;
}

/* ----------------------------------------
   PACKAGE CARDS (matching pricing/packages page)
   ---------------------------------------- */
.bhi-package-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 30px;
	margin-top: 20px; /* Space for "Most Popular" badge */
}

.bhi-package-card {
	background: #fff;
	border-radius: 12px;
	padding: 35px 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	display: flex;
	flex-direction: column;
	cursor: pointer;
}

.bhi-package-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.bhi-package-card.selected {
	box-shadow: 0 8px 30px rgba(78, 97, 44, 0.25);
	background: rgba(78, 97, 44, 0.02);
}

.bhi-package-card.featured {
	border: 2px solid var(--brand-green);
}

.bhi-package-card.featured::before {
	content: "Most Popular";
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--brand-green);
	color: #fff;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	font-family: "Gotham", "Poppins", sans-serif;
}

.bhi-package-badge {
	display: inline-block;
	background: #E8E0BF;
	color: var(--brand-green-dark);
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 10px;
	font-family: "Gotham", "Poppins", sans-serif;
	align-self: flex-start;
}

.bhi-package-name {
	color: var(--brand-green);
	font-family: "Gotham", "Poppins", sans-serif;
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 5px;
}

.bhi-package-subtitle {
	color: #666;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	margin-bottom: 15px;
}

.bhi-package-price {
	color: var(--brand-green);
	font-family: "Gotham", "Poppins", sans-serif;
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 20px;
}

.bhi-package-divider {
	height: 1px;
	background: #eee;
	margin: 20px 0;
}

.bhi-package-includes {
	color: #666;
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-style: italic;
	margin-bottom: 15px;
}

.bhi-package-features {
	list-style: none;
	padding: 0;
	margin: 0 0 25px 0;
	flex-grow: 1;
}

.bhi-package-features li {
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	color: #333;
	padding: 8px 0;
	padding-left: 28px;
	position: relative;
}

.bhi-package-features li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--brand-green);
	font-weight: 700;
}

.bhi-package-note {
	font-family: "Poppins", sans-serif;
	font-size: 11px;
	color: #888;
	font-style: italic;
	margin-top: -10px;
	margin-bottom: 15px;
}

.bhi-package-report {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f9f9f9;
	padding: 12px 15px;
	border-radius: 8px;
	margin-bottom: 25px;
}

.bhi-package-report i {
	color: var(--brand-green);
}

.bhi-package-report span {
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	color: #555;
}

.bhi-package-select-btn {
	display: block;
	width: 100%;
	text-align: center;
	background: var(--brand-green);
	color: #fff;
	padding: 14px 28px;
	border-radius: 6px;
	font-family: "Gotham", "Poppins", sans-serif;
	font-weight: 600;
	font-size: 15px;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: auto;
}

.bhi-package-select-btn:hover {
	background: var(--brand-green-dark);
	transform: translateY(-2px);
}

.bhi-package-card.selected .bhi-package-select-btn {
	background: var(--brand-green-dark);
}

.bhi-package-card.selected .bhi-package-select-btn::after {
	content: " \2713";
}

/* ----------------------------------------
   SIZE OPTIONS
   ---------------------------------------- */
.bhi-size-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 600px;
	margin: 0 auto 30px;
}

.bhi-size-option {
	cursor: pointer;
}

.bhi-size-option input[type="radio"] {
	display: none;
}

.bhi-size-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 20px 25px;
	transition: all 0.2s;
}

.bhi-size-option:hover .bhi-size-card {
	border-color: var(--brand-green);
}

.bhi-size-option input[type="radio"]:checked + .bhi-size-card {
	border-color: var(--brand-green);
	background: rgba(78, 97, 44, 0.03);
	box-shadow: 0 3px 10px rgba(78, 97, 44, 0.15);
}

.bhi-size-card .size-range {
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #333;
}

.bhi-size-card .size-price {
	font-family: "Gotham", sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--brand-green);
}

.bhi-size-card.quote-option .size-price {
	font-size: 14px;
	color: #888;
	font-family: "Poppins", sans-serif;
	font-weight: 500;
}

/* ----------------------------------------
   BOOKING NAVIGATION
   ---------------------------------------- */
.bhi-booking-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #eee;
}

.bhi-btn-back,
.bhi-btn-next {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 8px;
	font-family: "Gotham", "Poppins", sans-serif;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.3s;
	border: none;
}

.bhi-btn-back {
	background: #f5f5f5;
	color: #666;
}

.bhi-btn-back:hover {
	background: #e8e8e8;
	color: #333;
}

.bhi-btn-next {
	background: var(--brand-green);
	color: #fff;
	margin-left: auto;
}

.bhi-btn-next:hover:not(:disabled) {
	background: var(--brand-green-dark);
	transform: translateY(-2px);
}

.bhi-btn-next:disabled {
	background: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

/* ----------------------------------------
   PRICE SUMMARY
   ---------------------------------------- */
.bhi-price-summary {
	background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
	border: 2px solid var(--brand-cream);
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 30px;
}

.bhi-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.bhi-summary-row:last-child {
	border-bottom: none;
}

.bhi-summary-row.total {
	padding-top: 15px;
	margin-top: 5px;
	border-top: 2px solid var(--brand-cream);
}

.bhi-summary-row .summary-label {
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	color: #666;
}

.bhi-summary-row .summary-value {
	font-family: "Gotham", "Poppins", sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #333;
}

.bhi-summary-row.total .summary-label {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.bhi-summary-row.total .summary-value {
	font-size: 24px;
	font-weight: 700;
	color: var(--brand-green);
}

/* ----------------------------------------
   BOOKING FORM
   ---------------------------------------- */
.bhi-booking-form {
	background: #fff;
}

.bhi-form-section {
	margin-bottom: 30px;
}

.bhi-form-section-title {
	font-family: "Gotham", "Poppins", sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--brand-green-dark);
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.bhi-form-section-title i {
	color: var(--brand-green);
}

.bhi-form-row {
	margin-bottom: 15px;
}

.bhi-form-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.bhi-form-row-3 {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 20px;
}

.bhi-form-group label {
	display: block;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #444;
	margin-bottom: 8px;
}

.bhi-form-group label .required {
	color: #e53935;
}

.bhi-form-group input,
.bhi-form-group select,
.bhi-form-group textarea {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	color: #333;
	transition: border-color 0.2s;
	background: #fff;
}

.bhi-form-group input:focus,
.bhi-form-group select:focus,
.bhi-form-group textarea:focus {
	outline: none;
	border-color: var(--brand-green);
}

.bhi-form-group input::placeholder,
.bhi-form-group textarea::placeholder {
	color: #aaa;
}

.bhi-form-group select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 20px;
	padding-right: 40px;
}

.bhi-form-group textarea {
	resize: vertical;
	min-height: 100px;
}

/* ----------------------------------------
   PAYMENT BUTTON
   ---------------------------------------- */
.bhi-btn-payment {
	width: 100%;
	padding: 18px 30px;
	background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-family: "Gotham", "Poppins", sans-serif;
	font-weight: 700;
	font-size: 18px;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.bhi-btn-payment:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(78, 97, 44, 0.3);
}

.bhi-btn-payment:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.bhi-btn-payment.loading {
	pointer-events: none;
	opacity: 0.8;
}

.bhi-payment-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 8px;
}

.bhi-payment-notice i {
	color: var(--brand-green);
	font-size: 20px;
	margin-top: 2px;
}

.bhi-payment-notice p {
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	color: #666;
	margin: 0;
	line-height: 1.5;
}

/* ----------------------------------------
   QUOTE SECTION
   ---------------------------------------- */
.bhi-quote-text {
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	color: #555;
	text-align: center;
	max-width: 600px;
	margin: 0 auto 30px;
	line-height: 1.7;
}

.bhi-quote-redirect {
	text-align: center;
	margin-bottom: 30px;
}

.bhi-btn-quote,
.bhi-btn-quote:link,
.bhi-btn-quote:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--brand-green) !important;
	color: #ffffff !important;
	padding: 16px 35px;
	border-radius: 8px;
	font-family: "Gotham", "Poppins", sans-serif;
	font-weight: 600;
	font-size: 16px !important;
	text-decoration: none !important;
	transition: all 0.3s;
	-webkit-text-fill-color: #ffffff !important;
}

.bhi-btn-quote:hover,
.bhi-btn-quote:active {
	background: var(--brand-green-dark) !important;
	transform: translateY(-2px);
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media screen and (max-width: 992px) {
	.bhi-package-cards {
		grid-template-columns: 1fr;
		max-width: 450px;
		margin: 0 auto 30px;
		padding-top: 20px; /* Space for "Most Popular" badge */
	}

	.bhi-package-card.featured {
		order: -1;
	}
}

@media screen and (max-width: 768px) {
	.bhi-booking-content {
		padding: 30px 15px 60px;
	}

	.bhi-booking-progress {
		gap: 0;
		padding: 0 10px;
	}

	.bhi-progress-step .step-number {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.bhi-progress-step .step-label {
		font-size: 10px;
	}

	.bhi-progress-line {
		max-width: 40px;
	}

	.bhi-booking-section-title {
		font-size: 20px;
	}

	.bhi-form-row-2,
	.bhi-form-row-3 {
		grid-template-columns: 1fr;
	}

	.bhi-booking-nav {
		flex-direction: column;
	}

	.bhi-btn-back,
	.bhi-btn-next {
		width: 100%;
		justify-content: center;
	}

	.bhi-btn-next {
		margin-left: 0;
		order: -1;
	}

	.bhi-size-card {
		padding: 15px 20px;
	}

	.bhi-size-card .size-range {
		font-size: 14px;
	}

	.bhi-size-card .size-price {
		font-size: 18px;
	}
}
