<?php
/**
 * Modal Container Template
 *
 * Provides the overlay and container for the booking modal.
 *
 * @package KursBooking
 * @since   1.0.0
 */

declare(strict_types=1);

// Prevent direct access.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>

<div class="kb-modal" id="kb-modal" role="dialog" aria-modal="true" aria-labelledby="kb-modal-title" hidden>
	<div class="kb-modal__overlay"></div>
	<div class="kb-modal__container">
		<div class="kb-modal__header">
			<h2 class="kb-modal__title" id="kb-modal-title"><?php esc_html_e( 'Kurs buchen', 'kurs-booking' ); ?></h2>
			<button type="button" class="kb-modal__close" aria-label="<?php esc_attr_e( 'Schließen', 'kurs-booking' ); ?>">
				<span aria-hidden="true">&times;</span>
			</button>
		</div>
		<div class="kb-modal__content" id="kb-modal-content">
			<!-- Booking form will be loaded here -->
			<div class="kb-modal__loading">
				<div class="kb-loading__spinner"></div>
				<p><?php esc_html_e( 'Wird geladen...', 'kurs-booking' ); ?></p>
			</div>
		</div>
	</div>
</div>
