/**
 * Frontend Styles for X3Web Booking Engine
 *
 * @package X3Web\BookingEngine
 */

.xweb-booking-wizard {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.xweb-booking-step {
    display: none;
}

.xweb-booking-step.active {
    display: block;
}

.xweb-booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.xweb-booking-progress li {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 10px;
}

.xweb-booking-progress li.completed {
    color: #2271b1;
    font-weight: 600;
}

.xweb-booking-progress li.active {
    color: #2271b1;
    font-weight: 600;
}

.xweb-booking-form-group {
    margin-bottom: 20px;
}

.xweb-booking-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.xweb-booking-form-group input,
.xweb-booking-form-group select,
.xweb-booking-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.xweb-booking-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.xweb-booking-time-slot {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.xweb-booking-time-slot:hover {
    border-color: #2271b1;
}

.xweb-booking-time-slot.selected {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.xweb-booking-time-slot.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.xweb-booking-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.xweb-booking-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.xweb-booking-btn-primary {
    background: #2271b1;
    color: #fff;
}

.xweb-booking-btn-primary:hover {
    background: #135e96;
}

.xweb-booking-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.xweb-booking-btn-secondary:hover {
    background: #dcdcde;
}

.xweb-booking-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.xweb-booking-summary h3 {
    margin-top: 0;
}

.xweb-booking-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.xweb-booking-summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 18px;
}

.xweb-book-now-button {
    background: #2271b1 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.xweb-book-now-button:hover {
    background: #135e96 !important;
    color: #fff !important;
}

.xweb-wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 10px;
}

.xweb-wizard-step {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    background: #f0f0f1;
    border-radius: 4px;
    opacity: 0.5;
}

.xweb-wizard-step.active {
    opacity: 1;
    background: #2271b1;
    color: #fff;
}

.xweb-wizard-step .step-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.xweb-wizard-step .step-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.xweb-wizard-panel {
    display: none;
}

.xweb-wizard-panel.active {
    display: block;
}

.xweb-wizard-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.xweb-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.xweb-time-slot {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    background: #fff;
}

.xweb-time-slot:hover {
    border-color: #2271b1;
}

.xweb-time-slot.selected {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.xweb-time-slot.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
}

.xweb-booking-details-form p {
    margin-bottom: 15px;
}

.xweb-booking-details-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.xweb-booking-details-form input,
.xweb-booking-details-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.xweb-booking-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.xweb-booking-summary p {
    margin: 10px 0;
}

.xweb-wizard-loading {
    text-align: center;
    padding: 40px;
}

.xweb-date-picker label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.xweb-date-picker input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
