/**
 * Table Reservations Public/Frontend CSS
 */

/* ==========================================================================
   BOOKING FORM WRAPPER & PROGRESS STEPS
   ========================================================================== */

.lfc-tr-booking-wrapper {
    margin: 0 auto;
}

.lfc-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 40px;
}

.lfc-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.lfc-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.lfc-step-check.uk-icon {
    display: none;
}

.lfc-step-num {
    display: inline;
}

.lfc-step-item.completed .lfc-step-num {
    display: none;
}

.lfc-step-item.completed .lfc-step-check {
    display: inline;
}

.lfc-step-label {
    font-size: 12px;
    text-align: center;
}

.lfc-step-divider {
    width: 60px;
    height: 2px;
    margin: 0 10px 20px 10px;
}

/* ==========================================================================
   STEP COMMON STYLES
   ========================================================================== */

.lfc-step {
    padding: 30px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.lfc-step-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

/* ==========================================================================
   STEP 1: PEOPLE SELECTION
   ========================================================================== */

.lfc-store-selection {
    margin-bottom: 30px;
    text-align: center;
}

.lfc-store-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.lfc-store-select {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

.lfc-people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.lfc-people-btn {
    border-radius: 8px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
}

.lfc-people-number {
    font-size: 24px;
    font-weight: 600;
}

.lfc-max-people-alert {
    margin-top: 20px;
}

.lfc-max-people-alert-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================================
   STEP 2: DATE & TIME SELECTION
   ========================================================================== */

.lfc-custom-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 4px;
}

.lfc-custom-input,
.lfc-custom-select {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 40px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.lfc-custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.lfc-custom-select::-ms-expand {
    display: none;
}

.lfc-field-icon {
    position: absolute;
    pointer-events: none;
}

.lfc-field-icon-left {
    left: 12px;
}

.lfc-field-icon-right {
    right: 12px;
}

.flatpickr-calendar {
    z-index: 9999 !important;
}

.lfc-availability-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.lfc-time-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.lfc-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.lfc-nav-link:hover {
    opacity: 0.7;
}

.lfc-areas-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lfc-area-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.lfc-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lfc-time-slot-btn {
    flex: 0 0 calc((100% - 32px) / 5);
    padding: 10px 5px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

/* Flatpickr: Hide month/year dropdowns */
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    background: transparent;
    border: none;
    padding: 0;
}

.flatpickr-calendar .flatpickr-current-month select::-ms-expand {
    display: none;
}

.flatpickr-calendar .numInputWrapper {
    display: none !important;
}

.flatpickr-calendar .flatpickr-current-month {
    pointer-events: none;
}

.flatpickr-calendar .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-next-month {
    pointer-events: auto;
}

/* ==========================================================================
   STEP 3: CUSTOMER DETAILS
   ========================================================================== */

.lfc-booking-summary {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.lfc-important-notice {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.lfc-notice-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.lfc-notice-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.lfc-notice-content p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.lfc-summary-item {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lfc-summary-icon {
    width: 20px;
    height: 20px;
}

.lfc-form-fields {
    margin-bottom: 30px;
}

.lfc-form-fields label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.optional-label {
    font-weight: 400;
    font-size: 13px;
}

.lfc-input-wrapper {
    position: relative;
}

.lfc-input-wrapper.uk-form-success .lfc-icon-success {
    display: inline-flex !important;
}

.lfc-input-wrapper.uk-form-success .lfc-icon-danger {
    display: none !important;
}

.lfc-input-wrapper.uk-form-danger .lfc-icon-danger {
    display: inline-flex !important;
}

.lfc-input-wrapper.uk-form-danger .lfc-icon-success {
    display: none !important;
}

.lfc-input-error {
    font-size: 12px;
    margin-top: 5px;
}

.lfc-action-buttons {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
}

.lfc-submit-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lfc-submit-loading p {
    margin-top: 15px;
    font-size: 16px;
}

/* ==========================================================================
   SUCCESS MESSAGE
   ========================================================================== */

.lfc-success-message {
    text-align: center;
    padding: 60px 20px;
}

.lfc-success-content {
    max-width: 500px;
    margin: 0 auto;
}

.lfc-success-icon-btn {
    margin-bottom: 30px;
}

.lfc-success-icon-btn .uk-icon-button {
    width: 80px;
    height: 80px;
}

.lfc-success-content h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

.lfc-success-details {
    margin: 30px 0;
}

.lfc-success-details p {
    font-size: 16px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 640px) {
    .lfc-tr-booking-wrapper {
        padding: 15px;
    }

    .lfc-progress-steps {
        padding: 15px 0 30px;
    }

    .lfc-step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .lfc-step-label {
        font-size: 10px;
    }

    .lfc-step-divider {
        width: 30px;
    }

    .lfc-time-slots {
        gap: 6px;
    }

    .lfc-time-slot-btn {
        flex: 0 0 calc((100% - 24px) / 5);
        padding: 8px 3px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .lfc-people-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lfc-people-btn {
        padding: 15px 8px;
    }

    .lfc-booking-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lfc-action-buttons {
        grid-template-columns: 1fr;
    }
}
