/* ============================================================
   POTHIK — Ticket Katun / Booking Module Stylesheet
   Scoped to .bk-dashboard wrapper.
   Strictly adheres to Pothik Main Dashboard & Complaint design system.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
.bk-dashboard {
    --primary:        #0F5D4A;
    --primary-hover:  #0D4F3F;
    --secondary:      #2E8B57;
    --bg-page:        #FFFFFF;
    --bg-surface:     #F9FAFB;
    --bg-surface-alt: #F3F4F6;
    --border:         #E5E7EB;
    --border-hover:   #D1D5DB;
    --text-head:      #111827;
    --text-body:      #374151;
    --text-muted:     #6B7280;
    --text-xmuted:    #9CA3AF;
    --green-light:    #ECFDF5;
    --green-mid:      #D1FAE5;
    --amber:          #F59E0B;
    --amber-light:    #FEF3C7;
    --shadow-xs:      0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:      0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg:      0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --radius-sm:      10px;
    --radius-md:      16px;
    --radius-lg:      20px;
    --radius-pill:    999px;
    --transition:     0.18s ease;
    --font-head:      'Manrope', 'Inter', -apple-system, sans-serif;
    --font-body:      'Inter', -apple-system, sans-serif;
    --max-w:          1280px;
}

/* ── Hard Reset for page ───────────────────────────────────── */
.bk-dashboard *,
.bk-dashboard *::before,
.bk-dashboard *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body:has(.bk-dashboard),
html:has(.bk-dashboard) {
    background: #fff !important;
    color: #111827 !important;
    color-scheme: light !important;
}

body:has(.bk-dashboard)::before,
body:has(.bk-dashboard)::after {
    display: none !important;
}

.bk-dashboard {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navbar (Identical to Main Dashboard) ──────────────────── */
.bk-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.bk-navbar__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.bk-navbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.bk-navbar__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--green-light);
    padding: 4px;
}

.bk-navbar__name {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.4px;
    text-decoration: none !important;
    -webkit-text-fill-color: unset;
    background: none;
}

.bk-navbar__links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bk-navbar__links a {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: var(--transition);
    background: transparent;
}

.bk-navbar__links a:hover {
    color: var(--primary) !important;
    background: var(--green-light);
    border-color: var(--green-mid);
}

.bk-navbar__links a.active {
    color: var(--primary) !important;
    background: var(--green-light);
    border-color: var(--green-mid);
    font-weight: 700;
}

.bk-navbar__links a.bk-nav-cta {
    color: var(--primary) !important;
    border-color: var(--primary);
    background: var(--green-light);
}

.bk-navbar__links a.bk-nav-cta:hover {
    background: var(--primary);
    color: #fff !important;
}

/* ── Page Layout ───────────────────────────────────────────── */
.bk-page {
    flex: 1;
    background: var(--bg-page);
}

.bk-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Hero Section (Matching Complaint Dashboard nd-hero) ───── */
.bk-hero {
    position: relative;
    width: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
}

.bk-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.bk-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    transform: scale(1.07);
    transform-origin: right center;
    transition: transform 0.3s ease;
}

.bk-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 80px 40px;
}

.bk-hero__content {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bk-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px 5px 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--green-mid);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 22px;
    letter-spacing: 0.1px;
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(8px);
}

.bk-hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
    flex-shrink: 0;
}

.bk-hero__headline {
    width: 100%;
    font-family: var(--font-head);
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-head);
    margin-bottom: 20px;
    text-align: left;
    background: none;
    -webkit-text-fill-color: var(--text-head);
}

.bk-hero__headline span {
    display: block;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.bk-hero__sub {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 460px;
}

.bk-hero__ctas {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Buttons (Matching Main Dashboard md-btn) ──────────────── */
.bk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.bk-btn-primary {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

.bk-btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff !important;
}

.bk-btn-secondary {
    background: #fff;
    color: var(--primary) !important;
    border-color: var(--primary);
}

.bk-btn-secondary:hover {
    background: var(--green-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: var(--primary) !important;
}

.bk-btn-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ── Section Header ─────────────────────────────────────────── */
.bk-section {
    padding: 72px 0;
}

.bk-section + .bk-section {
    padding-top: 0;
}

.bk-section__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
}

.bk-section__title {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-head);
    letter-spacing: -0.8px;
    margin-bottom: 10px;
    line-height: 1.2;
    text-align: left;
}

.bk-section__sub {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 560px;
}

/* ── Transport Cards Grid (8 Transport Options) ────────────── */
.bk-transport-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Transport Card (Matching Main Dashboard md-service-card) ─ */
.bk-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
    color: var(--text-body) !important;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.bk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.bk-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    color: var(--text-body) !important;
}

.bk-card:hover::before {
    transform: scaleX(1);
}

.bk-card__icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--green-light);
    border: 1px solid var(--green-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.bk-card:hover .bk-card__icon-wrap {
    background: var(--primary);
    border-color: var(--primary);
}

.bk-card__title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-head);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.bk-card__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 22px;
}

.bk-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary) !important;
    text-decoration: none !important;
    letter-spacing: 0.1px;
}

.bk-card__link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}

.bk-card:hover .bk-card__link svg {
    transform: translateX(3px);
}

/* ── Category Header (For Provider Pages) ──────────────────── */
.bk-category-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

/* Breadcrumb hidden — removed from all booking pages */
.bk-breadcrumb {
    display: none;
}

.bk-category-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.bk-category-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bk-category-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--green-light);
    border: 1px solid var(--green-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.bk-category-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.4px;
    line-height: 1.2;
    background: none;
    -webkit-text-fill-color: unset;
}

.bk-category-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.4;
}

.bk-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-body) !important;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    text-decoration: none !important;
    transition: var(--transition);
}

.bk-back-btn:hover {
    color: var(--primary) !important;
    border-color: var(--border-hover);
    background: var(--bg-surface-alt);
    transform: translateX(-2px);
}

/* ── Provider Cards Grid & Card ────────────────────────────── */
.bk-providers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bk-provider-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 26px 26px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bk-provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.bk-provider-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.bk-provider-card:hover::before {
    transform: scaleX(1);
}

.bk-provider-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    width: 100%;
}

.bk-provider-card__logo-wrap {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 6px;
}

.bk-provider-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bk-provider-card__logo-fallback {
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--green-light);
    color: var(--primary);
    border-radius: calc(var(--radius-sm) - 4px);
}

.bk-provider-card__meta {
    flex: 1;
    min-width: 0;
}

.bk-provider-card__name {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 800;
    color: var(--text-head);
    letter-spacing: -0.3px;
    line-height: 1.25;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bk-provider-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--secondary);
}

.bk-provider-card__tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
}

.bk-provider-card__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 24px;
    width: 100%;
}

.bk-provider-card__footer {
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.bk-provider-card__btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
}

/* ── Empty State (Matching Complaint Dashboard nd-empty-state) */
.bk-empty-state {
    padding: 64px 24px;
    text-align: center;
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.bk-empty-state__icon {
    font-size: 48px;
    margin-bottom: 16px;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xs);
}

.bk-empty-state__title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-head);
    margin-bottom: 8px;
}

.bk-empty-state__text {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ── Site Footer (Identical to Main Dashboard) ─────────────── */
.bk-dashboard .site-footer {
    background: var(--bg-surface) !important;
    border-top: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
    font-size: 13px;
    text-align: center;
    padding: 24px 40px;
    margin-top: auto;
}

.bk-dashboard .site-footer p {
    color: var(--text-muted) !important;
    margin: 3px 0;
}

/* ── Floating AI Widget override for white page ─────────────── */
.bk-dashboard .floating-ai-widget {
    background: var(--primary) !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 8px 24px rgba(15,93,74,0.25), 0 2px 6px rgba(0,0,0,0.1) !important;
}

.bk-dashboard .floating-ai-widget:hover {
    background: var(--primary-hover) !important;
    box-shadow: 0 12px 32px rgba(15,93,74,0.35) !important;
}

.bk-dashboard .ai-glow-ring {
    border-color: rgba(15,93,74,0.35) !important;
}

.bk-dashboard .ai-widget-badge {
    background: var(--secondary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.bk-dashboard .ai-widget-tooltip {
    background: #fff !important;
    border-color: var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
}

.bk-dashboard .ai-widget-tooltip::after {
    background: #fff !important;
    border-color: var(--border) !important;
}

.bk-dashboard .ai-widget-tooltip strong {
    color: var(--primary) !important;
}

.bk-dashboard .ai-widget-tooltip span {
    color: var(--text-muted) !important;
}

/* ── Responsive Behavior ───────────────────────────────────── */
@media (max-width: 1200px) {
    .bk-transport-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .bk-navbar__inner,
    .bk-container,
    .bk-hero__inner {
        padding-left: 28px;
        padding-right: 28px;
    }

    .bk-hero {
        min-height: 500px;
    }

    .bk-hero__headline {
        font-size: 42px;
    }

    .bk-transport-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bk-providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bk-navbar__inner,
    .bk-container,
    .bk-hero__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .bk-navbar__inner {
        height: 60px;
    }

    .bk-hero {
        min-height: 480px;
        background: #ffffff;
    }

    /* Soft overlay for mobile to guarantee readability over artwork */
    .bk-hero__bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 65%, rgba(255,255,255,0.5) 100%);
    }

    .bk-hero__inner {
        padding: 56px 20px;
    }

    .bk-hero__headline {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .bk-hero__sub {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .bk-section {
        padding: 52px 0;
    }

    .bk-section__title {
        font-size: 26px;
    }

    .bk-transport-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bk-providers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bk-category-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .bk-navbar__name {
        font-size: 17px;
    }

    .bk-navbar__links a {
        padding: 6px 11px;
        font-size: 13px;
    }

    .bk-hero__headline {
        font-size: 30px;
        letter-spacing: -0.8px;
    }

    .bk-btn {
        padding: 12px 22px;
        font-size: 14px;
    }

    .bk-hero__ctas {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .bk-hero__ctas .bk-btn {
        width: 100%;
    }

    .bk-card {
        padding: 24px 20px 22px;
    }

    .bk-provider-card {
        padding: 22px 18px 20px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   ADMIN — ADD BOOKING PROVIDER FORM & LIVE PREVIEW
══════════════════════════════════════════════════════════════════ */
.bk-admin-section {
    padding: 36px 0 80px;
}

/* Success / Alert Banners */
.bk-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    animation: bkFadeIn 0.3s ease;
}

.bk-alert-banner--success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.bk-alert-banner--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.bk-alert-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bk-alert-banner--success .bk-alert-banner__icon {
    background: #D1FAE5;
    color: #059669;
}

.bk-alert-banner--error .bk-alert-banner__icon {
    background: #FEE2E2;
    color: #DC2626;
}

.bk-alert-banner__content {
    flex: 1;
}

.bk-alert-banner__title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.bk-alert-banner__desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: inherit;
    opacity: 0.92;
}

.bk-alert-banner__actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bk-alert-banner__link {
    font-size: 13px;
    font-weight: 700;
    color: #0F5D4A;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bk-alert-banner__close {
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    padding: 4px;
    transition: opacity var(--transition);
}

.bk-alert-banner__close:hover {
    opacity: 1;
}

/* Two-column Form Layout */
.bk-form-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
}

/* Left Column: Form Card */
.bk-form-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
}

.bk-form-card__header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.bk-form-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--green-light);
    border: 1px solid var(--green-mid);
    border-radius: var(--radius-pill);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.bk-form-card__title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-head);
    margin-bottom: 6px;
}

.bk-form-card__subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* Form Groups & Controls */
.bk-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.bk-form-group {
    display: flex;
    flex-direction: column;
}

.bk-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.bk-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-head);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bk-label-req {
    color: #DC2626;
    font-weight: 800;
}

.bk-char-counter {
    font-size: 12px;
    color: var(--text-xmuted);
    font-variant-numeric: tabular-nums;
}

.bk-field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.bk-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bk-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-xmuted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.bk-input,
.bk-select,
.bk-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: #FFFFFF !important;
    color: #111827 !important;
    color-scheme: light;
    -webkit-appearance: none;
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.5;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.bk-input-with-icon {
    padding-left: 42px;
}

.bk-input:hover,
.bk-select:hover,
.bk-textarea:hover {
    border-color: var(--border-hover);
}

.bk-input:focus,
.bk-select:focus,
.bk-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 93, 74, 0.12);
    background-color: #FFFFFF !important;
}

/* High-specificity overrides to beat style.css's "form input" dark rules */
form.bk-form .bk-input,
form.bk-form .bk-select,
form.bk-form .bk-textarea {
    background-color: #FFFFFF !important;
    background-image: none;
    color: #111827 !important;
    border-color: var(--border);
    color-scheme: light;
}

form.bk-form .bk-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
}

form.bk-form .bk-input:hover,
form.bk-form .bk-select:hover,
form.bk-form .bk-textarea:hover {
    background-color: #FFFFFF !important;
    border-color: var(--border-hover);
    box-shadow: none;
}

form.bk-form .bk-input:focus,
form.bk-form .bk-select:focus,
form.bk-form .bk-textarea:focus {
    background-color: #FFFFFF !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 93, 74, 0.12) !important;
    color: #111827 !important;
}

form.bk-form .bk-input::placeholder,
form.bk-form .bk-textarea::placeholder {
    color: #9CA3AF !important;
}

.bk-input::placeholder,
.bk-textarea::placeholder {
    color: #9CA3AF;
}

.bk-textarea {
    min-height: 100px;
    resize: vertical;
}

.bk-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: #FFFFFF !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.bk-select option {
    background-color: #FFFFFF;
    color: #111827;
}

/* Admin Form Transport Pills Selector (3 per row: Bus, Train, Flight etc.) */
.bk-admin-transport-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.bk-transport-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
    text-align: center;
}

.bk-transport-pill:hover {
    background: var(--green-light);
    border-color: var(--green-mid);
    transform: translateY(-1px);
}

.bk-transport-pill.active {
    background: #D1FAE5;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(15, 93, 74, 0.2);
}

.bk-transport-pill__icon {
    font-size: 20px;
    line-height: 1;
}

.bk-transport-pill__label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-head);
}

.bk-transport-pill.active .bk-transport-pill__label {
    color: var(--primary);
}

/* Preset Chips for Quick Logo Selection */
.bk-preset-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.bk-preset-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.bk-preset-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    font-size: 11.5px;
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--transition);
}

.bk-preset-chip:hover {
    background: var(--green-light);
    border-color: var(--green-mid);
    color: var(--primary);
}

/* Validation Errors */
.bk-field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #DC2626;
}

/* Form Actions */
.bk-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
}

.bk-btn-submit {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 28px;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(15, 93, 74, 0.2);
}

.bk-btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(15, 93, 74, 0.28);
}

.bk-btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    background: #FFFFFF;
    color: var(--text-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.bk-btn-reset:hover {
    background: var(--bg-surface);
    border-color: var(--border-hover);
}

/* Right Column: Sticky Live Preview Box */
.bk-preview-sticky {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bk-preview-box {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.bk-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.bk-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #2563EB;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.bk-preview-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563EB;
    animation: bkDotPulse 1.8s infinite;
}

@keyframes bkDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.bk-preview-desc {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Info Box */
.bk-info-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.bk-info-box__title {
    font-family: var(--font-head);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-head);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bk-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bk-info-list li {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.bk-info-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .bk-form-layout {
        grid-template-columns: 1fr;
    }

    .bk-preview-sticky {
        position: static;
    }

    .bk-admin-transport-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 520px) {
    .bk-form-card {
        padding: 24px 18px;
    }

    .bk-admin-transport-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bk-form-actions {
        flex-direction: column;
    }

    .bk-btn-submit,
    .bk-btn-reset {
        width: 100%;
    }
}

/* ══════════════════════════════════════════════════════════════════
   ADMIN — MANAGE BOOKING PROVIDERS PAGE
══════════════════════════════════════════════════════════════════ */

/* Stats Bar */
.bk-manage-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.bk-manage-stats__count {
    font-size: 14px;
    color: var(--text-muted);
}

.bk-manage-stats__count strong {
    color: var(--text-head);
    font-weight: 800;
    font-family: var(--font-head);
}

/* Provider Manage Grid */
.bk-manage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Provider Manage Card */
.bk-manage-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bk-manage-card__accent {
    height: 3px;
    width: 100%;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.bk-manage-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.bk-manage-card:hover .bk-manage-card__accent {
    transform: scaleX(1);
}

.bk-manage-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 0;
    width: 100%;
}

.bk-manage-card__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 14px 24px 0;
    flex: 1;
}

.bk-manage-card__url {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px 0;
    color: var(--text-xmuted);
}

.bk-manage-card__url-link {
    font-size: 12.5px;
    color: var(--primary) !important;
    text-decoration: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
    display: inline-block;
    transition: var(--transition);
}

.bk-manage-card__url-link:hover {
    text-decoration: underline !important;
}

/* Transport Badge */
.bk-manage-card__transport-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px 3px 6px;
    background: var(--green-light);
    border: 1px solid var(--green-mid);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.bk-manage-card__transport-icon {
    font-size: 14px;
    line-height: 1;
}

/* Action Buttons */
.bk-manage-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px 22px;
    border-top: 1px solid var(--border);
    margin-top: 18px;
}

.bk-manage-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: all var(--transition);
    white-space: nowrap;
    flex: 1;
}

.bk-manage-action--update {
    background: var(--green-light);
    color: var(--primary) !important;
    border-color: var(--green-mid);
}

.bk-manage-action--update:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.bk-manage-action--remove {
    background: #FEF2F2;
    color: #991B1B !important;
    border-color: #FECACA;
}

.bk-manage-action--remove:hover {
    background: #DC2626;
    color: #fff !important;
    border-color: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

/* ══════════════════════════════════════════════════════════════════
   MODAL — Remove Confirmation
══════════════════════════════════════════════════════════════════ */
.bk-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: bkFadeIn 0.2s ease;
}

.bk-modal {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 440px;
    width: 100%;
    overflow: hidden;
    animation: bkSlideUp 0.25s ease;
}

.bk-modal__header {
    padding: 32px 28px 20px;
    text-align: center;
}

.bk-modal__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    margin-bottom: 16px;
}

.bk-modal__title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-head);
    margin-bottom: 8px;
}

.bk-modal__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.bk-modal__desc strong {
    color: var(--text-head);
    font-weight: 700;
}

.bk-modal__actions {
    display: flex;
    gap: 12px;
    padding: 20px 28px 28px;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.bk-modal__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.bk-modal__btn--cancel {
    background: #FFFFFF;
    color: var(--text-body);
    border-color: var(--border);
}

.bk-modal__btn--cancel:hover {
    background: var(--bg-surface-alt);
    border-color: var(--border-hover);
}

.bk-modal__btn--danger {
    background: #DC2626;
    color: #FFFFFF;
    border-color: #DC2626;
}

.bk-modal__btn--danger:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

@keyframes bkFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bkSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Manage Providers Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
    .bk-manage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bk-manage-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .bk-manage-card__head {
        padding: 18px 18px 0;
    }

    .bk-manage-card__desc {
        padding: 12px 18px 0;
    }

    .bk-manage-card__url {
        padding: 8px 18px 0;
    }

    .bk-manage-card__actions {
        padding: 16px 18px 18px;
        flex-direction: column;
    }

    .bk-manage-action {
        width: 100%;
    }

    .bk-modal {
        margin: 12px;
    }

    .bk-modal__actions {
        flex-direction: column;
    }
}
