/**
 * Party Packages Booking Form Styles
 * Dark theme for booking forms
 */

.hf-party-booking-form {
	background: var(--hf-background-color);
	color: #fff;
	padding: 40px 20px;
	min-height: 100vh;
}

/* Back Link */
.hf-booking-back-link {
	max-width: 900px;
	margin: 0 auto 30px;
}

.hf-booking-back-link a {
	color: var(--hf-accent-color);
	text-decoration: none;
	font-size: 1rem;
	transition: color 0.3s ease;
}

.hf-booking-back-link a:hover {
	color: var(--hf-accent-color-hover);
}

/* Package Summary */
.hf-package-summary {
	max-width: 900px;
	margin: 0 auto 40px;
	background: var(--hf-card-background);
	border: 1px solid #333;
	border-radius: 8px;
	padding: 30px;
}

.hf-package-summary h2 {
	margin: 0 0 15px 0;
	font-size: 2rem;
	color: #fff;
}

.hf-package-summary-description {
	font-size: 1.125rem;
	line-height: 1.6;
	color: #ccc;
	margin: 0 0 25px 0;
}

.hf-package-summary-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.hf-summary-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.hf-summary-label {
	font-size: 0.875rem;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hf-summary-value {
	font-size: 1.25rem;
	font-weight: 600;
	color: #fff;
}

.hf-summary-price .hf-summary-value {
	font-size: 2rem;
	color: var(--hf-accent-color);
}

/* Booking Form Container */
.hf-booking-form-container {
	max-width: 900px;
	margin: 0 auto;
}

.hf-booking-form {
	background: var(--hf-card-background);
	border: 1px solid #333;
	border-radius: 8px;
	padding: 30px;
}

/* Form Sections */
.hf-form-section {
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid #333;
}

.hf-form-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.hf-form-section h3 {
	margin: 0 0 20px 0;
	font-size: 1.5rem;
	color: #fff;
}

/* Form Rows and Fields */
.hf-form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

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

.hf-form-field.hf-field-full {
	grid-column: 1 / -1;
}

.hf-form-field label {
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: #fff;
}

.hf-form-field label .required {
	color: var(--hf-accent-color);
}

.hf-form-field input[type='text'],
.hf-form-field input[type='email'],
.hf-form-field select,
.hf-form-field textarea {
	padding: 12px 15px;
	background: var(--hf-background-color);
	border: 1px solid #444;
	border-radius: 4px;
	color: #fff;
	font-size: 1rem;
	line-height: 1.5;
	height: 46px;
	transition: border-color 0.3s ease;
}

.hf-form-field textarea {
	height: auto;
	min-height: 100px;
}

.hf-form-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 40px;
}

.hf-form-field input[type='text']:focus,
.hf-form-field input[type='email']:focus,
.hf-form-field select:focus,
.hf-form-field textarea:focus {
	outline: none;
	border-color: var(--hf-accent-color);
	color: #e0e0e0;
}

/* Ensure autofill and other states have light text */
.hf-form-field input[type='text']:-webkit-autofill,
.hf-form-field input[type='email']:-webkit-autofill {
	-webkit-text-fill-color: #e0e0e0;
	-webkit-box-shadow: 0 0 0px 1000px var(--hf-background-color) inset;
	transition: background-color 5000s ease-in-out 0s;
}

.hf-field-description {
	font-size: 0.875rem;
	color: #999;
	margin-bottom: 8px;
}

/* Radio Group */
.hf-radio-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hf-radio-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	padding: 12px;
	background: var(--hf-background-color);
	border: 1px solid #444;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.hf-radio-label:hover {
	border-color: var(--hf-accent-color);
}

.hf-radio-label input[type='radio'] {
	margin: 0;
}

.hf-radio-label span {
	font-size: 1rem;
	color: #fff;
}

/* Buttons */
.hf-btn {
	padding: 14px 30px;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hf-btn-primary {
	background: var(--hf-accent-color);
	color: #fff;
}

.hf-btn-primary:hover:not(:disabled) {
	background: var(--hf-accent-color-hover);
}

.hf-btn-success {
	background: #27ae60;
	color: #fff;
}

.hf-btn-success:hover:not(:disabled) {
	background: #229954;
}

.hf-btn-lg {
	padding: 16px 40px;
	font-size: 1.125rem;
}

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

.hf-form-actions {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.hf-final-actions {
	margin-top: 30px;
}

/* Availability Status */
.hf-availability-status {
	max-width: 900px;
	margin: 20px auto;
	padding: 20px;
	border-radius: 8px;
}

.hf-availability-status.success {
	background: rgba(39, 174, 96, 0.2);
	border: 1px solid #27ae60;
	color: #fff;
}

.hf-availability-status.error {
	background: rgba(231, 76, 60, 0.2);
	border: 1px solid #e74c3c;
	color: #fff;
}

/* Cart Error Status (appears near booking button) */
.hf-cart-error-status {
	max-width: 900px;
	margin: 20px auto;
	padding: 20px;
	border-radius: 8px;
	background: rgba(231, 76, 60, 0.2);
	border: 1px solid #e74c3c;
	color: #fff;
}

/* Add-ons Section */
.hf-addons-section {
	display: none;
}

.hf-addons-section.active {
	display: block;
}

.hf-addons-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hf-addon-item {
	background: #0a0a0a;
	border: 1px solid #333;
	border-radius: 8px;
	padding: 20px;
	transition: border-color 0.3s ease;
}

.hf-addon-item.selected {
	border-color: var(--hf-accent-color);
}

.hf-addon-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.hf-addon-checkbox {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.hf-addon-checkbox input[type='checkbox'] {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.hf-addon-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #fff;
}

.hf-addon-price {
	font-size: 1rem;
	font-weight: 600;
	color: var(--hf-accent-color);
}

.hf-addon-description {
	font-size: 0.875rem;
	color: #999;
	margin: 0 0 15px 0;
}

.hf-addon-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	padding-top: 15px;
	border-top: 1px solid #333;
}

.hf-addon-field label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: #fff;
}

.hf-addon-field select,
.hf-addon-field input[type='text'],
.hf-addon-field input[type='number'] {
	width: 100%;
	padding: 12px 15px;
	background: var(--hf-background-color);
	border: 1px solid #444;
	border-radius: 4px;
	color: #fff;
	font-size: 0.875rem;
	line-height: 1.5;
	height: 46px;
	transition: border-color 0.3s ease;
}

.hf-addon-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 40px;
}

.hf-addon-field select:focus,
.hf-addon-field input[type='text']:focus,
.hf-addon-field input[type='number']:focus {
	outline: none;
	border-color: var(--hf-accent-color);
	color: #e0e0e0;
}

/* Ensure autofill and other states have light text */
.hf-addon-field input[type='text']:-webkit-autofill,
.hf-addon-field input[type='number']:-webkit-autofill {
	-webkit-text-fill-color: #e0e0e0;
	-webkit-box-shadow: 0 0 0px 1000px var(--hf-background-color) inset;
	transition: background-color 5000s ease-in-out 0s;
}

.hf-addon-single-duration {
	margin: 10px 0;
	color: var(--hf-accent-color);
	font-weight: 500;
	font-size: 0.95em;
}

.hf-addon-total-time {
	margin-top: 10px;
	color: #666;
	font-size: 0.9em;
	display: flex;
	justify-content: space-between;
	gap: 15px;
	align-items: flex-end;
}

.hf-addon-total-time-label {
	font-weight: 500;
	white-space: nowrap;
}

.hf-addon-total-time-values {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

/* Price Summary */
.hf-price-summary {
	max-width: 900px;
	margin: 30px auto 0;
	padding: 25px;
	background: var(--hf-card-background);
	border: 1px solid #333;
	border-radius: 8px;
}

.hf-price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
}

.hf-price-row:not(:last-child) {
	border-bottom: 1px solid #333;
}

.hf-price-label {
	font-size: 1rem;
	color: #ccc;
}

.hf-price-value {
	font-size: 1.125rem;
	font-weight: 600;
	color: #fff;
}

.hf-price-total {
	margin-top: 10px;
	padding-top: 15px;
	border-top: 2px solid #444 !important;
}

.hf-price-total .hf-price-label {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
}

.hf-price-total .hf-price-value {
	font-size: 2rem;
	color: var(--hf-accent-color);
}

/* Loading Overlay */
.hf-booking-loader {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hf-loader-content {
	text-align: center;
}

.hf-spinner {
	border: 4px solid #333;
	border-top: 4px solid var(--hf-accent-color);
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: hf-spin 1s linear infinite;
	margin: 0 auto 20px;
}

@keyframes hf-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.hf-loader-content p {
	color: #fff;
	font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
	.hf-party-booking-form {
		padding: 20px 15px;
	}

	.hf-package-summary,
	.hf-booking-form {
		padding: 20px;
	}

	.hf-package-summary h2 {
		font-size: 1.5rem;
	}

	.hf-form-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.hf-addon-details {
		grid-template-columns: 1fr;
	}

	.hf-summary-price .hf-summary-value {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	.hf-package-summary h2 {
		font-size: 1.25rem;
	}

	.hf-form-section h3 {
		font-size: 1.25rem;
	}

	.hf-btn {
		width: 100%;
		padding: 12px 20px;
	}

	.hf-price-total .hf-price-value {
		font-size: 1.5rem;
	}
}
