.bhcalc * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.bhcalc-wrap {
	width: 100%;
	margin: 0;
	font-family: "Lato", Helvetica, Arial, sans-serif;
	border-radius: 0.25rem;
}

.bhcalc-header {
	margin: 0;
	font-size: 1.5rem;
	background: #0182ab;
	color: #ffffff;
	padding: 1rem 1.5rem;
	border-radius: 0.25rem 0.25rem 0 0;
}

.bhcalc-debug-header {
	font-size: 1.25rem;
	padding: 1rem 1.5rem;
	color: red;
	margin: 0;
}

.bhcalc-debug-output {
	overflow-x: auto;
	font-size: 1rem;
	margin-top: 0.5rem;
	display: block;
	padding: 0.5rem;
	border: none;
	font-family: "Lato", Helvetica, Arial, sans-serif;
	background: #eeeeee;
	width: 100%;
	border-radius: 0.25rem;
	accent-color: #0182ab;
}

.bhcalc-contents {
	padding: 1.5rem;
}

.bhcalc-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.bhcalc-row {
	/* margin: 0.75rem 0; */
}

.bhcalc-row:has(.bhcalc-field[data-hidden="true"]) {
	display: none;
}

.bhcalc-row:nth-child(1) {
	margin: 0;
	/* grid-column: 1 / 3; */
}

.bhcalc-step .bhcalc-row:nth-child(1) {
	/* margin: 0.75rem 0; */
}

.bhcalc-row:nth-child(2) {
	/* grid-column: 1 / 3; */
}

.bhcalc-field {
	appearance: none;
	border: none;
}

.bhcalc-label {
	font-size: 1.1rem;
	font-weight: 700;
	display: block;
	font-family: "Lato", Helvetica, Arial, sans-serif;
}

.bhcalc-field-message {
	font-size: 0.9rem;
	margin: 0;
	font-family: "Lato", Helvetica, Arial, sans-serif;
}

.bhcalc-field-message:empty {
	display: none;
}

.bhcalc-field-error {
	margin: 0.5rem 0 0;
	color: #d91111;
	font-family: "Lato", Helvetica, Arial, sans-serif;
}

.bhcalc-field-error:empty {
	display: none;
}

.bhcalc-input {
	font-size: 1rem;
	margin-top: 0.25rem;
	display: block;
	padding: 0.5rem;
	border: none;
	font-family: "Lato", Helvetica, Arial, sans-serif;
	background: #eeeeee;
	width: 100%;
	border-radius: 0.25rem;
	accent-color: #0182ab;
}

.bhcalc-input:focus {
	outline: 2px solid #0182ab;
}

.bhcalc-input-select {
	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='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
	background-position: right 0.75rem center;
	background-repeat: no-repeat;
	background-size: 1rem 1rem;
	padding-right: 2rem;
	print-color-adjust: exact;
}

.bhcalc-input-select#sticker_type {
	font-weight: 700;
}

.bhcalc-input-number {
	appearance: none;
}

/* Chrome, Safari, Edge, Opera */
.bhcalc-input-number::-webkit-outer-spin-button,
.bhcalc-input-number::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Firefox */
.bhcalc-input-number {
	-moz-appearance: textfield;
}

.bhcalc-radio-list {
	font-size: 1rem;
	margin-top: 0.5rem;
	display: block;
	padding: 0.75rem 0.75rem;
	border: none;
	font-family: "Lato", Helvetica, Arial, sans-serif;
	background: #eeeeee;
	width: 100%;
	border-radius: 0.25rem;
}

.bhcalc-radio-item {
	display: flex;
	align-items: center;
	margin: 0.25rem 0 0;
	font-size: 1rem;
}

.bhcalc-radio-item:nth-child(1) {
	margin: 0;
}

.bhcalc-radio-button {
	display: block;
	accent-color: #0182ab;
	margin-right: 0.5rem;
	height: 1rem;
	width: 1rem;
}

.bhcalc-radio-row:nth-child(1) {
	margin: 0;
}

.bhcalc-tiles-list {
	margin-top: 0.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 440px) {
	.bhcalc-tiles-list {
		grid-template-columns: 1fr 1fr;
	}
}

.bhcalc-tiles-item {
	background: #eeeeee;
	border-radius: 0.25rem;
	padding: 1rem;
	position: relative;
	cursor: pointer;
	min-width: 0;
}

.bhcalc-tiles-item:hover {
	background: #f4f4f4;
}

.bhcalc-tiles-image {
	display: block;
	aspect-ratio: 3/2;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	cursor: pointer;
	margin: 0 0 0.5rem;
}

.bhcalc-tiles-label {
	display: block;
	margin: 0;
	text-align: center;
	cursor: pointer;
	font-family: "Lato", Helvetica, Arial, sans-serif;
}

.bhcalc-tiles-marker {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 0.25rem;
}

.bhcalc-tiles-radio:checked ~ .bhcalc-tiles-marker {
	outline: 2px solid #0182ab;
	outline-offset: 2px;
}

.bhcalc-error {
	font-size: 1.125rem;
	color: #d91111;
	font-family: "Lato", Helvetica, Arial, sans-serif;
	margin: 1.5rem 0;
}

.bhcalc-error:empty {
	display: none;
}

.bhcalc-message {
	font-size: 1.25rem;
	color: #0182ab;
	font-family: "Lato", Helvetica, Arial, sans-serif;
	margin-bottom: 1rem;
	line-height: 1.5;
}

.bhcalc-message a {
	font-size: 1.25rem;
	color: #0182ab;
	font-family: "Lato", Helvetica, Arial, sans-serif;
}

.bhcalc-price {
	font-size: 1.25rem;
	display: flex;
	align-items: end;
	gap: 0.25rem;
}

.bhcalc-tax {
	font-size: 1rem;
	color: #666;
	margin-bottom: 1px;
}

.bhcalc-indicator {
	font-size: 1rem;
	color: #666;
	margin-left: auto;
	margin-bottom: 1px;
}

.bhcalc-add-to-cart {
	display: block;
	width: 100%;
	font-size: 1rem;
	font-weight: 700;
	padding: 0.5rem 1.5rem;
	background: #0182ab !important;
	color: #ffffff;
	border: none;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 0.25rem;
	margin-top: 1.5rem;
	font-family: "Lato", Helvetica, Arial, sans-serif;
}

.bhcalc-add-to-cart:hover,
.bhcalc-add-to-cart:focus {
	background: #016f90 !important;
}

.bhcalc-add-to-cart:disabled {
	background: #67b6ce !important;
}

.bhcalc-cart-link {
	display: block;
	width: 100%;
	font-size: 1rem;
	font-weight: 700;
	padding: 0.5rem 1.5rem;
	background: #eeeeee !important;
	color: #000000;
	border: none;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 0.25rem;
	margin-top: 1.5rem;
	font-family: "Lato", Helvetica, Arial, sans-serif;
	text-align: center;
}

.bhcalc-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 999;
}

.bhcalc-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

.bhcalc-popup-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	border-radius: 0.5rem;
	padding: 1.5rem;
	width: 22rem;
	max-width: calc(100% - 3rem);
	box-shadow: 0 0 1rem rgba(0, 0, 0, 0.25);
}

.bhcalc-popup-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.bhcalc-popup-title {
	font-size: 1.1rem;
	font-weight: 700;
	font-family: "Lato", Helvetica, Arial, sans-serif;
}

.bhcalc-popup-close {
	height: 2rem;
	width: 2rem;
	padding: 0.25rem;
	color: #000000;
	margin-left: auto;
}

.bhcalc-popup-btn-continue {
	display: block;
	width: 100%;
	font-size: 1rem;
	font-weight: 700;
	padding: 0.5rem 1.5rem;
	background: #eeeeee !important;
	color: #000000;
	border: none;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 0.25rem;
	margin-top: 1.5rem;
	text-align: center;
	font-family: "Lato", Helvetica, Arial, sans-serif;
}

.bhcalc-popup-btn-continue:hover,
.bhcalc-popup-btn-continue:focus {
	background: #dddddd !important;
}

.bhcalc-popup-btn-cart {
	display: block;
	width: 100%;
	font-size: 1rem;
	font-weight: 700;
	padding: 0.5rem 1.5rem;
	background: #0182ab !important;
	color: #ffffff;
	border: none;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 0.25rem;
	margin-top: 0.5rem;
	text-align: center;
	font-family: "Lato", Helvetica, Arial, sans-serif;
}

.bhcalc-popup-btn-cart:hover,
.bhcalc-popup-btn-cart:focus {
	background: #016f90 !important;
}

.bhcalc_contact {
	display: none;
	margin-top: 2rem;
	border: 2px solid #272b5a;
	border-radius: 0.25rem;
	padding: 1.5rem;
}

.bhcalc_contact label {
	font-size: 1.1rem;
	font-weight: 700;
	display: block;
	font-family: "Lato", Helvetica, Arial, sans-serif;
}

.bhcalc_contact input[type="text"],
.bhcalc_contact input[type="email"],
.bhcalc_contact input[type="number"],
.bhcalc_contact input[type="tel"],
.bhcalc_contact textarea {
	font-family: "Lato", Helvetica, Arial, sans-serif;
	font-size: 1rem;
	margin: 0.5rem 0 1rem;
	display: block;
	padding: 0.5rem;
	border: none;
	font-family: "Lato", Helvetica, Arial, sans-serif;
	font-weight: 400;
	background: #eeeeee;
	width: 100%;
	border-radius: 0.25rem;
	accent-color: #0182ab;
}

.bhcalc_contact textarea {
	resize: vertical;
	height: 6rem;
}

.bhcalc_contact input[type="submit"] {
	font-family: "Lato", Helvetica, Arial, sans-serif;
	display: block;
	width: 100%;
	font-size: 1rem;
	font-weight: 700;
	padding: 0.5rem 1.5rem;
	background: #0182ab;
	color: #ffffff;
	border: none;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 0.25rem;
	margin-top: 1.5rem;
}

.header-link {
	display: block;
	width: fit-content;
	font-size: 1rem;
	font-weight: 700;
	padding: 0.5rem 1.5rem;
	background: #0182ab;
	color: #ffffff;
	border: none;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 0.25rem;
	margin-top: 0.5rem;
	margin-left: 0.5rem;
	text-decoration: none;
}

/* Multi-step Calculator Styles */

.bhcalc-progress-container {
	/* margin-bottom: 1rem; */
	padding: 1rem 0;
}

.bhcalc-progress-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	max-width: 100%;
	margin: 0 auto;
}

.bhcalc-progress-bar::before {
	content: "";
	position: absolute;
	top: 1.25rem;
	left: 0;
	right: 0;
	height: 2px;
	background-color: #e5e7eb;
	z-index: 1;
	transform: translateY(-50%);
}

.bhcalc-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 2;
	background: white;
	padding: 0 0.5rem;
	text-align: center;
}

.bhcalc-progress-number {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background-color: #e5e7eb;
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.25rem;
	transition: all 0.3s ease;
}

.bhcalc-progress-title {
	font-size: 0.75rem;
	color: #6b7280;
	font-weight: 500;
	transition: color 0.3s ease;
}

.bhcalc-progress-step.active .bhcalc-progress-number {
	background-color: #0182ab;
	color: white;
}

.bhcalc-progress-step.active .bhcalc-progress-title {
	color: #0182ab;
	font-weight: 600;
}

.bhcalc-progress-step.completed .bhcalc-progress-number {
	background-color: #0182ab;
	color: white;
}

.bhcalc-progress-step.completed .bhcalc-progress-title {
	color: #0182ab;
	font-weight: 600;
}

.bhcalc-step {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.bhcalc-step-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 0.5rem 0;
}

.bhcalc-step-description {
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

.bhcalc-step-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1rem;
}

.bhcalc-step-navigation .ml-auto {
	margin-left: auto;
}

.bhcalc-btn {
	font-family: "Lato", Helvetica, Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	padding: 0.5rem 1.5rem;
	border: none;
	border-radius: 0.25rem;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Lato", Helvetica, Arial, sans-serif;
	text-align: center;
}

.bhcalc-btn-primary {
	background-color: #0182ab;
	color: white;
}

.bhcalc-btn-primary:hover {
	background-color: #016a91;
}

.bhcalc-btn-secondary {
	background-color: #6b7280;
	color: white;
}

.bhcalc-btn-secondary:hover {
	background-color: #4b5563;
}

.bhcalc-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.bhcalc-review-details {
	padding: 1rem;
	background-color: #f9fafb;
	border-radius: 0.375rem;
	border: 1px solid #e5e7eb;
}

.bhcalc-review-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: #374151;
	margin: 0 0 0.75rem 0;
	font-family: "Lato", Helvetica, Arial, sans-serif;
}

.bhcalc-review-options {
	display: flex;
	flex-direction: column;
}

.bhcalc-review-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	line-height: 1.5;
}

.bhcalc-review-item:last-child {
	border-bottom: none;
}

.bhcalc-review-label {
	font-weight: 600;
	color: #374151;
}

.bhcalc-review-value {
	color: #6b7280;
	font-weight: 400;
}

.bhcalc-success-message {
	background-color: #f0f9ff;
	color: #0369a1;
	border: 1px solid #93c5fd;
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	text-align: center;
	font-weight: 500;
	margin-top: 1rem;
}

.bhcalc-success-message p {
	margin: 0;
	font-family: "Lato", Helvetica, Arial, sans-serif;
}

.bhcalc-price-section {
	/* margin-top: 1.5rem; */
}

.bhcalc .wpcf7-spinner {
	display: none;
}

/* Responsive adjustments for multi-step */
@media (max-width: 640px) {
	.bhcalc-progress-bar {
		flex-wrap: wrap;
		gap: 1rem;
	}

	.bhcalc-progress-bar::before {
		display: none;
	}

	.bhcalc-progress-step {
		min-width: auto;
		flex: 1;
	}

	.bhcalc-step-navigation {
		flex-direction: column;
		gap: 1rem;
	}

	.bhcalc-btn {
		width: 100%;
	}
}
