/**
 * 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;
}

/* Modal */
.ncb-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	background: white;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.3 );
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 1000;
}

.ncb-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #ddd;
}

.ncb-modal-header h2 {
	margin: 0;
	font-size: 24px;
	color: #333;
}

.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 {
	padding: 30px;
}

/* Form Steps */
.ncb-form-step {
	display: none;
}

.ncb-form-step.active {
	display: block;
	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: #333;
	font-size: 20px;
}

/* Form Groups */
.ncb-form-group {
	margin-bottom: 20px;
}

.ncb-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
}

.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;
}

.ncb-form-group input:focus,
.ncb-form-group select:focus,
.ncb-form-group textarea:focus {
	outline: none;
	border-color: #007cba;
	box-shadow: 0 0 0 3px rgba( 0, 124, 186, 0.1 );
}

/* 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: #007cba;
	color: white;
	border-color: #007cba;
}

.ncb-btn-primary:hover {
	background-color: #005a87;
	border-color: #005a87;
}

.ncb-btn-next,
.ncb-btn-checkout {
	background-color: #007cba;
	color: white;
	border-color: #007cba;
}

.ncb-btn-next:hover,
.ncb-btn-checkout:hover {
	background-color: #005a87;
	border-color: #005a87;
}

/* 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: #007cba;
	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: #005a87;
}

/* Table Selection */
.ncb-table-selector {
	margin: 20px 0;
}

.ncb-floorplan-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 768px) {
	.ncb-floorplan-container {
		grid-template-columns: 1fr;
	}
}

.ncb-floorplan-image {
	position: relative;
	width: 100%;
	aspect-ratio: 4/3;
	background: linear-gradient( 135deg, #667eea 0%, #764ba2 100% );
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid #ddd;
}

.ncb-floorplan-placeholder {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	color: white;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
}

.ncb-tables-overlay {
	position: relative;
	width: 100%;
	height: 100%;
}

.ncb-table-button {
	position: absolute;
	cursor: pointer;
	display: block;
	transform: translate( -50%, -50% );
	z-index: 10;
}

.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;
}

.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: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	margin: 20px 0;
}

.ncb-price-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.ncb-price-row:last-child {
	border-bottom: none;
}

.ncb-price-subtotal {
	font-weight: 600;
	border-top: 2px solid #ddd;
	border-bottom: none;
	padding: 15px 0 8px;
	margin-top: 10px;
}

.ncb-price-total {
	font-weight: 700;
	font-size: 16px;
	color: #007cba;
	border-top: 2px solid #007cba;
	padding: 15px 0;
	margin-top: 10px;
}

/* Terms & Checkboxes */
.ncb-booking-terms {
	margin: 20px 0;
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.ncb-booking-terms label {
	display: flex;
	align-items: flex-start;
	margin-bottom: 12px;
	cursor: pointer;
	font-weight: normal;
}

.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%;
		max-height: 95vh;
	}

	.ncb-modal-body {
		padding: 15px;
	}

	.ncb-modal-header {
		padding: 15px;
	}

	.ncb-floorplan-container {
		grid-template-columns: 1fr;
	}

	.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%;
	}
}
