/**
 * Nightclub Booking - Frontend Styles
 */

/* Modal Overlay */
.ncb-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba( 0, 0, 0, 0.7 );
	z-index: 999;
	pointer-events: none;
}

/* Modal */
.ncb-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	background: #1D1D27;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.3 );
	max-width: 600px;
	width: 90%;
	height: min(90vh, 720px);
	overflow: hidden;
	z-index: 1000;
	pointer-events: auto;
	transition: max-width 0.3s ease, height 0.3s ease;
	color: rgb(250, 250, 250);
	display: flex;
	flex-direction: column;
}

.ncb-modal-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.ncb-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #333;
	flex-shrink: 0;
}

.ncb-modal-header h2 {
	margin: 0;
	font-size: 24px;
	color: rgb(250, 250, 250);
}

.ncb-modal-close {
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ncb-modal-close:hover {
	color: #000;
}

.ncb-modal-body {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 30px;
	transition: padding 0.3s ease;
	color: rgb(250, 250, 250);
}

/* Form Steps */
.ncb-form-step {
	display: none !important;
	visibility: hidden;
	height: 0;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

#ncb-booking-form .ncb-form-step {
	display: none !important;
	visibility: hidden;
	height: 0;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.ncb-form-step.active {
	display: block !important;
	visibility: visible;
	height: auto;
	overflow: visible;
	animation: fadeIn 0.3s ease-in;
}

#ncb-booking-form .ncb-form-step.active {
	display: block !important;
	visibility: visible;
	height: auto;
	overflow: visible;
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY( 10px );
	}
	to {
		opacity: 1;
		transform: translateY( 0 );
	}
}

.ncb-form-step h3 {
	margin-top: 0;
	color: rgb(250, 250, 250);
	font-size: 20px;
}

/* Form Groups */
.ncb-form-group {
	margin-bottom: 20px;
}

.ncb-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: rgb(250, 250, 250);
}

.ncb-form-group input,
.ncb-form-group select,
.ncb-form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	background-color: white !important;
	color: #1D1D27 !important;
}

input[type="number"].ncb-guest-input {
	background-color: white !important;
	color: #1D1D27 !important;
}

.ncb-form-group input:focus,
.ncb-form-group select:focus,
.ncb-form-group textarea:focus {
	outline: none;
	border-color: #F0429F;
	box-shadow: 0 0 0 3px rgba( 240, 66, 159, 0.1 );
}

.ncb-form-group input::placeholder,
.ncb-form-group textarea::placeholder {
	color: #1D1D27;
	opacity: 0.5;
}

/* Buttons */
.ncb-btn {
	display: inline-block;
	padding: 12px 24px;
	background-color: #f0f0f0;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

.ncb-btn:hover {
	background-color: #e0e0e0;
	border-color: #999;
}

.ncb-btn-primary {
	background-color: #F0429F;
	color: white;
	border-color: #F0429F;
}

.ncb-btn-primary:hover {
	background-color: #d9268a;
	border-color: #d9268a;
}

.ncb-btn-next,
.ncb-btn-checkout {
	background-color: #F0429F;
	color: white;
	border-color: #F0429F;
}

.ncb-btn-next:hover,
.ncb-btn-checkout:hover {
	background-color: #d9268a;
	border-color: #d9268a;
}

/* Form Actions */
.ncb-form-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
}

.ncb-form-actions .ncb-btn {
	flex: 1;
}

/* Booking Button */
.ncb-booking-btn {
	background-color: #F0429F;
	color: white;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.ncb-booking-btn:hover {
	background-color: #d9268a;
}

/* Inline Booking */
.ncb-booking-inline {
	width: 100%;
	max-width: none;
	margin: 0;
	color: rgb(250, 250, 250);
}

.ncb-booking-content {
	padding: 30px;
	transition: padding 0.3s ease;
	color: rgb(250, 250, 250);
}

.ncb-booking-content h2 {
	margin-top: 0;
	color: rgb(250, 250, 250);
	font-size: 24px;
}

/* Checkout Loader */
.ncb-checkout-loader {
	text-align: center;
	padding: 30px 20px;
}

.ncb-spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #F0429F;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.ncb-checkout-loader p {
	color: #666;
	font-size: 14px;
	margin: 0;
}

/* Table Selection */
.ncb-table-selector {
	margin: 20px 0;
}

/* Floorplan Container */
.ncb-floorplan-container {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: center;
}

/* Landscape (horizontal) — constrained by width and max height */
.ncb-floorplan-landscape .ncb-floorplan-wrapper {
	max-width: 100%;
}

.ncb-floorplan-landscape .ncb-floorplan-image {
	max-width: 100%;
	max-height: 70vh;
	width: auto;
	height: auto;
}

/* Portrait (vertical) — constrained primarily by height */
.ncb-floorplan-portrait .ncb-floorplan-wrapper {
	max-width: 100%;
}

.ncb-floorplan-portrait .ncb-floorplan-image {
	max-height: 85vh;
	max-width: 100%;
	width: auto;
	height: auto;
}

/* Shared wrapper and image styles */
.ncb-floorplan-wrapper {
	position: relative;
	display: inline-block;
}

.ncb-floorplan-image {
	display: block;
	border: 2px solid #ddd;
	border-radius: 8px;
}

.ncb-floorplan-placeholder {
	padding: 60px 20px;
	text-align: center;
	background: linear-gradient( 135deg, #667eea 0%, #764ba2 100% );
	color: white;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 600;
}

.ncb-tables-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.ncb-table-button {
	position: absolute;
	cursor: pointer;
	display: block;
	transform: translate( -50%, -50% );
	z-index: 10;
	pointer-events: auto;
}

.ncb-table-button input[type="radio"] {
	display: none;
}

.ncb-table-label {
	display: inline-block;
	width: 50px;
	height: 50px;
	background-color: rgba( 255, 255, 255, 0.8 );
	color: #333;
	border: 2px solid #666;
	border-radius: 4px;
	text-align: center;
	line-height: 2;
	font-size: 12px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.ncb-table-button input[type="radio"]:checked + .ncb-table-label {
	background-color: #007cba;
	color: white;
	border-color: #007cba;
	box-shadow: 0 0 0 3px rgba( 0, 124, 186, 0.2 );
}

.ncb-table-button input:disabled + .ncb-table-label {
	background-color: #ccc;
	color: #666;
	cursor: not-allowed;
	opacity: 0.5;
}

/* Tables List */
.ncb-tables-list {
	margin-top: 20px;
}

/* Add-on (bordpakke) cards - 2 column grid */
#ncb-products-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.ncb-product-item {
	display: flex;
}

.ncb-product-card {
	display: block;
	width: 100%;
	cursor: pointer;
	position: relative;
}

.ncb-product-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	transition: outline 0.2s ease, transform 0.2s ease;
	outline: 3px solid transparent;
}

.ncb-product-card:hover .ncb-product-image {
	outline-color: #F0429F;
}

.ncb-product-card.selected .ncb-product-image {
	outline-color: #F0429F;
	outline-width: 4px;
}

.ncb-product-check {
	position: absolute;
	top: 10px;
	right: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #0a84ff;
	color: white;
	font-weight: 700;
	font-size: 12px;
	line-height: 1.3;
	box-shadow: 0 4px 10px rgba( 10, 132, 255, 0.25 );
}

/* Upsell Step - Category bar */
#ncb-upsell-category-bar {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 10px 0 8px;
	margin-bottom: 16px;
	background: #1D1D27;
	border-bottom: 1px solid #333;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

#ncb-upsell-category-bar::-webkit-scrollbar {
	height: 6px;
}

#ncb-upsell-category-bar::-webkit-scrollbar-thumb {
	background: #3a3a46;
	border-radius: 999px;
}

.ncb-upsell-category-btn {
	flex: 0 0 auto;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid #444;
	background: #24242f;
	color: rgb(250, 250, 250);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.ncb-upsell-category-btn:hover {
	border-color: #F0429F;
}

.ncb-upsell-category-btn.active {
	background: #F0429F;
	border-color: #F0429F;
	color: white;
}

/* Upsell Step - Products */
#ncb-upsell-products {
	display: block;
}

.ncb-upsell-section {
	margin-bottom: 24px;
}

.ncb-upsell-section h4 {
	margin: 0 0 12px;
	color: rgb(250, 250, 250);
}

.ncb-upsell-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 16px;
}

.ncb-upsell-card {
	border: 1px solid #2f2f3b;
	border-radius: 12px;
	background: #24242f;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

#ncb-upsell-products .ncb-upsell-image {
	width: 100%;
	max-height: 140px;
	height: auto;
	object-fit: contain;
	object-position: center;
	display: block;
	margin: 0 auto;
}

@media ( max-width: 640px ) {
	#ncb-upsell-products .ncb-upsell-image {
		max-height: 110px;
	}
}

.ncb-upsell-body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ncb-upsell-title {
	margin: 0;
	font-size: 14px;
	color: rgb(250, 250, 250);
}

.ncb-upsell-price {
	font-weight: 700;
	color: #F0429F;
}

.ncb-upsell-desc {
	font-size: 12px;
	line-height: 1.4;
	color: #c9c9d3;
}

.ncb-upsell-empty,
.ncb-upsell-loading {
	padding: 16px;
	border: 1px dashed #444;
	border-radius: 10px;
	background: #23232b;
	color: #c9c9d3;
	font-size: 13px;
}

.ncb-tables-list h4 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #333;
}

.ncb-tables-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 150px, 1fr ) );
	gap: 10px;
}

.ncb-table-option {
	position: relative;
	padding: 15px;
	border: 2px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: block;
	text-align: center;
}

.ncb-table-option input[type="radio"] {
	display: none;
}

.ncb-table-option input[type="radio"]:checked + .ncb-table-option-name {
	color: #007cba;
	font-weight: 700;
}

.ncb-table-option input[type="radio"]:checked ~ .ncb-table-option-capacity {
	color: #007cba;
}

.ncb-table-option:has( input:checked ) {
	border-color: #007cba;
	background-color: #f0f5ff;
}

.ncb-table-option:hover {
	border-color: #999;
}

.ncb-table-option input:disabled + .ncb-table-option-name {
	opacity: 0.5;
	cursor: not-allowed;
}

.ncb-table-option-name {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	color: #333;
}

.ncb-table-option-capacity {
	display: block;
	font-size: 12px;
	color: #666;
}

/* Price Preview */
.ncb-price-preview {
	background: #2a2a33;
	border: 1px solid #333;
	border-radius: 4px;
	padding: 15px;
	margin: 20px 0;
	color: rgb(250, 250, 250);
}

.ncb-price-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #333;
	font-size: 14px;
	color: rgb(250, 250, 250);
}

.ncb-price-section-header {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
	padding: 10px 0 2px;
	margin-top: 4px;
}

.ncb-price-row-presale {
	color: #7ddf99;
	font-weight: 600;
}

.ncb-price-row-presale span:last-child {
	color: #7ddf99;
}

.ncb-price-row:last-child {
	border-bottom: none;
}

.ncb-price-subtotal {
	font-weight: 600;
	border-top: 2px solid #333;
	border-bottom: none;
	padding: 15px 0 8px;
	margin-top: 10px;
	color: rgb(250, 250, 250);
}

.ncb-price-total {
	font-weight: 700;
	font-size: 16px;
	color: #F0429F;
	border-top: 2px solid #F0429F;
	padding: 15px 0;
	margin-top: 10px;
}

/* Terms & Checkboxes */
.ncb-booking-terms {
	margin: 20px 0;
	padding: 15px;
	background: #2a2a33;
	border: 1px solid #333;
	border-radius: 4px;
	color: rgb(250, 250, 250);
}

.ncb-booking-terms label {
	display: flex;
	align-items: flex-start;
	margin-bottom: 12px;
	cursor: pointer;
	font-weight: normal;
	color: rgb(250, 250, 250);
}

.ncb-booking-terms label:last-child {
	margin-bottom: 0;
}

.ncb-checkbox {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	margin-right: 10px !important;
	margin-top: 2px;
	cursor: pointer;
}

/* Error Messages */
.ncb-error-box {
	background-color: #fee;
	border: 1px solid #f00;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 20px;
}

.ncb-error-item {
	color: #c00;
	margin-bottom: 8px;
	font-size: 14px;
}

.ncb-error-item:last-child {
	margin-bottom: 0;
}

.ncb-form-errors {
	display: none;
}

/* Responsive */
@media (max-width: 600px) {
	.ncb-modal {
		width: 95%;
		height: min(95vh, 100%);
	}

	.ncb-modal-body {
		padding: 15px;
	}

	.ncb-modal-header {
		padding: 15px;
	}

	.ncb-floorplan-container {
		grid-template-columns: 1fr;
	}

	.ncb-floorplan-landscape .ncb-floorplan-image {
		max-height: 50vh;
	}

	.ncb-floorplan-portrait .ncb-floorplan-image {
		max-height: 70vh;
	}

	.ncb-tables-grid {
		grid-template-columns: repeat( auto-fill, minmax( 120px, 1fr ) );
	}

	.ncb-form-actions {
		flex-direction: column;
	}

	.ncb-form-actions .ncb-btn {
		width: 100%;
	}
}
/* Calendar Picker */
.ncb-calendar-picker {
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	margin: 10px 0;
}

.ncb-calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.ncb-calendar-header button {
	background: #F0429F;
	color: white;
	border: none;
	padding: 8px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}

.ncb-calendar-header button:hover {
	background: #d9268a;
}

.ncb-calendar-header h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.ncb-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	gap: 5px;
	margin-bottom: 10px;
}

.ncb-calendar-weekday {
	text-align: center;
	font-weight: 600;
	padding: 8px 0;
	font-size: 12px;
	color: #666;
}

.ncb-calendar-days {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	gap: 5px;
}

.ncb-calendar-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	background: #f9f9f9;
	font-size: 14px;
	transition: all 0.2s;
}

.ncb-calendar-day:hover {
	border-color: #007cba;
	background: #e8f5ff;
}

.ncb-calendar-day.disabled {
	background: #f0f0f0;
	color: #999;
	cursor: not-allowed;
	border-color: #ccc;
}

.ncb-calendar-day.disabled:hover {
	background: #f0f0f0;
	border-color: #ccc;
}

.ncb-calendar-day.event-day {
	background: #fff3cd;
	border-color: #ffc107;
	font-weight: 600;
	color: #856404;
}

.ncb-calendar-day.event-day:hover {
	background: #ffe69c;
	border-color: #ffb700;
}

.ncb-calendar-day.regular-day {
	background: #d4edda;
	border-color: #28a745;
	font-weight: 600;
	color: #155724;
}

.ncb-calendar-day.regular-day:hover {
	background: #c3e6cb;
	border-color: #1e7e34;
}

.ncb-calendar-day.selected {
	background: #007cba;
	color: white;
	border-color: #005a87;
}

.ncb-calendar-day.selected:hover {
	background: #005a87;
	border-color: #003d5c;
}

.ncb-calendar-day.other-month {
	color: #ccc;
	background: #fafafa;
	border-color: #eee;
	cursor: not-allowed;
}

.ncb-selected-date {
	color: #28a745;
	font-size: 14px;
}