/* Hotel Booking & Availability Manager — Front-end styles */

.hbam-booking-form {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px;
	background: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	font-size: 15px;
	box-sizing: border-box;
}

.hbam-booking-form * {
	box-sizing: border-box;
}

.hbam-form-title {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
}

.hbam-field-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 14px;
	align-items: flex-end;
}

.hbam-field {
	flex: 1 1 140px;
	display: flex;
	flex-direction: column;
}

.hbam-field-full {
	flex: 1 1 100%;
}

.hbam-field-button {
	flex: 1 1 180px;
}

.hbam-field label {
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 13px;
	color: #333;
}

.hbam-field input,
.hbam-field select,
.hbam-field textarea {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	width: 100%;
	font-family: inherit;
}

.hbam-field input:focus,
.hbam-field select:focus,
.hbam-field textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.hbam-button {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 6px;
	border: none;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.hbam-button-primary {
	background: #1a1a1a;
	color: #ffffff;
	width: 100%;
}

.hbam-button-primary:hover {
	background: #333333;
}

.hbam-button-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.hbam-button-secondary {
	background: #f1f1f1;
	color: #1a1a1a;
	margin-right: 10px;
}

.hbam-button-secondary:hover {
	background: #e2e2e2;
}

.hbam-message {
	margin: 14px 0;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
}

.hbam-message.hbam-message-error {
	background: #fbeaea;
	color: #8a1f11;
	border: 1px solid #f3c6c2;
}

.hbam-message.hbam-message-info {
	background: #eef6fc;
	color: #0a4b6e;
	border: 1px solid #c9e3f5;
}

.hbam-step {
	margin-top: 10px;
}

.hbam-step h4 {
	margin: 0 0 14px;
	font-size: 17px;
}

.hbam-rooms-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hbam-room-card {
	display: flex;
	gap: 16px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 14px;
	flex-wrap: wrap;
}

.hbam-room-card img {
	width: 140px;
	height: 100px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
	background: #f1f1f1;
}

.hbam-room-card-body {
	flex: 1 1 200px;
}

.hbam-room-card-body h5 {
	margin: 0 0 4px;
	font-size: 17px;
}

.hbam-room-card-meta {
	color: #666;
	font-size: 13px;
	margin-bottom: 6px;
}

.hbam-room-card-amenities {
	font-size: 13px;
	color: #555;
	margin-bottom: 6px;
}

.hbam-room-card-price {
	font-size: 18px;
	font-weight: 700;
}

.hbam-room-card-price small {
	font-weight: 400;
	font-size: 12px;
	color: #777;
}

.hbam-room-card-action {
	display: flex;
	align-items: center;
}

.hbam-room-card-action .hbam-button {
	width: auto;
	padding: 10px 20px;
}

.hbam-selected-room {
	background: #f7f7f7;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 14px;
	font-size: 14px;
}

.hbam-selected-room strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
}

.hbam-terms {
	background: #f7f7f7;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 13px;
	color: #555;
	margin-bottom: 14px;
}

.hbam-payment-note {
	font-size: 14px;
	margin-bottom: 4px;
}

.hbam-step-success {
	text-align: center;
	padding: 30px 10px;
}

.hbam-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #e7f7ed;
	color: #1a7f37;
	font-size: 28px;
	margin-bottom: 14px;
}

#hbam_success_message {
	font-size: 16px;
	max-width: 480px;
	margin: 0 auto;
}

/* jQuery UI datepicker styling */
.ui-datepicker {
	background: #ffffff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	padding: 10px;
	font-family: inherit;
	z-index: 9999 !important;
}

.ui-datepicker .ui-datepicker-header {
	background: #1a1a1a;
	color: #fff;
	border-radius: 6px;
	padding: 6px 0;
}

.ui-datepicker .ui-datepicker-title {
	font-weight: 600;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
	cursor: pointer;
	color: #fff;
	top: 6px;
}

.ui-datepicker table {
	width: 100%;
	margin: 8px 0 0;
}

.ui-datepicker td {
	text-align: center;
	padding: 2px;
}

.ui-datepicker td a,
.ui-datepicker td span {
	display: block;
	padding: 6px;
	border-radius: 4px;
	text-decoration: none;
	color: #1a1a1a;
}

.ui-datepicker td a:hover {
	background: #f1f1f1;
}

.ui-datepicker .ui-datepicker-today a {
	border: 1px solid #1a1a1a;
}

.ui-state-disabled span {
	color: #ccc;
}

/* Responsive */
@media (max-width: 600px) {
	.hbam-field-row {
		flex-direction: column;
		align-items: stretch;
	}
	.hbam-room-card {
		flex-direction: column;
	}
	.hbam-room-card img {
		width: 100%;
		height: 160px;
	}
}
