/* Extracted from Views/EventsBooking/EventBooking.cshtml (#842).
   Razor emits inline blocks into the assembly string heap; a static file does not.
   Razor-free blocks only — anything with an @ expression stayed in the view. */
.booking-auth-badge {
        position: absolute;
        top: 12px;
        right: 16px;
        z-index: 100;
        font-size: 13px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        /* SHARE: flex row so the share button (when present) sits inline with the
           auth pill, keeping a single top-right cluster regardless of auth state. */
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .booking-auth-badge a,
    .booking-auth-badge span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 20px;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    .booking-auth-login {
        background: rgba(255,255,255,0.85);
        backdrop-filter: blur(6px);
        color: #444;
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }
    .booking-auth-login:hover {
        background: rgba(255,255,255,0.95);
        color: #222;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        text-decoration: none;
    }
    .booking-auth-signed-in {
        background: rgba(255,255,255,0.85);
        backdrop-filter: blur(6px);
        color: #2d7a3a;
        border: 1px solid rgba(45,122,58,0.15);
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        font-weight: 500;
    }
    .booking-auth-signed-in .auth-email {
        color: #555;
        font-weight: 400;
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .booking-auth-logout {
        color: #999;
        font-size: 11px;
        margin-left: 4px;
        text-decoration: none;
        cursor: pointer;
    }
    .booking-auth-logout:hover {
        color: #c0392b;
    }
    @media (max-width: 768px) {
        .booking-auth-badge {
            top: 8px;
            right: 8px;
            font-size: 12px;
        }
        .booking-auth-badge a,
        .booking-auth-badge span {
            padding: 5px 10px;
        }
        .booking-auth-signed-in .auth-email {
            max-width: 100px;
        }
    }

.booking-hub { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
        .booking-hub h2 { text-align: center; font-weight: 700; color: #333; margin-bottom: 8px; }
        .booking-hub .hub-subtitle { text-align: center; color: #666; font-size: 15px; margin-bottom: 32px; }
        .org-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
        .org-card {
            background: white;
            border-radius: 16px;
            padding: 28px 24px;
            text-align: center;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }
        .org-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 30px rgba(34, 164, 71, 0.2);
            text-decoration: none;
            color: inherit;
        }
        .org-card-logo {
            width: 120px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .org-card-logo img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
        .org-card-logo .placeholder-icon {
            width: 64px;
            height: 64px;
            border-radius: 16px;
            background: var(--color-green, #22A447);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            color: white;
            font-weight: 700;
        }
        .org-card-name {
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }
        .org-card-cta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 24px;
            background: var(--color-green, #22A447);
            color: white;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            transition: opacity 0.2s;
        }
        .org-card:hover .org-card-cta { opacity: 0.9; }
        @media (max-width: 600px) {
            .org-cards { grid-template-columns: 1fr; }
            .booking-hub { padding: 24px 16px; }
        }

.discovery-section {
                margin-top: 24px; max-width: 900px; margin-left: auto; margin-right: auto;
                padding: 24px 28px; background: white; border-radius: 16px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #e0ece8;
            }
            .discovery-header { display:flex; align-items:flex-start; gap:14px; margin-bottom:16px; }
            .discovery-header > i {
                flex: 0 0 auto; font-size: 28px; color: #1abc9c;
                background: #e8faf6; padding: 12px; border-radius: 12px;
            }
            .discovery-search-wrap { position: relative; }
            .discovery-search-icon {
                position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
                color: #95a5a6; font-size: 14px;
            }
            #discoveryQuery {
                width: 100%; padding: 12px 14px 12px 38px; font-size: 15px;
                border: 1px solid #d8e0dc; border-radius: 10px; outline: none;
                transition: border-color 0.15s, box-shadow 0.15s;
            }
            #discoveryQuery:focus { border-color: #1abc9c; box-shadow: 0 0 0 3px rgba(26,188,156,0.12); }
            .discovery-results { margin-top: 14px; display: grid; gap: 8px; }
            .discovery-close {
                background: transparent; border: none; cursor: pointer;
                color: #95a5a6; font-size: 22px; line-height: 1; padding: 0 6px;
                margin-left: auto; align-self: flex-start;
            }
            .discovery-close:hover { color: #2c3e50; }
            .org-card--discover { border: 2px dashed #b8e6dc; background: #f6fbf9; }
            .org-card--discover:hover { box-shadow: 0 8px 30px rgba(26, 188, 156, 0.18); }
            .discovery-result {
                display: flex; align-items: center; gap: 14px; padding: 12px 14px;
                border: 1px solid #e6ece9; border-radius: 10px; text-decoration: none;
                color: inherit; transition: background 0.15s, border-color 0.15s;
            }
            .discovery-result:hover { background: #f6fbf9; border-color: #b8e6dc; }
            /* Logo container — sized + clipped. Background varies by image vs placeholder. */
            .discovery-result-logo {
                flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px;
                display: flex; align-items: center; justify-content: center;
                overflow: hidden;
            }
            /* Image variant — white pad, contain (no crop), bordered for definition. */
            .discovery-result-logo--image {
                background: #ffffff; border: 1px solid #e6ece9;
            }
            .discovery-result-logo--image img {
                width: 100%; height: 100%; object-fit: contain; display: block;
            }
            /* Placeholder variant — gradient + initial letter, only when there's no image. */
            .discovery-result-logo--placeholder {
                background: linear-gradient(135deg, var(--color-green, #22A447) 0%, #1abc9c 100%);
                color: white; font-weight: 700; font-size: 16px;
            }
            .discovery-result-body { flex: 1; min-width: 0; }
            .discovery-result-name { font-weight: 600; color: #2c3e50; font-size: 15px; }
            .discovery-result-meta { color: #7f8c8d; font-size: 12px; margin-top: 2px; }
            .discovery-result-cta {
                flex: 0 0 auto; padding: 6px 12px; background: #e8faf6; color: #0f5e4a;
                border-radius: 6px; font-size: 12px; font-weight: 600;
            }
            .discovery-empty { padding: 14px; color: #7f8c8d; font-size: 13px; text-align: center; background: #fafafa; border-radius: 8px; margin-top: 10px; }
            .discovery-hint { padding: 10px 0 0; color: #95a5a6; font-size: 12px; }

.shipment-setup-banner {
                margin-top: 24px;
                max-width: 900px;
                margin-left: auto;
                margin-right: auto;
                padding: 0 20px;
            }
            .shipment-setup-content {
                background: white;
                border-radius: 16px;
                padding: 24px 28px;
                display: flex;
                align-items: center;
                gap: 20px;
                box-shadow: 0 2px 12px rgba(0,0,0,0.08);
                border-left: 4px solid var(--color-green, #22A447);
                position: relative;
            }
            .shipment-setup-icon {
                font-size: 36px;
                flex-shrink: 0;
            }
            .shipment-setup-text {
                flex: 1;
            }
            .shipment-setup-text h3 {
                margin: 0 0 4px 0;
                font-size: 17px;
                font-weight: 700;
                color: #333;
            }
            .shipment-setup-text p {
                color: #666 !important;
                font-size: 14px;
                margin: 0 !important;
                line-height: 1.5;
            }
            .shipment-setup-cta {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                padding: 10px 24px;
                background: var(--color-green, #22A447);
                color: white !important;
                border-radius: 8px;
                font-weight: 600;
                font-size: 14px;
                text-decoration: none;
                white-space: nowrap;
                transition: opacity 0.2s, transform 0.15s;
                flex-shrink: 0;
            }
            .shipment-setup-cta:hover {
                opacity: 0.9;
                transform: translateY(-1px);
                text-decoration: none;
                color: white !important;
            }
            .shipment-setup-dismiss {
                position: absolute;
                top: 8px;
                right: 12px;
                background: none;
                border: none;
                font-size: 20px;
                color: #aaa;
                cursor: pointer;
                padding: 4px 8px;
                line-height: 1;
            }
            .shipment-setup-dismiss:hover { color: #666; }
            @media (max-width: 600px) {
                .shipment-setup-content {
                    flex-direction: column;
                    text-align: center;
                    padding: 20px 16px;
                    gap: 12px;
                }
                .shipment-setup-cta { width: 100%; justify-content: center; }
            }

/* "+ Add another" list questions (the BOL-number case). Kept here rather than in a <style>
   block in the view: every string in a .cshtml lands in the assembly's user-string heap, and
   that heap is the CS8103 ceiling this app keeps running into. */
.multi-value-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.multi-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.multi-value-row .multi-value-input {
    flex: 1 1 auto;
}

.multi-value-remove {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border, #d0d5dd);
    border-radius: var(--radius-sm, 6px);
    background: transparent;
    color: var(--color-text-muted, #667085);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.multi-value-remove:hover {
    background: var(--color-surface-muted, #f2f4f7);
    color: var(--color-text, #101828);
}

.multi-value-add {
    margin-top: 8px;
    padding: 8px 4px;
    min-height: 44px;
    border: none;
    background: transparent;
    color: var(--color-green, #22A447);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.multi-value-add:hover {
    text-decoration: underline;
}

.multi-value-remove:focus-visible,
.multi-value-add:focus-visible {
    outline: 3px solid var(--color-green, #22A447);
    outline-offset: 2px;
}

/* Staff booking view. The internal Book Appointment page and the public /book/{org} page are
   the same view; this hides the org's own branding for the staff one, where it is telling
   someone what they already know and pushing the form down the screen. */
.booking-org-col--staff .company-logo,
.booking-org-col--staff .org-letter-toggle,
.booking-org-col--staff .company_des {
    display: none;
}

.staff-booking-note {
    border: 1px solid var(--color-border, #d0d5dd);
    border-radius: var(--radius-md, 8px);
    padding: 12px 16px;
    margin-bottom: 12px;
    background: var(--color-surface-muted, #f9fafb);
}

.staff-booking-note__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--color-text, #101828);
}

.staff-booking-note__cog {
    color: var(--color-text-muted, #667085);
    font-size: 15px;
    line-height: 1;
    padding: 6px;
    text-decoration: none;
}

.staff-booking-note__cog:hover {
    color: var(--color-green, #22A447);
}

.staff-booking-note__cog:focus-visible {
    outline: 3px solid var(--color-green, #22A447);
    outline-offset: 2px;
    border-radius: 4px;
}

.staff-booking-note p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text-muted, #475467);
    margin: 0 0 8px;
}

/* A yes/no question rendered as one box you tick, and questions attached under their parent.
   Kept out of the view for the CS8103 user-string ceiling, like the rest of this file. */
.yesno-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text, #101828);
    margin: 0;
    min-height: 44px;
    padding: 10px 0;
}

.yesno-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
    accent-color: var(--color-green, #22A447);
}

.yesno-checkbox input[type="checkbox"]:focus-visible {
    outline: 3px solid var(--color-green, #22A447);
    outline-offset: 2px;
}

/* Sits under the question it belongs to, indented just enough to read as part of it. */
.booking-q-attached {
    margin: -8px 0 4px;
    padding-left: 2px;
}

.booking-q-attached[hidden] {
    display: none;
}

/* One address box that becomes four. City, state and zip sit inside the Address Line 1 block
   and stay out of the way until a place is picked or the booker asks to type them. Hidden with
   an attribute rather than by removing them, so their values still submit and the show-when
   engine still sees them. */
.booking-q-attached.address-part[data-address-collapsed] {
    display: none;
}

.address-manual-toggle {
    display: block;
    margin-top: 4px;
    padding: 6px 0;
    min-height: 44px;
    border: none;
    background: transparent;
    color: var(--color-green, #22A447);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.address-manual-toggle:hover {
    text-decoration: underline;
}

.address-manual-toggle:focus-visible {
    outline: 3px solid var(--color-green, #22A447);
    outline-offset: 2px;
}
