/* ============================================================
   HealthyBano Brand Colors (logo se match kiya gaya)
   Navy Blue | Bright Blue | Cyan | Green (leaf)
   ============================================================ */
:root {
	--hba-navy: #0f2f5c;
	--hba-navy-dark: #0a2447;
	--hba-blue: #1976d2;
	--hba-cyan: #29b6f6;
	--hba-green: #4caf50;
	--hba-green-dark: #2e7d32;
	--hba-white: #ffffff;
	--hba-bg-light: #f4f9fd;
}

/* ============================================================
   FORM WRAPPER (Inline + Modal dono ke liye common)
   ============================================================ */
.hba-form-wrapper {
	max-width: 620px;
	width: 100%;
	margin: 0 auto;
	background: var(--hba-white);
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(15, 47, 92, 0.14);
	padding: 32px 30px;
	border-top: 5px solid var(--hba-blue);
	box-sizing: border-box;
}

.hba-inline-wrapper {
	margin: 30px auto;
}

.hba-form .hba-row {
	margin-bottom: 18px;
}

.hba-form .hba-row-half {
	display: flex;
	gap: 16px;
}

.hba-form .hba-row-half .hba-col {
	flex: 1;
	min-width: 0;
}

.hba-form label {
	display: block;
	font-weight: 600;
	color: var(--hba-navy);
	margin-bottom: 6px;
	font-size: 14px;
}

.hba-form .req {
	color: #e53935;
}

.hba-form input[type="text"],
.hba-form input[type="email"],
.hba-form input[type="tel"],
.hba-form input[type="number"],
.hba-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #d7e3ee;
	border-radius: 8px;
	font-size: 14px;
	color: #333;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background: var(--hba-bg-light);
}

.hba-form select {
	width: 100%;
	padding: 11px 40px 11px 14px;
	border: 1.5px solid #d7e3ee;
	border-radius: 8px;
	font-size: 14px;
	color: #333;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background-color: var(--hba-bg-light);
	/* Browser ka default arrow hata kar apna clean SVG arrow use kar rahe
	   hain, taaki Android/iOS/desktop sab par ek jaisa aur poora dikhe. */
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310305c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
}

.hba-form input:focus,
.hba-form select:focus,
.hba-form textarea:focus {
	outline: none;
	border-color: var(--hba-cyan);
	box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.18);
	background-color: #fff;
}

.hba-radio-group {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.hba-radio-option {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1.5px solid #d7e3ee;
	padding: 10px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
	color: var(--hba-navy);
	background: var(--hba-bg-light);
	flex: 1;
	min-width: 180px;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.hba-radio-option input[type="radio"] {
	accent-color: var(--hba-green);
	flex-shrink: 0;
}

.hba-radio-option .hba-option-icon {
	flex-shrink: 0;
	color: var(--hba-navy);
}

.hba-radio-option:has(input:checked) {
	border-color: var(--hba-green);
	background: #eefaf0;
}

.hba-submit-btn {
	width: 100%;
	background: linear-gradient(90deg, var(--hba-navy), var(--hba-blue), var(--hba-cyan));
	color: #fff;
	border: none;
	padding: 14px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.1s ease;
}

.hba-submit-btn:hover {
	opacity: 0.92;
}

.hba-submit-btn:active {
	transform: scale(0.99);
}

.hba-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.hba-form-message {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.hba-form-message.success {
	background: #eaf7ec;
	color: #256029;
	border: 1px solid var(--hba-green);
}

.hba-form-message.error {
	background: #fdecea;
	color: #a12e28;
	border: 1px solid #e53935;
}

/* ============================================================
   FLOATING "BOOK APPOINTMENT" BUTTON (site-wide)
   ============================================================ */
.hba-floating-btn {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99998;
	display: flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(90deg, var(--hba-navy), var(--hba-blue), var(--hba-cyan));
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 14px 22px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(15, 47, 92, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hba-floating-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(15, 47, 92, 0.45);
}

.hba-floating-btn .hba-floating-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #fff;
}

.hba-floating-btn .hba-floating-icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

/* ============================================================
   MODAL / POPUP
   z-index intentionally very high so it always sits above the
   WordPress admin bar (z-index 99999) and any theme header.
   ============================================================ */
.hba-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 30, 60, 0.6);
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.hba-modal-box {
	position: relative;
	max-width: 660px;
	width: 100%;
	max-height: 90vh;
	background: var(--hba-white);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	animation: hba-modal-pop 0.22s ease;
}

@keyframes hba-modal-pop {
	from { opacity: 0; transform: scale(0.94); }
	to { opacity: 1; transform: scale(1); }
}

.hba-modal-header {
	position: relative;
	flex: 0 0 auto;
	background: linear-gradient(90deg, var(--hba-navy), var(--hba-blue), var(--hba-cyan));
	padding: 20px 56px 20px 24px;
}

.hba-modal-title {
	color: var(--hba-white);
	text-align: left;
	font-size: 20px;
	margin: 0;
	line-height: 1.3;
}

.hba-modal-scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	background: var(--hba-white);
	padding: 4px;
}

.hba-modal-wrapper {
	margin: 0;
	box-shadow: none;
	border-top: none;
	border-radius: 0;
	padding: 22px 24px;
}

.hba-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	color: var(--hba-navy);
	font-family: Arial, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	margin: 0;
	padding: 0;
	width: 32px;
	height: 32px;
	min-width: 32px;
	max-width: 32px;
	flex-shrink: 0;
	box-sizing: border-box;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(0,0,0,0.2);
	z-index: 2;
}

.hba-modal-close:hover {
	background: #fdecea;
	color: #a12e28;
}

body.hba-modal-open {
	overflow: hidden;
}

/* ============================================================
   RESPONSIVE — TABLET (≤768px)
   ============================================================ */
@media (max-width: 768px) {
	.hba-form-wrapper {
		padding: 26px 20px;
	}
	.hba-floating-btn {
		right: 16px;
		bottom: 16px;
		padding: 12px 18px;
		font-size: 14px;
	}
	.hba-modal-overlay {
		padding: 12px;
	}
	.hba-modal-box {
		max-height: 92vh;
	}
}

/* ============================================================
   RESPONSIVE — MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
	.hba-form-wrapper {
		padding: 18px 14px;
		border-radius: 10px;
	}
	.hba-form .hba-row-half {
		flex-direction: column;
		gap: 0;
	}
	.hba-radio-option {
		min-width: 100%;
		padding: 12px 14px;
	}

	/* iOS Safari auto-zooms inputs below 16px font-size — force 16px
	   so tapping a field doesn't zoom the whole page in. */
	.hba-form input[type="text"],
	.hba-form input[type="email"],
	.hba-form input[type="tel"],
	.hba-form input[type="number"],
	.hba-form textarea {
		font-size: 16px;
		padding: 12px 12px;
	}
	.hba-form select {
		font-size: 16px;
		padding: 12px 40px 12px 12px;
	}

	.hba-submit-btn {
		font-size: 15px;
		padding: 13px;
	}

	/* Modal goes near-fullscreen on small phones, but with a visible gap
	   at the top so it doesn't feel glued to the browser's address bar. */
	.hba-modal-overlay {
		padding: 0;
		padding-top: 32px;
		align-items: flex-end;
	}
	.hba-modal-box {
		max-height: calc(94vh - 32px);
		width: 100%;
		max-width: 100%;
		border-radius: 16px 16px 0 0;
	}
	.hba-modal-header {
		padding: 18px 52px 18px 16px;
	}
	.hba-modal-title {
		font-size: 17px;
	}
	.hba-modal-wrapper {
		padding: 18px 14px 26px;
	}
	.hba-modal-close {
		top: 14px;
		right: 12px;
	}

	.hba-floating-btn {
		right: 14px;
		bottom: 14px;
		padding: 12px;
		border-radius: 50%;
	}
	.hba-floating-btn .hba-floating-text {
		display: none;
	}
	.hba-floating-btn .hba-floating-icon {
		font-size: 22px;
	}
}

/* ============================================================
   RESPONSIVE — SMALL PHONES (≤360px)
   ============================================================ */
@media (max-width: 360px) {
	.hba-form-wrapper {
		padding: 14px 10px;
	}
	.hba-modal-header {
		padding: 14px 46px 14px 12px;
	}
	.hba-modal-title {
		font-size: 15px;
	}
	.hba-modal-wrapper {
		padding: 14px 10px 22px;
	}
	.hba-modal-close {
		width: 28px;
		height: 28px;
		min-width: 28px;
		max-width: 28px;
		font-size: 17px;
		top: 10px;
		right: 10px;
	}
}
