/**
 * Customer Booking Interface Styles
 * 
 * Modern design using Hit Factory global design system
 * Uses CSS variables: --hf-accent-color, --hf-background-color, --hf-card-background
 * 
 * @package HF_WC_Bookings_Manager
 * @subpackage Customer_Booking
 */

/* ============================================================================
   CONTAINER & LAYOUT
   ========================================================================= */

.hf-booking-form-container {
	max-width: 800px;
	margin: 2rem auto;
	padding: 2.5rem;
	background: var(--hf-card-background);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   HEADER
   ========================================================================= */

.hf-booking-header {
	text-align: center;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid var(--hf-accent-color);
}

.hf-booking-title {
	margin: 0 0 0.5rem 0;
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.hf-booking-subtitle {
	margin: 0;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.7);
}

/* ============================================================================
   STEPS
   ========================================================================= */

.hf-booking-step {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 8px;
	border-left: 4px solid rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
}

.hf-booking-step.active {
	border-left-color: var(--hf-accent-color);
	background: rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 20px rgba(var(--hf-accent-color-rgb, 0, 255, 0), 0.2);
}

.hf-booking-step-title {
	margin: 0 0 1rem 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hf-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--hf-accent-color);
	color: #000;
	border-radius: 50%;
	font-size: 1.1rem;
	font-weight: 900;
	box-shadow: 0 0 15px rgba(var(--hf-accent-color-rgb, 0, 255, 0), 0.5);
}

/* ============================================================================
   FORM FIELDS
   ========================================================================= */

.hf-booking-fields-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns on desktop */
	gap: 1rem;
	align-items: end; /* Align items to the bottom so inputs line up */
}

.hf-booking-fields-row-4 {
	grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 equal columns for 4 fields */
}

.hf-booking-fields-row-2 {
	grid-template-columns: 1fr 1fr; /* 2 equal columns for 2 fields */
}

@media (max-width: 900px) {
	.hf-booking-fields-row,
	.hf-booking-fields-row-4,
	.hf-booking-fields-row-2 {
		grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
	}
}

@media (max-width: 600px) {
	.hf-booking-fields-row,
	.hf-booking-fields-row-4,
	.hf-booking-fields-row-2 {
		grid-template-columns: 1fr; /* Stack on mobile */
	}
}

.hf-booking-field {
	display: flex;
	flex-direction: column;
}

.hf-booking-field label:first-child {
	margin-bottom: 0.5rem;
	font-weight: 700;
	color: var(--hf-accent-color);
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* All inputs and selects - consistent dark styling */
.hf-booking-field input,
.hf-booking-field select {
	height: 52px; /* Fixed height for consistency */
	padding: 0 0.875rem;
	background: #1a1a1a; /* Solid dark background */
	border: 2px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	font-size: 1rem;
	color: #fff;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.hf-input-duration-static {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #fff;
}

.hf-booking-current-details {
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}

.hf-booking-current-title {
	margin: 0 0 0.75rem 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--hf-accent-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hf-booking-current-content {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
}

.hf-booking-current-item {
	margin-bottom: 0.35rem;
}

.hf-reschedule-compare {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 1.5rem;
	align-items: center;
}

.hf-reschedule-card {
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 1rem 1.25rem;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

.hf-reschedule-card h4 {
	margin: 0 0 0.75rem 0;
	font-size: 0.95rem;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--hf-accent-color);
}

.hf-reschedule-row {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.4rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hf-reschedule-row:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.hf-reschedule-label {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hf-reschedule-value {
	color: #fff;
	font-weight: 600;
	text-align: right;
}

.hf-reschedule-arrow {
	font-size: 2rem;
	color: var(--hf-accent-color);
	font-weight: 700;
}

@media (max-width: 900px) {
	.hf-reschedule-compare {
		grid-template-columns: 1fr;
	}

	.hf-reschedule-arrow {
		text-align: center;
	}
}

.hf-booking-form-container[data-mode='reschedule'] .hf-booking-step-summary {
	border-left: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
}

/* Make placeholder more visible */
.hf-booking-field input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

/* Focus state - keep dark background, add accent border */
.hf-booking-field input:focus,
.hf-booking-field select:focus {
	outline: none;
	border-color: var(--hf-accent-color);
	background: #1a1a1a; /* Keep same dark background on focus */
	box-shadow: 0 0 0 3px rgba(var(--hf-accent-color-rgb, 0, 255, 0), 0.2);
	color: #fff; /* Ensure text stays white */
}

/* Dropdown options */
.hf-booking-field select option {
	background: #1a1a1a;
	color: #fff;
	padding: 0.5rem;
}

/* Selected option in dropdown - make text white and clear */
.hf-booking-field select option:checked,
.hf-booking-field select option:hover {
	background: var(--hf-accent-color);
	color: #000;
	font-weight: 600;
}

/* ============================================================================
   TIME SLOTS
   ========================================================================= */

.hf-booking-slots-container {
	min-height: 100px;
}

.hf-booking-slots-prompt {
	text-align: center;
	color: rgba(255, 255, 255, 0.5);
	font-style: italic;
	margin: 2rem 0;
}

.hf-booking-slots-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 600px) {
	.hf-booking-slots-list {
		grid-template-columns: 1fr;
	}
}

.hf-booking-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.4);
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.hf-booking-slot:hover {
	border-color: var(--hf-accent-color);
	background: rgba(0, 0, 0, 0.6);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hf-booking-slot.selected {
	border-color: var(--hf-accent-color);
	background: var(--hf-accent-color);
	color: #000;
	box-shadow: 0 0 20px rgba(var(--hf-accent-color-rgb, 0, 255, 0), 0.4);
}

.hf-booking-slot-time {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.5rem;
}

.hf-booking-slot.selected .hf-booking-slot-time {
	color: #000;
}

.hf-booking-slot-info {
	font-size: 0.9rem;
	opacity: 0.9;
	color: #fff;
}

.hf-booking-slot-count {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
}

.hf-booking-slot.selected .hf-booking-slot-count {
	color: rgba(0, 0, 0, 0.8);
}

/* ============================================================================
   RESOURCES (CAGES)
   ========================================================================= */

/* ============================================================================
   RESOURCE SELECTION - Cage Grid with HitTrax
   ========================================================================= */

.hf-booking-resources-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	padding: 0;
	margin: 0;
}

@media (min-width: 768px) {
	.hf-booking-resources-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.hf-booking-resources-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.hf-booking-cage-box {
	background: rgba(0, 0, 0, 0.4);
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 1rem;
	transition: all 0.3s ease;
	cursor: pointer;
}

.hf-booking-cage-box:hover {
	border-color: var(--hf-accent-color);
	background: rgba(0, 0, 0, 0.6);
}

.hf-booking-cage-box.selected {
	border-color: var(--hf-accent-color);
	background: var(--hf-accent-color);
	color: #000;
	box-shadow: 0 0 20px rgba(var(--hf-accent-color-rgb, 0, 255, 0), 0.4);
}

.hf-booking-cage-name {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0;
	text-align: center;
}

.hf-booking-cage-box.selected .hf-booking-cage-name {
	color: #000;
}

/* HitTrax Option Inside Cage Box */
.hf-booking-hittrax-option {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hf-booking-cage-box.selected .hf-booking-hittrax-option {
	border-top-color: rgba(0, 0, 0, 0.3);
}

.hf-booking-hittrax-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.9);
	justify-content: center;
}

.hf-booking-cage-box.selected .hf-booking-hittrax-label {
	color: rgba(0, 0, 0, 0.8);
}

.hf-booking-hittrax-checkbox {
	width: 16px;
	height: 16px;
	cursor: pointer;
	flex-shrink: 0;
	accent-color: var(--hf-accent-color);
}

.hf-booking-hittrax-checkbox:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.hf-booking-cage-box.selected .hf-booking-hittrax-checkbox {
	accent-color: #000;
}

/* ============================================================================
   ADDONS (HITTRAX)
   ========================================================================= */

.hf-booking-addon-container {
	margin-top: 1.5rem;
	padding: 1.5rem;
	background: rgba(0, 0, 0, 0.3);
	border: 2px dashed rgba(255, 255, 255, 0.2);
	border-radius: 8px;
}

.hf-booking-addon-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	margin: 0;
}

.hf-booking-addon-label input[type='checkbox'] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: var(--hf-accent-color);
}

.hf-booking-addon-text {
	flex: 1;
}

.hf-booking-addon-text .woocommerce-Price-amount {
	color: var(--hf-accent-color);
}

.hf-booking-addon-description {
	margin: 0.5rem 0 0 2.25rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
	font-style: italic;
}

/* ============================================================================
   SUMMARY
   ========================================================================= */

/* Summary Section */
.hf-booking-summary-section {
	margin-bottom: 1.5rem;
}

.hf-booking-summary-section h4 {
	margin: 0 0 0.75rem 0;
	color: var(--hf-accent-color);
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hf-booking-summary-cages {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hf-booking-summary-cages li {
	padding: 0.5rem 0;
	color: #fff;
	font-size: 1rem;
}

/* Price states in summary */
.hf-price-loading {
	color: rgba(255, 255, 255, 0.5);
	font-style: italic;
}

.hf-price-error {
	color: #fca5a5;
	font-size: 0.9em;
}

.hf-booking-summary-fees {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hf-booking-summary-fees li {
	padding: 0.5rem 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.95rem;
	font-style: italic;
}

.hf-hittrax-badge {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	background: rgba(var(--hf-accent-color-rgb, 0, 255, 0), 0.2);
	border: 1px solid var(--hf-accent-color);
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hf-accent-color);
}

.hf-booking-summary {
	background: rgba(0, 0, 0, 0.4);
	padding: 1.5rem;
	border-radius: 8px;
	border: 2px solid var(--hf-accent-color);
	box-shadow: 0 0 15px rgba(var(--hf-accent-color-rgb, 0, 255, 0), 0.2);
}

.hf-booking-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hf-booking-summary-row:last-child {
	border-bottom: none;
}

.hf-booking-summary-label {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.6);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.5px;
}

.hf-booking-summary-value {
	font-weight: 700;
	color: var(--hf-accent-color);
	text-align: right;
	font-size: 1.1rem;
}

.hf-booking-summary-price {
	margin-top: 0.5rem;
	padding-top: 1rem;
	border-top: 2px solid var(--hf-accent-color);
}

.hf-booking-summary-price .hf-booking-summary-value {
	font-size: 1.5rem;
	text-shadow: 0 0 10px rgba(var(--hf-accent-color-rgb, 0, 255, 0), 0.5);
}

/* ============================================================================
   ACTIONS
   ========================================================================= */

.hf-booking-actions {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}

.hf-booking-actions button {
	flex: 1;
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.hf-booking-submit {
	background: var(--hf-accent-color);
	color: #000;
	border: none;
	box-shadow: 0 0 20px rgba(var(--hf-accent-color-rgb, 0, 255, 0), 0.4);
}

.hf-booking-submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(var(--hf-accent-color-rgb, 0, 255, 0), 0.6);
}

.hf-booking-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.hf-booking-reset {
	background: rgba(0, 0, 0, 0.4);
	color: rgba(255, 255, 255, 0.8);
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.hf-booking-reset:hover {
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
}

/* ============================================================================
   LOADING & MESSAGES
   ========================================================================= */

.hf-booking-loading {
	text-align: center;
	padding: 2rem;
	color: rgba(255, 255, 255, 0.7);
}

.hf-booking-spinner {
	width: 40px;
	height: 40px;
	margin: 0 auto 1rem;
	border: 4px solid rgba(255, 255, 255, 0.1);
	border-top-color: var(--hf-accent-color);
	border-radius: 50%;
	animation: hf-spin 0.8s linear infinite;
}

@keyframes hf-spin {
	to {
		transform: rotate(360deg);
	}
}

.hf-booking-messages {
	margin-top: 1rem;
}

.hf-booking-message {
	padding: 1rem 1.25rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	font-weight: 600;
}

.hf-booking-message.error {
	background: rgba(220, 38, 38, 0.2);
	border-left: 4px solid #dc2626;
	color: #fca5a5;
}

/* Error text in slots container */
.hf-booking-error-text {
	color: #fca5a5 !important;
	font-style: normal !important;
}

.hf-booking-message.success {
	background: rgba(22, 163, 74, 0.2);
	border-left: 4px solid #16a34a;
	color: #86efac;
}

.hf-booking-message.info {
	background: rgba(2, 132, 199, 0.2);
	border-left: 4px solid #0284c7;
	color: #7dd3fc;
}

/* ============================================================================
   MOBILE RESPONSIVE
   ========================================================================= */

@media (max-width: 768px) {
	.hf-booking-form-container {
		padding: 1rem;
		margin: 1rem;
	}

	.hf-booking-title {
		font-size: 1.5rem;
	}

	.hf-booking-fields-row {
		grid-template-columns: 1fr;
	}

	.hf-booking-actions {
		flex-direction: column;
	}

	.hf-booking-summary-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}

	.hf-booking-summary-value {
		text-align: left;
	}
}

/* ============================================================================
   ACCESSIBILITY
   ========================================================================= */

.hf-booking-slot:focus,
.hf-booking-resource label:focus {
	outline: 3px solid #0073aa;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
