/**
 * Minh Phát Hotel Core — frontend shortcode styles
 * Scoped under .mph-core-component
 */

.mph-core-component {
	box-sizing: border-box;
	font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
	color: #1d2a24;
}

.mph-core-component *,
.mph-core-component *::before,
.mph-core-component *::after {
	box-sizing: inherit;
}

/* ==========================================================================
   Booking form — horizontal bar (mockup)
   ========================================================================== */

.mph-core-component .mph-booking-form {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: none;
	margin: 0;
}

.mph-core-component .mph-booking-form__bar {
	display: grid;
	grid-template-columns: 1.15fr 1.15fr 0.95fr 0.95fr auto;
	align-items: stretch;
	gap: 0;
}

.mph-core-component .mph-booking-form__field {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 6px 18px;
	border-right: 1px solid #e8e0cd;
	min-width: 0;
	border-radius: 10px;
	transition: box-shadow 0.2s ease, background 0.2s ease;
}

.mph-core-component .mph-booking-form__field:first-child {
	padding-left: 4px;
}

.mph-core-component .mph-booking-form__field:hover,
.mph-core-component .mph-booking-form__field:focus-within {
	box-shadow: inset 0 0 0 1px #f1e3b6;
	background: rgba(241, 227, 182, 0.14);
}

.mph-core-component .mph-booking-form__label,
.mph-core-component .mph-booking-form__field > label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #7a836f;
	margin: 0;
}

.mph-core-component .mph-booking-form__control {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	position: relative;
}

.mph-core-component .mph-booking-form__icon {
	display: inline-flex;
	flex-shrink: 0;
	color: #d4a62a;
	line-height: 0;
}

.mph-core-component .mph-booking-form__icon--end {
	margin-left: auto;
}

.mph-core-component .mph-booking-form__chevron {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	color: #7a836f;
	pointer-events: none;
	line-height: 0;
}

.mph-core-component .mph-booking-form__input,
.mph-core-component .mph-booking-form__field input[type="date"],
.mph-core-component .mph-booking-form__field input[type="number"],
.mph-core-component .mph-booking-form__field input[type="text"],
.mph-core-component .mph-booking-form__field input[type="tel"],
.mph-core-component .mph-booking-form__field input[type="email"],
.mph-core-component .mph-booking-form__field select {
	width: 100%;
	min-width: 0;
	padding: 2px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #1d2a24;
	appearance: none;
	-webkit-appearance: none;
}

.mph-core-component .mph-booking-form__select {
	padding-right: 18px;
	cursor: pointer;
}

.mph-core-component .mph-booking-form__input:focus,
.mph-core-component .mph-booking-form__field input:focus,
.mph-core-component .mph-booking-form__field textarea:focus {
	outline: none;
}

.mph-core-component .mph-booking-form__actions {
	display: flex;
	align-items: center;
	padding-left: 16px;
	border-right: 0;
}

.mph-core-component .mph-booking-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: 56px;
	min-height: 56px;
	padding: 0 28px;
	border: 0;
	border-radius: 12px;
	background: #073b2d;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
	white-space: nowrap;
}

.mph-core-component .mph-booking-form__submit:hover {
	background: #052d21;
}

.mph-core-component .mph-booking-form__submit:active {
	background: #04261c;
}

.mph-core-component .mph-booking-form__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.mph-core-component .mph-booking-form__expand {
	margin-top: 14px;
}

.mph-core-component .mph-booking-form__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	color: #073b2d;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	text-decoration: none;
}

.mph-core-component .mph-booking-form__toggle:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mph-core-component .mph-booking-form__toggle-icon {
	display: inline-flex;
	line-height: 0;
}

.mph-core-component .mph-booking-form__contact {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e8e0cd;
}

.mph-core-component .mph-booking-form__contact[hidden] {
	display: none;
}

.mph-core-component .mph-booking-form__contact-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.mph-core-component .mph-booking-form__contact .mph-booking-form__field {
	border-right: 0;
	padding: 0;
	background: transparent;
}

.mph-core-component .mph-booking-form__contact .mph-booking-form__field input,
.mph-core-component .mph-booking-form__contact .mph-booking-form__field textarea {
	padding: 10px 14px;
	border: 1px solid #ded7ca;
	border-radius: 8px;
	background: #f7f3eb;
	font-size: 0.9375rem;
	font-weight: 400;
}

.mph-core-component .mph-booking-form__contact .mph-booking-form__field textarea {
	resize: vertical;
	min-height: 72px;
}

.mph-core-component .mph-booking-form__contact .required {
	color: #d4a62a;
}

.mph-captcha {
	margin: 14px 0 4px;
}

.mph-captcha-note {
	margin: 12px 0 0;
	font-size: 0.75rem;
	line-height: 1.45;
	color: rgba(2, 43, 32, 0.55);
}

.mph-captcha-note a {
	color: inherit;
	text-decoration: underline;
}

/* ==========================================================================
   Honeypot & messages
   ========================================================================== */

.mph-core-component .mph-booking-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.mph-core-component .mph-booking-form__message {
	margin-top: 12px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 0.875rem;
}

.mph-core-component .mph-booking-form__message[hidden] {
	display: none;
}

.mph-core-component .mph-booking-form__message--success {
	background: rgba(7, 59, 45, 0.1);
	color: #073b2d;
}

.mph-core-component .mph-booking-form__message--error {
	background: rgba(180, 40, 40, 0.08);
	color: #9b1c1c;
}

.mph-core-component .mph-booking-form__hint {
	font-size: 0.8125rem;
	color: #6f756f;
	margin: 0;
}

/* Legacy row layout fallback */
.mph-core-component .mph-booking-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* ==========================================================================
   Rooms & offers shortcode grids
   ========================================================================== */

.mph-core-component .mph-rooms-grid,
.mph-core-component .mph-offers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.mph-core-component .mph-room-card,
.mph-core-component .mph-offer-card {
	border: 1px solid #ded7ca;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 20px rgba(3, 40, 31, 0.08);
}

.mph-core-component .mph-room-card__image img,
.mph-core-component .mph-offer-card__image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.mph-core-component .mph-room-card__body,
.mph-core-component .mph-offer-card__body {
	padding: 1.25rem;
}

.mph-core-component .mph-room-card__title,
.mph-core-component .mph-offer-card__title {
	margin: 0 0 0.5rem;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.125rem;
	color: #03281f;
}

.mph-core-component .mph-room-card__price {
	font-weight: 700;
	color: #d4a62a;
}

.mph-core-component .mph-room-card__price--original {
	text-decoration: line-through;
	color: #6f756f;
	font-weight: 400;
	margin-left: 0.5rem;
}

.mph-core-component .mph-room-card__link,
.mph-core-component .mph-offer-card__link {
	display: inline-block;
	margin-top: 0.75rem;
	color: #073b2d;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
}

.mph-core-component .mph-room-card__link:hover,
.mph-core-component .mph-offer-card__link:hover {
	color: #d4a62a;
}

.mph-core-component .mph-offer-card__discount {
	display: inline-block;
	background: rgba(242, 189, 62, 0.2);
	color: #03281f;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

/* ==========================================================================
   Responsive — booking bar
   ========================================================================== */

@media (max-width: 1199px) {
	.mph-core-component .mph-booking-form__bar {
		grid-template-columns: 1fr 1fr;
		gap: 12px 0;
	}

	.mph-core-component .mph-booking-form__field:nth-child(2),
	.mph-core-component .mph-booking-form__field:nth-child(4) {
		border-right: 0;
	}

	.mph-core-component .mph-booking-form__actions {
		grid-column: 1 / -1;
		padding: 8px 0 0;
	}

	.mph-core-component .mph-booking-form__submit {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.mph-core-component .mph-booking-form__bar {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.mph-core-component .mph-booking-form__field {
		border-right: 0;
		border-bottom: 1px solid #e8e0cd;
		padding: 12px 10px;
	}

	.mph-core-component .mph-booking-form__field:first-child {
		padding-left: 10px;
	}

	.mph-core-component .mph-booking-form__actions {
		grid-column: auto;
		padding: 4px 0 0;
	}

	.mph-core-component .mph-booking-form__submit {
		width: 100%;
	}

	.mph-core-component .mph-booking-form__contact-grid {
		grid-template-columns: 1fr;
	}
}
