/**
 * ==========================================================================
 * Booking & Order Forms Styles (book_table, order, book_catering_service)
 * ==========================================================================
 */

@media (min-width: 768px) {
    .head-row {
        margin-top: 3.5%;
    }
}

.menuu-item {
    top: 16px;
    height: 40px;
    position: relative;
    padding-left: 2%;
}

.pt-cardds {
    padding: 0 1% 1% 1%;
}

.invalid-feedback {
    width: 100%;
    font-size: 11px;
    color: #ff0707 !important;
    margin: 0;
    position: relative;
    top: -25px;
}

.text-special {
    width: 100%;
    font-size: 11px;
    color: #ff0707 !important;
    margin: 0;
    position: relative;
    top: 0px;
}

.loader {
    display: none;
    position: fixed;
    left: 43%;
    top: 40%;
    transform: translate(-50%, -50%);
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    z-index: 99999999;
}

@media (max-width: 768px) {
    .loader {
        width: 80px;
        height: 80px;
        border: 12px solid #f3f3f3;
        left: 39%;
        border-top: 12px solid #3498db;
    }
}

@media (max-width: 480px) {
    .loader {
        width: 60px;
        left: 39%;
        height: 60px;
        border: 8px solid #f3f3f3;
        border-top: 8px solid #3498db;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Book Catering Service Form (cb-*)
   ========================================================================== */
.cb-section {
    --cb-accent: var(--base-color, #e99022);
    --cb-ink: #1d1d1d;
    --cb-body: #52525b;
    --cb-muted: #8a8a93;
    --cb-line: rgba(0, 0, 0, 0.09);
    --cb-field: #fbfaf7;
    --cb-danger: #e5484d;
    padding: 50px 0 80px;
}

.cb-card {
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.05);
}

/* Steps */
.cb-step {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px dashed var(--cb-line);
}

.cb-step:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.cb-step-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.cb-step-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cb-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

.cb-section .cb-step-title {
    font-size: 19px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
    color: var(--cb-ink);
    margin: 4px 0 2px !important;
}

.cb-step-sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cb-muted);
}

/* Fields */
.cb-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-ink);
}

.cb-label span {
    color: var(--cb-danger);
}

.cb-input-wrap {
    position: relative;
}

.cb-input-wrap > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--cb-muted);
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s ease;
}

.cb-section .cb-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 42px !important;
    background: var(--cb-field);
    border: 1px solid var(--cb-line);
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--cb-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cb-section .cb-input::placeholder {
    color: #a8a8b0 !important;
}

.cb-section .cb-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--cb-accent) !important;
    box-shadow: 0 0 0 4px rgba(233, 144, 34, 0.14) !important;
    color: var(--cb-ink);
}

.cb-input-wrap:focus-within > i {
    color: var(--cb-accent);
}

.cb-section .cb-textarea {
    height: auto;
    min-height: 120px;
    padding: 14px 16px !important;
    resize: vertical;
}

.cb-input-wrap.is-invalid .cb-input,
.cb-section .cb-textarea.is-invalid {
    border-color: var(--cb-danger) !important;
    background: #fff8f8;
}

.cb-error {
    display: none;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--cb-danger);
}

.cb-error.show {
    display: block;
}

.cb-error.show::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 6px;
}

/* Menu picker */
.cb-menu-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.cb-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.cb-filters::-webkit-scrollbar {
    display: none;
}

.cb-filter {
    flex-shrink: 0;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--cb-line);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--cb-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cb-filter:hover {
    border-color: var(--cb-accent);
    color: var(--cb-accent);
}

.cb-filter.active {
    background: var(--cb-ink);
    border-color: var(--cb-ink);
    color: #fff;
}

.cb-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.cb-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--cb-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cb-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.cb-item.is-selected {
    border-color: var(--cb-accent);
    background: rgba(233, 144, 34, 0.05);
}

.cb-item-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    background: #f1ece4;
}

.cb-item-info {
    flex: 1;
    min-width: 0;
}

.cb-item-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--cb-ink);
    margin-bottom: 4px;
}

.cb-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 13px;
}

.cb-item-group {
    color: var(--cb-muted);
}

.cb-item-price {
    font-weight: 700;
    color: var(--cb-accent);
}

.cb-item-action {
    flex-shrink: 0;
}

.cb-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid var(--cb-ink);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--cb-ink);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cb-add-btn:hover {
    background: var(--cb-ink);
    color: #fff;
}

.cb-stepper {
    display: none;
    align-items: center;
    border: 1px solid var(--cb-accent);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.cb-item.is-selected .cb-add-btn {
    display: none;
}

.cb-item.is-selected .cb-stepper {
    display: inline-flex;
}

.cb-step-btn {
    width: 34px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    color: var(--cb-accent);
    cursor: pointer;
    transition: background 0.15s ease;
}

.cb-step-btn:hover {
    background: rgba(233, 144, 34, 0.12);
}

.cb-section .cb-qty {
    width: 44px !important;
    height: 36px;
    padding: 0 !important;
    border: none !important;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--cb-ink) !important;
    -moz-appearance: textfield;
}

.cb-section .cb-qty::-webkit-outer-spin-button,
.cb-section .cb-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cb-empty-note {
    margin: 0;
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--cb-muted);
    border: 1px dashed var(--cb-line);
    border-radius: 14px;
}

/* Summary */
.cb-summary {
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cb-summary-card {
    padding: 26px;
}

.cb-summary-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--cb-line);
    font-size: 17px;
    font-weight: 700;
    color: var(--cb-ink);
}

.cb-summary-title i {
    color: var(--cb-accent);
}

.cb-summary-list {
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.cb-summary-empty {
    margin: 0;
    padding: 18px 0;
    text-align: center;
    font-size: 14px;
    color: var(--cb-muted);
}

.cb-summary-empty i {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
    color: #d4d4d8;
}

.cb-summary-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.cb-summary-qty {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--cb-accent);
}

.cb-summary-name {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    color: var(--cb-ink);
}

.cb-summary-price {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--cb-ink);
}

.cb-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--cb-line);
    font-size: 15px;
    font-weight: 600;
    color: var(--cb-ink);
}

.cb-summary-total strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--cb-accent);
}

.cb-summary-note {
    margin: 6px 0 18px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--cb-muted);
}

.cb-submit {
    position: relative;
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: var(--cb-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(233, 144, 34, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cb-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 30px rgba(233, 144, 34, 0.45);
}

.cb-submit:disabled {
    cursor: wait;
    transform: none;
    filter: none;
}

.cb-spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.cb-submit.is-loading .cb-submit-text {
    display: none;
}

.cb-submit.is-loading .cb-spinner {
    display: inline-block;
}

.cb-privacy {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--cb-muted);
}

.cb-privacy i {
    margin-right: 6px;
}

.cb-help-card {
    padding: 24px;
    background: #1d1d1d;
    border-color: #1d1d1d;
    color: #c9c9cc;
}

.cb-help-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.cb-help-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.cb-help-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.cb-help-list i {
    margin-top: 3px;
    color: var(--cb-accent);
}

.cb-help-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    word-break: break-all;
}

.cb-help-link i {
    color: var(--cb-accent);
}

.cb-help-link:hover {
    color: var(--cb-accent) !important;
}

@media (max-width: 991px) {
    .cb-summary {
        position: static;
    }
}

@media (max-width: 575px) {
    .cb-section {
        padding: 28px 0 56px;
    }

    .cb-card {
        padding: 20px;
        border-radius: 14px;
    }

    .cb-item {
        flex-wrap: wrap;
    }

    .cb-item-img {
        width: 52px;
        height: 52px;
    }

    .cb-item-info {
        flex: 1 1 calc(100% - 66px);
    }

    .cb-item-action {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

