/* ==========================================================================
   Nautical Inn Cloudbeds Booking Form
   Brand: Blue #5DAFCF
   Layout: Check-in | Check-out | Duration | Room | Button
   ========================================================================== */

.ncb-booking-form-wrapper {
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 32px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Form row: single line */
.ncb-form-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 12px;
	align-items: flex-end;
}

/* Fields */
.ncb-form-field {
	flex: 1 1 0;
	min-width: 0;
}

.ncb-field-duration {
	flex: 0 0 100px;
}

.ncb-field-rooms {
	flex: 0 0 140px;
}

.ncb-form-field label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #8899A6;
	margin-bottom: 6px;
}

.ncb-form-field input,
.ncb-form-field select {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #E1E8ED;
	border-radius: 6px;
	font-size: 14px;
	color: #2D2D2D;
	background-color: #FAFBFC;
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	cursor: pointer;
	height: 48px;
}

.ncb-form-field input:focus,
.ncb-form-field select:focus {
	outline: none;
	border-color: #5DAFCF;
	box-shadow: 0 0 0 3px rgba(93, 175, 207, 0.15);
	background-color: #fff;
}

.ncb-form-field input.ncb-field-error {
	border-color: #dc3545;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

/* Date input with icon */
.ncb-date-input {
	position: relative;
	overflow: hidden;
}

.ncb-date-input input {
	padding-right: 42px;
}

.ncb-icon-calendar {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px !important;
	height: 18px !important;
	max-width: 18px;
	max-height: 18px;
	min-width: 18px;
	min-height: 18px;
	color: #AAB8C2;
	pointer-events: none;
	overflow: hidden;
	flex-shrink: 0;
}

/* Duration display - styled like an input field */
.ncb-duration-display {
	display: flex;
	align-items: baseline;
	gap: 5px;
	height: 48px;
	border: 1px solid #E1E8ED;
	border-radius: 6px;
	background-color: #FAFBFC;
	padding: 0 16px;
	box-sizing: border-box;
	line-height: 48px;
}

.ncb-duration-value {
	font-size: 18px;
	font-weight: 700;
	color: #5DAFCF;
}

.ncb-duration-label {
	font-size: 13px;
	color: #5E6D77;
	font-weight: 500;
}

/* Submit button */
.ncb-field-submit {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-end;
}

.ncb-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 36px;
	background-color: #5DAFCF;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.8px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	text-transform: uppercase;
	white-space: nowrap;
	height: 48px;
	box-sizing: border-box;
}

.ncb-submit-btn:hover {
	background-color: #4A9AB8;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(93, 175, 207, 0.35);
}

.ncb-submit-btn:active {
	transform: translateY(0);
	box-shadow: none;
}

/* Widget wrapper */
.ncb-widget-wrapper {
	max-width: 100%;
}

/* Inline widget */
.ncb-inline-widget {
	margin-top: 32px;
	min-height: 600px;
}

/* Admin notice */
.ncb-admin-notice {
	background: #fff3cd;
	border: 1px solid #ffc107;
	padding: 12px 16px;
	border-radius: 6px;
	color: #856404;
}

/* Flatpickr theme overrides */
.flatpickr-calendar {
	border-radius: 8px !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
	border: none !important;
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
	background: #5DAFCF !important;
	border-color: #5DAFCF !important;
}

.flatpickr-day:hover {
	background: rgba(93, 175, 207, 0.15) !important;
	border-color: rgba(93, 175, 207, 0.15) !important;
}

.flatpickr-day.today {
	border-color: #5DAFCF !important;
}

.flatpickr-months .flatpickr-month {
	height: 40px !important;
}

/* Responsive */
@media (max-width: 992px) {
	.ncb-form-row {
		flex-wrap: wrap;
	}

	.ncb-form-field {
		flex: 1 1 calc(50% - 6px);
	}

	.ncb-field-duration {
		flex: 1 1 calc(50% - 6px);
	}

	.ncb-field-rooms {
		flex: 1 1 calc(50% - 6px);
	}

	.ncb-field-submit {
		flex: 1 1 100%;
	}

	.ncb-submit-btn {
		width: 100%;
	}
}

@media (max-width: 576px) {
	.ncb-booking-form-wrapper {
		padding: 20px;
		border-radius: 0;
	}

	.ncb-form-field {
		flex: 1 1 100%;
	}

	.ncb-field-duration {
		flex: 1 1 100%;
	}

	.ncb-field-rooms {
		flex: 1 1 100%;
	}
}
