/* Melby Booking — frontend styles */

.mm-booking-form {
	max-width: 720px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 4px 24px rgba(30, 33, 40, 0.04);
	font-family: Inter, -apple-system, system-ui, sans-serif;
}
.mm-booking-form__title {
	font-size: 1.75rem;
	margin: 0 0 6px;
	color: #1e2128;
	font-weight: 700;
}
.mm-booking-form__subtitle {
	color: #6b7280;
	margin: 0 0 28px;
	font-size: 0.95rem;
}
.mm-booking-form__section { margin-bottom: 24px; }
.mm-booking-form__label {
	display: block;
	font-weight: 700;
	color: #1e2128;
	margin-bottom: 12px;
	font-size: 0.95rem;
}
.mm-booking-form__sublabel {
	display: block;
	font-size: 0.8rem;
	color: #6b7280;
	margin-bottom: 6px;
	font-weight: 600;
}

.mm-booking-form__types {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
@media (max-width: 560px) {
	.mm-booking-form__types { grid-template-columns: 1fr; }
}
.mm-booking-form__type {
	position: relative;
	cursor: pointer;
	display: block;
}
.mm-booking-form__type input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.mm-booking-form__type-inner {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.mm-booking-form__type input:checked + .mm-booking-form__type-inner {
	border-color: #ffb300;
	background: rgba(255, 179, 0, 0.06);
}
.mm-booking-form__type input:focus-visible + .mm-booking-form__type-inner {
	outline: 2px solid #ffb300;
	outline-offset: 2px;
}
.mm-booking-form__type-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: #f7f5f0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1e2128;
}
.mm-booking-form__type input:checked + .mm-booking-form__type-inner .mm-booking-form__type-icon {
	background: #ffb300;
}
.mm-booking-form__type-title {
	display: block;
	font-weight: 700;
	color: #1e2128;
	font-size: 0.95rem;
	margin-bottom: 2px;
}
.mm-booking-form__type-desc {
	display: block;
	font-size: 0.8rem;
	color: #6b7280;
	line-height: 1.4;
}

.mm-booking-form__grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
@media (max-width: 560px) {
	.mm-booking-form__grid-2 { grid-template-columns: 1fr; }
}
.mm-booking-form__col-full { grid-column: 1 / -1; }

.mm-booking-form__input,
.mm-booking-form__select,
.mm-booking-form__textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	background: #fff;
}
.mm-booking-form__input:focus,
.mm-booking-form__select:focus,
.mm-booking-form__textarea:focus {
	outline: none;
	border-color: #ffb300;
	box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.15);
}
.mm-booking-form__select:disabled {
	background: #f9fafb;
	color: #9ca3af;
	cursor: not-allowed;
}
.mm-booking-form__textarea { resize: vertical; min-height: 80px; }

.mm-booking-form__error {
	background: rgba(239, 68, 68, 0.08);
	border: 1px solid rgba(239, 68, 68, 0.25);
	color: #991b1b;
	padding: 12px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 0.9rem;
}

.mm-booking-form__submit {
	width: 100%;
	padding: 14px 24px;
	background: #ffb300;
	color: #1e2128;
	border: none;
	border-radius: 8px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.mm-booking-form__submit:hover:not(:disabled) {
	background: #f0a000;
}
.mm-booking-form__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}
.mm-booking-form__spinner {
	animation: mm-spin 1s linear infinite;
}
@keyframes mm-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.mm-booking-form__note {
	text-align: center;
	color: #9ca3af;
	font-size: 0.75rem;
	margin: 12px 0 0;
}

.mm-booking-form__success {
	text-align: center;
	padding: 40px 20px;
}
.mm-booking-form__success-icon {
	display: inline-flex;
	width: 80px;
	height: 80px;
	background: rgba(34, 197, 94, 0.1);
	color: #22c55e;
	border-radius: 999px;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}
.mm-booking-form__success h3 {
	font-size: 1.5rem;
	color: #1e2128;
	margin: 0 0 8px;
}
.mm-booking-form__success p {
	color: #6b7280;
	max-width: 400px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Compact widget */
.mm-booking-widget {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
}
.mm-booking-widget__title {
	font-size: 1.15rem;
	margin: 0 0 8px;
	color: #1e2128;
	font-weight: 700;
}
.mm-booking-widget__desc {
	color: #6b7280;
	font-size: 0.9rem;
	line-height: 1.55;
	margin: 0 0 14px;
}
.mm-booking-widget__features {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	font-size: 0.85rem;
	color: #374151;
}
.mm-booking-widget__features li { padding: 3px 0; }
.mm-booking-widget__btn {
	display: block;
	text-align: center;
	background: #ffb300;
	color: #1e2128 !important;
	padding: 11px 20px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease;
}
.mm-booking-widget__btn:hover { background: #f0a000; }
