/**
 * JKB Booking Frontend Styles
 * Professional Multi-Step Booking Flow
 */

/* CSS Variables */
:root {
    --jkb-primary: #d1112a;
    --jkb-primary-hover: #d62839;
    --jkb-primary-light: #fef2f2;
    --jkb-secondary: #1d3557;
    --jkb-secondary-hover: #14253d;
    --jkb-accent: #457b9d;
    --jkb-accent-light: #a8dadc;
    --jkb-white: #ffffff;
    --jkb-gray-50: #f8f9fa;
    --jkb-gray-100: #f1f3f5;
    --jkb-gray-200: #e9ecef;
    --jkb-gray-300: #dee2e6;
    --jkb-gray-400: #ced4da;
    --jkb-gray-500: #adb5bd;
    --jkb-gray-600: #6c757d;
    --jkb-gray-700: #495057;
    --jkb-gray-800: #343a40;
    --jkb-gray-900: #212529;
    --jkb-info-bg: #e3f2fd;
    --jkb-gray-border: #dee2e6;
    --jkb-info-border: #90caf9;
    --jkb-warning-bg: #fff8e1;
    --jkb-warning-border: #ffcc02;
    --jkb-success: #2e7d32;
    --jkb-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --jkb-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
    --jkb-shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.15);
    --jkb-radius: 8px;
    --jkb-radius-lg: 12px;
    --jkb-radius-xl: 16px;
    --jkb-transition: all 0.2s ease;
    /* Routed booking/service pages (replaces theme “container py-8”) */
    --jkb-page-inner-max: 1140px;
    --jkb-page-inner-padding-y: 3rem;
    --jkb-page-inner-padding-y-md: 4.5rem;
}

/**
 * Centered content column + vertical breathing room for plugin-rendered pages
 * (service success, registration, agreement, payment, etc.). Does not depend on Tailwind/Bootstrap.
 * Override in theme: .jkb-page-inner { --jkb-page-inner-padding-y: 2rem; }
 */
.jkb-page-inner {
    box-sizing: border-box;
    padding-top: var(--jkb-page-inner-padding-y, 3rem);
    padding-bottom: var(--jkb-page-inner-padding-y, 3rem);
}

@media (min-width: 768px) {
    .jkb-page-inner {
        padding-top: var(--jkb-page-inner-padding-y-md, 4.5rem);
        padding-bottom: var(--jkb-page-inner-padding-y-md, 4.5rem);
    }
}

/* Reset & Base */
.jkb-booking-wrapper * {
    box-sizing: border-box;
}

.jkb-booking-wrapper {
    color: var(--jkb-gray-800);
    line-height: 1.5;
    /* max-width: 1400px; */
    margin: 0 auto;
}

.jkb-booking-app {
    min-height: 500px;
}

/* =====================
   STEP 1: LISTING
   ===================== */

/* Two Column Layout */
.jkb-booking-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    align-items: start;
}

/* Sidebar */
.jkb-booking-sidebar {
    background: var(--jkb-gray-50);
    border-radius: var(--jkb-radius-lg);
    padding: 0 10px;
    position: sticky;
    top: 70px;
}

/* Filter Groups */
.jkb-filter-group {
    margin-bottom: 20px;
}

.jkb-filter-group:last-child {
    margin-bottom: 0;
}

.jkb-filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--jkb-gray-800);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Select Wrapper */
.jkb-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.jkb-select-wrapper .jkb-select-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--jkb-gray-500);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.jkb-select-wrapper .jkb-select-icon svg {
    width: 16px;
    height: 16px;
}

.jkb-select-wrapper select {
    width: 100%;
    padding: 10px 32px 10px 36px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid var(--jkb-gray-300);
    border-radius: 4px;
    background: var(--jkb-white);
    color: var(--jkb-gray-800);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: var(--jkb-transition);
    line-height: 1.4;
}

.jkb-select-wrapper select:hover {
    border-color: var(--jkb-gray-400);
}

.jkb-select-wrapper select:focus {
    outline: none;
    border-color: var(--jkb-accent);
    box-shadow: 0 0 0 2px rgba(69, 123, 157, 0.1);
}

.jkb-select-wrapper select option {
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 500;
    background: var(--jkb-white);
}

.jkb-select-wrapper select option:checked,
.jkb-select-wrapper select option:hover {
    background: var(--jkb-accent);
    color: var(--jkb-white);
}

.jkb-select-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--jkb-gray-500);
    pointer-events: none;
}

.jkb-select-sm select {
    padding: 8px 28px 8px 32px;
    font-size: 13px;
}

.jkb-select-sm .jkb-select-icon {
    left: 10px;
}

.jkb-select-sm::after {
    right: 10px;
}

/* Hide arrow when searchable dropdown is present */
.jkb-select-wrapper.jkb-has-searchable::after {
    display: none;
}

/* Custom Searchable Dropdown */
.jkb-searchable-dropdown {
    position: relative;
    width: 100%;
}

.jkb-searchable-dropdown .jkb-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 32px 10px 12px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--jkb-gray-300);
    border-radius: 4px;
    background: var(--jkb-white);
    color: var(--jkb-gray-800);
    cursor: pointer;
    text-align: left;
    transition: var(--jkb-transition);
}

.jkb-searchable-dropdown .jkb-dropdown-trigger:hover {
    border-color: var(--jkb-gray-400);
}

.jkb-searchable-dropdown .jkb-dropdown-trigger .jkb-trigger-icon {
    width: 18px;
    height: 18px;
    color: var(--jkb-gray-500);
    flex-shrink: 0;
}

.jkb-searchable-dropdown .jkb-dropdown-trigger .jkb-trigger-icon svg {
    width: 100%;
    height: 100%;
}

.jkb-searchable-dropdown .jkb-dropdown-trigger .jkb-trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jkb-searchable-dropdown .jkb-dropdown-trigger::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--jkb-gray-500);
    transition: transform 0.2s ease;
}

.jkb-searchable-dropdown.jkb-dropdown-open .jkb-dropdown-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.jkb-searchable-dropdown .jkb-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--jkb-white);
    border: 1px solid var(--jkb-gray-300);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 280px;
    overflow: hidden;
}

.jkb-searchable-dropdown.jkb-dropdown-open .jkb-dropdown-menu {
    display: block;
}

.jkb-searchable-dropdown .jkb-dropdown-search {
    padding: 8px;
    border-bottom: 1px solid var(--jkb-gray-200);
}

.jkb-searchable-dropdown .jkb-dropdown-search input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--jkb-gray-300);
    border-radius: 4px;
    outline: none;
}

.jkb-searchable-dropdown .jkb-dropdown-search input:focus {
    border-color: var(--jkb-accent);
}

.jkb-searchable-dropdown .jkb-dropdown-search input::placeholder {
    color: var(--jkb-gray-500);
}

.jkb-searchable-dropdown .jkb-dropdown-options {
    max-height: 220px;
    overflow-y: auto;
}

.jkb-searchable-dropdown .jkb-dropdown-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--jkb-gray-800);
    background: var(--jkb-white);
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.jkb-searchable-dropdown .jkb-dropdown-option:hover {
    background: var(--jkb-gray-100);
}

.jkb-searchable-dropdown .jkb-dropdown-option.jkb-option-selected {
    background: var(--jkb-accent);
    color: var(--jkb-white);
}

.jkb-searchable-dropdown .jkb-dropdown-option.jkb-option-hidden {
    display: none;
}

.jkb-searchable-dropdown .jkb-dropdown-empty {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--jkb-gray-500);
    text-align: center;
}

/* Sidebar Notice */
.jkb-sidebar-notice,
.jkb-calendar-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--jkb-warning-bg);
    border: 1px solid var(--jkb-warning-border);
    border-left-width: 4px;
    border-radius: var(--jkb-radius);
    padding: 12px 10px;
    margin-top: 20px;
}

.jkb-sidebar-notice .jkb-notice-icon,
.jkb-calendar-notice .jkb-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: var(--jkb-warning-border);
    border-radius: 50%;
    color: var(--jkb-gray-800);
    font-size: 11px;
    font-weight: bold;
}

.jkb-sidebar-notice p,
.jkb-calendar-notice p {
    margin: 0;
    min-width: 0;
    font-size: 15px;
    /* color: var(--jkb-gray-700); */
    line-height: 1.7;
}

.jkb-sidebar-notice a,
.jkb-calendar-notice a {
    color: var(--jkb-primary);
    text-decoration: none;
    font-weight: 500;
}

.jkb-sidebar-notice a:hover,
.jkb-calendar-notice a:hover {
    text-decoration: underline;
    color: var(--jkb-primary-hover);
}

/* Main Content */
.jkb-booking-main {
    min-height: 400px;
}

/* Info Banner */
.jkb-info-banner {
    background: var(--jkb-info-bg);
    border-radius: var(--jkb-radius-lg);
    border: 1px solid var(--jkb-info-border);
    border-left-width: 4px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.jkb-info-banner .jkb-banner-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--jkb-info-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jkb-secondary);
    font-size: 12px;
    font-weight: bold;
}

.jkb-info-banner p {
    margin: 0;
    font-size: 14px;
    color: var(--jkb-gray-700);
    line-height: 1.5;
}

/* Loading State */
.jkb-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 400px;
    width: 100%;
}

.jkb-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--jkb-gray-200);
    border-top-color: var(--jkb-primary);
    border-radius: 50%;
    animation: jkb-spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes jkb-spin {
    to { transform: rotate(360deg); }
}

.jkb-loading-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--jkb-gray-900);
    margin: 0 0 12px 0;
}

.jkb-loading-message {
    color: var(--jkb-gray-600);
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.jkb-loading p {
    color: var(--jkb-gray-600);
    font-size: 14px;
    margin: 0;
}

/* Skeleton loaders (resource profile + calendar) */
.jkb-skeleton { box-sizing: border-box; }

.jkb-skeleton__shimmer {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(
        90deg,
        var(--jkb-gray-100, #f1f3f5) 0%,
        var(--jkb-gray-200, #e9ecef) 50%,
        var(--jkb-gray-100, #f1f3f5) 100%
    );
    background-size: 200% 100%;
    animation: jkb-skeleton-shimmer 1.2s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes jkb-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.jkb-skeleton-profile { min-height: 320px; }

.jkb-skeleton__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.jkb-skeleton__avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--jkb-gray-200, #e9ecef);
    flex-shrink: 0;
    overflow: hidden;
}

.jkb-skeleton__avatar::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: jkb-skeleton-shimmer 1.2s ease-in-out infinite;
}

.jkb-skeleton__meta { flex: 1; min-width: 0; }

.jkb-skeleton__line {
    height: 16px;
    background: var(--jkb-gray-200, #e9ecef);
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.jkb-skeleton__line::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.5) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: jkb-skeleton-shimmer 1.2s ease-in-out infinite;
}

.jkb-skeleton__line--title { width: 75%; height: 20px; }
.jkb-skeleton__line--sub { width: 50%; height: 14px; margin-bottom: 0; }
.jkb-skeleton__line--short { width: 60%; }
.jkb-skeleton__line--label { width: 40%; height: 14px; margin-bottom: 12px; }

.jkb-skeleton__bio { margin-bottom: 24px; }

.jkb-skeleton__section { margin-top: 20px; }

.jkb-skeleton__cards { display: flex; flex-direction: column; gap: 10px; }

.jkb-skeleton__card {
    height: 64px;
    background: var(--jkb-gray-200, #e9ecef);
    border-radius: 8px;
    overflow: hidden;
}

.jkb-skeleton__card::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: jkb-skeleton-shimmer 1.2s ease-in-out infinite;
}

/* Calendar skeleton */
.jkb-skeleton-calendar { min-height: 380px; }

.jkb-skeleton-calendar__row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.jkb-skeleton-calendar__day {
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
}

.jkb-skeleton-calendar__slots { display: flex; flex-direction: column; gap: 6px; }

.jkb-skeleton-calendar__slot-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.jkb-skeleton-calendar__slot {
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
}

/* Calendar grid: reserve height when loading (skeleton or spinner); grid layout when content loaded */
.jkb-calendar-grid.jkb-calendar-grid--loading {
    display: block;
    position: relative;
    min-height: 380px;
}

.jkb-calendar-grid .jkb-loading {
    min-height: 380px;
}

/* Resource Cards */
.jkb-resources-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.jkb-resource-card {
    background: var(--jkb-white);
    border-radius: var(--jkb-radius-lg);
    box-shadow: var(--jkb-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 250px 1fr;
    transition: var(--jkb-transition);
}

.jkb-resource-card:hover {
    box-shadow: var(--jkb-shadow-lg);
}

/* Resource Left Panel */
.jkb-resource-left {
    background: linear-gradient(135deg, var(--jkb-gray-50) 0%, var(--jkb-gray-100) 100%);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--jkb-gray-200);
}

/* Resource Image */
.jkb-resource-image {
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    flex-shrink: 0;
    transition: box-shadow 0.28s ease, transform 0.28s ease;
    /* box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1); */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.70);
    border: 3px solid var(--jkb-white);
    width: 100px;
    height: 100px; */
}

.jkb-resource-image:hover {
    /* box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.16),
        0 0 0 3px rgba(230, 57, 70, 0.38); */
    transform: translateY(-2px);
}

@supports (color: color-mix(in srgb, white 50%, black)) {
    .jkb-resource-image:hover {
        box-shadow:
            0 12px 28px rgba(15, 23, 42, 0.16),
            0 0 0 3px color-mix(in srgb, var(--jkb-primary) 60%, transparent);
    }
}

/* When image exists - larger size */
.jkb-resource-image.jkb-has-image {
    width: 90%;
    height: auto;
}

/* Fallback using :has() selector for modern browsers */
@supports selector(:has(*)) {
    .jkb-resource-image:has(img) {
        width: 140px;
        height: 140px;
    }
    
    .jkb-resource-image:has(.jkb-resource-placeholder) {
        width: 100px;
        height: 100px;
    }
}

/* Resource header for mobile (shown in left panel) */
.jkb-resource-header-mobile {
    display: none;
    text-align: center;
    margin: 12px 0;
}

.jkb-resource-header-mobile h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--jkb-gray-800);
    margin: 0 0 4px 0;
}

.jkb-resource-header-mobile .jkb-resource-title {
    font-size: 14px;
    color: var(--jkb-gray-600);
    margin: 0;
}

.jkb-resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.jkb-resource-image:hover img {
    transform: scale(1.06);
}

.jkb-resource-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--jkb-secondary) 0%, var(--jkb-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), filter 0.28s ease;
}

.jkb-resource-image:hover .jkb-resource-placeholder {
    transform: scale(1.06);
    filter: brightness(1.06) saturate(1.05);
}

.jkb-resource-placeholder span {
    font-size: 32px;
    font-weight: 600;
    color: var(--jkb-white);
    text-transform: uppercase;
}


/* First Available Badge */
.jkb-first-available {
    display: inline-block;
    background: var(--jkb-primary);
    color: var(--jkb-white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

/* Resource Price */
.jkb-resource-price .jkb-price-amount {
    display: inline;
    font-size: 16px;
    font-weight: 700;
    color: var(--jkb-gray-900);
}

.jkb-resource-price .jkb-price-duration {
    display: inline;
    font-size: 14px;
    color: var(--jkb-gray-700);
}

/* Resource Actions */
.jkb-resource-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jkb-btn-meet {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: var(--jkb-gray-800);
    color: var(--jkb-white);
    border: none;
    border-radius: var(--jkb-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jkb-transition);
}

.jkb-btn-meet:hover {
    background: var(--jkb-gray-700);
}

.jkb-btn-meet svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
}

.jkb-btn-bio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: var(--jkb-secondary);
    color: var(--jkb-white);
    border: none;
    border-radius: var(--jkb-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jkb-transition);
}

.jkb-btn-bio:hover {
    background: var(--jkb-secondary-hover);
}

/* Resource Right Panel */
.jkb-resource-right {
    /* padding: 20px; */
    display: flex;
    flex-direction: column;
}

/* Resource Header */
.jkb-resource-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--jkb-gray-200);
    padding: 20px 20px 0;
}

.jkb-resource-header h3 {
    margin: 0 0 2px;
    font-size: 20px;
    font-weight: 700;
    color: var(--jkb-gray-900);
}

.jkb-resource-title {
    margin: 0;
    font-size: 12px;
    color: var(--jkb-gray-600);
}

/* Availability Grid - Horizontal Row Layout */
.jkb-availability-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Day Row - Horizontal Layout */
.jkb-day-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
}

.jkb-day-row:hover {
    background: linear-gradient(135deg, var(--jkb-gray-50) 0%, var(--jkb-gray-100) 100%);
}

.jkb-day-header {
    border-radius: var(--jkb-radius);
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
    overflow: hidden;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    border: 1px solid var(--jkb-gray-200)
}

.jkb-day-header:hover {
    background: linear-gradient(135deg, var(--jkb-gray-200) 0%, var(--jkb-gray-300) 100%);
}

.jkb-day-header .jkb-month {
    display: block;
    background: var(--jkb-secondary);
    color: var(--jkb-white);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 6px 12px 4px;
}

.jkb-day-header .jkb-day-number {
    display: block;
    background: var(--jkb-white);
    color: var(--jkb-gray-900);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 12px 4px;
}

.jkb-day-header .jkb-day-name {
    display: block;
    background: var(--jkb-white);
    /* color: var(--jkb-gray-600); */
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0 12px 5px;
    /* border: 1px solid var(--jkb-gray-200); */
    /* border-top: none; */
    border-radius: 0 0 var(--jkb-radius) var(--jkb-radius);
}

/* Slots Container - Horizontal */
.jkb-slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    align-items: center;
}

/* Slot Buttons - Compact */
.jkb-slot-btn {
    display: inline-block;
    padding: 6px 12px;
    background: var(--jkb-white);
    border: 1.5px solid var(--jkb-primary);
    border-radius: 5px;
    color: var(--jkb-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jkb-transition);
    text-align: center;
    white-space: nowrap;
}

.jkb-slot-btn:hover {
    background: var(--jkb-primary);
    color: var(--jkb-white);
}

.jkb-slot-btn.jkb-slot-selected {
    background: var(--jkb-primary);
    color: var(--jkb-white);
}

/* More Slots Button */
.jkb-more-slots {
    display: inline-block;
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: var(--jkb-gray-600);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--jkb-transition);
    white-space: nowrap;
}

.jkb-more-slots:hover {
    color: var(--jkb-primary);
}

/* Hide Link */
.jkb-hide-slots {
    display: inline-block;
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: var(--jkb-gray-500);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--jkb-transition);
    white-space: nowrap;
    margin-left: auto;
}

.jkb-hide-slots:hover {
    color: var(--jkb-primary);
}

/* See All Button */
.jkb-see-all-container {
    margin-top: 16px;
    border-top: 1px solid var(--jkb-gray-200);
    padding: 20px;
}

.jkb-btn-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--jkb-primary);
    color: var(--jkb-white);
    padding: 10px 20px;
    border: none;
    border-radius: var(--jkb-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jkb-transition);
}

.jkb-btn-see-all:hover {
    background: var(--jkb-primary-hover);
}

/* No Resources */
.jkb-no-resources {
    background: var(--jkb-white);
    border-radius: var(--jkb-radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--jkb-shadow);
}

.jkb-no-resources .jkb-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.jkb-no-resources h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--jkb-gray-800);
}

.jkb-no-resources p {
    margin: 0;
    color: var(--jkb-gray-600);
}

/* =====================
   STEP 2: DETAIL VIEW
   ===================== */

.jkb-detail-layout {
    /* background: var(--jkb-white); */
    /* border-radius: var(--jkb-radius-xl); */
    /* box-shadow: var(--jkb-shadow-lg); */
    overflow: hidden;
}

/* =====================
   Service Detail Module
   ===================== */
/* Keep the service detail page styling isolated to service-specific selectors. */
/* ===============================================
   SERVICE DETAIL PAGE  – layout & typography
   =============================================== */

/*
 * Layout: .jkb-service-detail-rightstack wraps header + summary.
 * Mobile: rightstack uses display:contents so children participate in the layout grid;
 *         explicit grid-row places visual order title → gallery → booking (aside is 2nd in DOM).
 * Desktop: rightstack is a flex column in column 2, single grid row — avoids splitting row
 *           height with a rowspan gallery (which caused a large gap under the title).
 */
.jkb-service-detail-layout {
    display: grid;
    align-items: start;
    grid-template-columns: 1fr;
}

.jkb-service-detail-rightstack {
    display: contents;
}

.jkb-sd-header {
    grid-row: 1;
    margin-bottom: 0;
}

.jkb-service-gallery {
    grid-row: 2;
    padding: 0;
    min-width: 0;
}

.jkb-service-summary {
    grid-row: 3;
}

@media (min-width: 901px) {
    .jkb-service-detail-layout {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .jkb-service-detail-rightstack {
        display: flex;
        flex-direction: column;
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        min-width: 0;
    }

    .jkb-service-gallery {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }
}

/* ---- Service title & subtitle ---- */

.jkb-sd-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    /* color: var(--jkb-gray-900); */
    color: var(--jkb-white);
    background: var(--jkb-gray-800);
    letter-spacing: -0.02em;
    padding: 15px;
}

.jkb-sd-subtitle {
    margin: 0;
    font-size: 0.93rem;
    color: var(--jkb-gray-600);
    line-height: 1.6;
    padding: 15px;
}

/* ---- Section headings inside the booking panel ---- */
.jkb-sd-section {
    margin-bottom: 20px;
}

.jkb-sd-section--form {
    border-top: 1px dashed var(--jkb-gray-200);
    padding-top: 18px;
}

.jkb-sd-section__heading {
    margin: 0 0 12px;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    /* color: var(--jkb-gray-500); */
}

/* ---- Simple price (no variations) ---- */
.jkb-sd-simple-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--jkb-gray-50);
    border: 1px solid var(--jkb-gray-200);
    border-radius: var(--jkb-radius);
}

.jkb-sd-simple-price__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--jkb-gray-500);
}

.jkb-sd-simple-price__amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--jkb-gray-900);
}

/* ---- Your details form ---- */
.jkb-sd-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.jkb-sd-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jkb-sd-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--jkb-gray-700);
    letter-spacing: 0.02em;
}

.jkb-sd-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--jkb-gray-200);
    border-radius: var(--jkb-radius);
    font-size: 0.9rem;
    color: var(--jkb-gray-900);
    background: var(--jkb-white);
    transition: var(--jkb-transition);
    box-sizing: border-box;
}

.jkb-sd-input:focus {
    outline: none;
    border-color: var(--jkb-primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* ---- Submit button (pill CTA — service detail checkout) ---- */
.jkb-sd-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 35px;
    min-height: 48px;
    background: var(--jkb-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.jkb-sd-btn-submit__label {
    color: #fff;
}

.jkb-sd-btn-submit__chevron {
    flex-shrink: 0;
    margin-left: 2px;
    font-size: 1.5em;
    font-weight: 400;
    color: #fff;
    opacity: 0.78;
}

.jkb-sd-btn-submit:hover {
    background: var(--jkb-secondary-hover);
}

.jkb-sd-btn-submit:active {
    background: #b8141a;
}

.jkb-sd-btn-submit:focus {
    outline: none;
}

.jkb-sd-btn-submit:focus-visible {
    outline: 3px solid rgba(238, 28, 36, 0.45);
    outline-offset: 3px;
}

.jkb-sd-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.jkb-sd-submit-note {
    margin: 8px 0 0;
    font-size: 0.78rem;
    color: var(--jkb-gray-500);
}

/* ---- YouTube embed below gallery ---- */
.jkb-yt-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    margin-top: 50px;
    /* border-radius: var(--jkb-radius); */
    overflow: hidden;
    box-shadow: var(--jkb-shadow);
}

.jkb-yt-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---- Detail description (below Continue, in summary column) ---- */
.jkb-sd-description {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--jkb-gray-200);
}

.jkb-sd-description__title {
    margin: 0 0 14px;
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    font-weight: 700;
    color: var(--jkb-gray-900);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.jkb-sd-description__body {
    color: var(--jkb-gray-700);
    font-size: 0.95rem;
    line-height: 1.75;
}

.jkb-sd-description__body p {
    margin: 0 0 1em;
}

.jkb-sd-description__body h2,
.jkb-sd-description__body h3,
.jkb-sd-description__body h4 {
    font-weight: 700;
    color: var(--jkb-gray-900);
    margin: 1.35em 0 0.5em;
}

/* Restore list markers (many themes reset ul/ol to list-style: none). */
.jkb-sd-description__body ul {
    list-style-type: disc;
    list-style-position: outside;
}

.jkb-sd-description__body ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.jkb-sd-description__body ul,
.jkb-sd-description__body ol {
    padding-left: 1.4em;
    padding-inline-start: 1.4em;
    margin: 0 0 1em;
}

.jkb-sd-description__body li {
    display: list-item;
}

.jkb-sd-description__body ul ul {
    list-style-type: circle;
}

.jkb-sd-description__body ul ul ul {
    list-style-type: square;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .jkb-sd-header {
        margin-bottom: 0;
    }

    .jkb-sd-title {
        font-size: clamp(1.15rem, 4.5vw, 1.5rem);
        padding: 12px 14px;
    }

    .jkb-sd-subtitle {
        padding: 12px 14px 14px;
        font-size: 0.9rem;
    }

    .jkb-service-summary {
        margin-top: 0;
    }

    .jkb-yt-embed {
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .jkb-service-detail-layout {
        gap: 18px;
    }

    .jkb-sd-description {
        margin-top: 22px;
        padding-top: 22px;
    }
    .jkb-sd-btn-submit {
        width: 100%;
    }
}

.jkb-service-gallery-main {
    background: var(--jkb-white);
    /* border: 1px solid var(--jkb-gray-200); */
    /* border-radius: var(--jkb-radius-xl); */
    box-shadow: 0 0 30px #00000014;
    overflow: hidden;
}

.jkb-service-gallery-main img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.jkb-service-gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.jkb-service-gallery-thumb {
    border: 1px solid var(--jkb-gray-200);
    /* border-radius: 10px; */
    padding: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: var(--jkb-transition);
    width: 92px;
    height: 92px;
}

.jkb-service-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jkb-service-gallery-thumb:not(.active) {
    opacity: 0.85;
}

.jkb-service-gallery-thumb.active {
    border-color: var(--jkb-primary);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
    opacity: 1;
}

/* Service detail — retainer / T&C disclaimer (left column) */
.jkb-sd-disclaimer {
    margin-top: 20px;
}

.jkb-sd-disclaimer__inner {
    padding: 16px 18px;
    background: var(--jkb-white);
    border: 1px solid var(--jkb-gray-200);
    border-radius: var(--jkb-radius);
    border-left: 4px solid var(--jkb-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.jkb-sd-disclaimer__badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--jkb-primary);
    background: rgba(230, 57, 70, 0.08);
    border-radius: 999px;
}

.jkb-sd-disclaimer__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--jkb-gray-700);
}

.jkb-sd-disclaimer__lead {
    display: inline;
    font-weight: 700;
    color: var(--jkb-gray-900);
}

.jkb-sd-disclaimer .jkb-sd-disclaimer__terms.jkb-terms-link {
    color: var(--jkb-primary);
}

.jkb-service-summary {
    background: var(--jkb-white);
    /* border: 1px solid var(--jkb-gray-200); */
    /* border-radius: var(--jkb-radius-xl); */
    box-shadow: 0 0 30px #00000014;
}

.jkb-service-summary-content {
    padding: 15px;
}

.jkb-service-summary section {
    margin-bottom: 18px;
    margin-top: 30px;
}

.jkb-service-resource-list {
    display: grid;
    gap: 12px;
}

.jkb-service-detail-layout .jkb-service-resource-list label {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Service gallery markup uses an aside with these additional classes. */
.jkb-service-gallery-main img {
    width: 100%;
}


.jkb-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--jkb-white);
    border: 1px solid var(--jkb-primary);
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--jkb-primary);
    cursor: pointer;
    transition: var(--jkb-transition);
    margin-bottom: 20px;
    justify-content: center;
}

.jkb-btn-back:hover {
    background: var(--jkb-gray-50);
    border-color: var(--jkb-primary-hover);
}

.jkb-detail-content {
    display: grid;
    grid-template-columns: 40% 1fr;
    min-height: 600px;
}

.jkb-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.jkb-resource-profile {
    padding: 20px;
    /* background: var(--jkb-white); */
    overflow-y: auto;
}

.jkb-profile-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.jkb-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jkb-profile-info h2 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 700;
    color: var(--jkb-gray-900);
}

.jkb-profile-info .jkb-profile-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--jkb-gray-700);
}

.jkb-profile-bio {
    font-size: calc(1rem - 1px);
    line-height: 1.7;
    margin-bottom: 24px;
}

.jkb-bio-text {
    display: inline;
}

.jkb-bio-toggle {
    color: var(--jkb-primary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.jkb-bio-toggle:hover {
    color: var(--jkb-primary-dark, #c53030);
    text-decoration: underline;
}

.jkb-profile-video {
    margin-bottom: 24px;
}

.jkb-profile-video h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--jkb-gray-900);
    margin-bottom: 10px;
}

.jkb-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--jkb-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jkb-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.jkb-profile-section {
    margin-bottom: 24px;
}

.jkb-specialities-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.jkb-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f3f4f6;
    color: var(--jkb-gray-900);
    border-radius: 5%;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: wrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.jkb-badge:hover {
    background-color: var(--jkb-primary);
    color: var(--jkb-white);
    cursor: pointer;
}

.jkb-profile-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jkb-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    background: #fff4f4;
    border: 1px solid #e5b9b9;
    padding: 7px;
}

.jkb-profile-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jkb-profile-section li {
    font-size: calc(1rem - 2px);
    color: var(--jkb-gray-700);
    padding: 10px 0;
    border-bottom: 1px solid var(--jkb-gray-100);
}

.jkb-profile-section li:last-child {
    border-bottom: none;
}

.jkb-profile-section li a {
    color: var(--jkb-accent);
    text-decoration: underline;
}

/* Consultation Fees - Professional Card Design */
.jkb-fee-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.jkb-fee-card {
    background: var(--jkb-white);
    border: 1px solid var(--jkb-gray-200);
    border-radius: var(--jkb-radius);
    padding: 12px;
    transition: var(--jkb-transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.jkb-fee-card[data-consultation-type-id] {
    cursor: pointer;
}

.jkb-fee-card[data-consultation-type-id]:focus {
    outline: none;
}

.jkb-fee-card[data-consultation-type-id]:focus-visible {
    outline: 2px solid var(--jkb-primary);
    outline-offset: 2px;
}

.jkb-fee-card--active {
    border-color: var(--jkb-primary);
    background: var(--jkb-primary-light);
    box-shadow: var(--jkb-shadow);
}

.jkb-fee-card:hover {
    border-color: var(--jkb-primary);
    box-shadow: var(--jkb-shadow);
}

.jkb-fee-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.jkb-fee-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--jkb-primary-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jkb-primary);
}

.jkb-fee-icon svg {
    width: 16px;
    height: 16px;
}

.jkb-fee-card-content {
    flex: 1;
    min-width: 0;
}

.jkb-fee-card-content .jkb-fee-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--jkb-gray-900);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.jkb-fee-duration {
    display: inline-block;
    font-size: 12px;
    color: var(--jkb-gray-600);
    background: var(--jkb-gray-100);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.jkb-fee-card-footer {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.jkb-fee-card-footer .jkb-fee-price {
    font-size: 16px;
    /* font-weight: 700; */
    color: var(--jkb-primary);
    white-space: nowrap;
}

.jkb-fee-card-footer .jkb-fee-price-varies {
    font-size: 13px;
    font-weight: 600;
    color: var(--jkb-gray-700);
}

/* Legacy support for old list format */
.jkb-fee-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.jkb-fee-list li .jkb-fee-name {
    flex: 1;
}

.jkb-fee-list .jkb-fee-price {
    font-weight: 700;
    color: var(--jkb-gray-900);
    text-align: right;
    white-space: nowrap;
    min-width: 80px;
}

/* Calendar Section */
.jkb-calendar-section {
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: var(--jkb-white);
    border: 1px solid var(--jkb-gray-200);
    width: 100%;
    box-sizing: border-box;
}

.jkb-calendar-header {
    margin-bottom: 28px;
}

.jkb-calendar-header h2 {
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: 600;
    color: var(--jkb-gray-900);
}

.jkb-calendar-filters {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.jkb-filter-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jkb-filter-inline label {
    font-size: 16px;
    font-weight: 600;
    color: var(--jkb-gray-800);
    white-space: nowrap;
}

.jkb-filter-inline .jkb-select-wrapper {
    min-width: 260px;
}

.jkb-filter-inline .jkb-select-wrapper select {
    padding: 10px 32px 10px 36px;
    font-size: 15px;
    border-radius: 4px;
    background: var(--jkb-white);
}

/* Calendar Navigation (Above Calendar) */
.jkb-calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.jkb-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--jkb-gray-100);
    border: 1px solid var(--jkb-gray-300);
    /* border-radius: 8px; */
    cursor: pointer;
    transition: var(--jkb-transition);
    color: var(--jkb-gray-700);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Red circular icon container */
.jkb-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--jkb-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.jkb-nav-icon svg {
    width: 16px;
    height: 16px;
}

.jkb-nav-btn:hover:not(:disabled) {
    background: var(--jkb-gray-200);
    border-color: var(--jkb-gray-400);
}

.jkb-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.jkb-nav-btn:disabled .jkb-nav-icon {
    opacity: 0.6;
}

.jkb-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Calendar Container */
.jkb-calendar-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Calendar Days and Grid Container */
.jkb-calendar-content {
    width: 100%;
    overflow-x: auto;
}

/* Hide separate calendar days container - now integrated in grid columns */
.jkb-calendar-days {
    display: none;
}

/* Calendar Grid Column with Integrated Day Header */
.jkb-calendar-grid-column {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 70px;
}

/* Integrated Day Header (inside each grid column) */
.jkb-calendar-day-header {
    border-radius: 6px;
    text-align: center;
    cursor: default;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.jkb-calendar-day-header .jkb-cal-month {
    display: block;
    background: var(--jkb-secondary);
    color: var(--jkb-white);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 6px 8px 5px;
}

.jkb-calendar-day-header .jkb-cal-day {
    display: block;
    background: var(--jkb-white);
    color: var(--jkb-gray-900);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 0 4px;
    border-left: 1px solid var(--jkb-gray-200);
    border-right: 1px solid var(--jkb-gray-200);
}

.jkb-calendar-day-header .jkb-cal-weekday {
    display: block;
    background: var(--jkb-white);
    color: var(--jkb-gray-600);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 8px 6px;
    border: 1px solid var(--jkb-gray-200);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

/* Calendar Grid */
.jkb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    min-height: 300px;
    align-content: start;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Loading state overlays calendar grid */
.jkb-calendar-grid .jkb-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--jkb-white);
    z-index: 10;
    min-height: auto;
    display: none; /* Hidden by default, shown via JavaScript */
}

.jkb-calendar-grid .jkb-loading[style*="display: block"] {
    display: flex !important;
}

/* Slots Container (inside each grid column) */
.jkb-calendar-slots-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.jkb-grid-slot {
    padding: 5px 0;
    background: var(--jkb-white);
    border: 1.5px solid var(--jkb-primary);
    border-radius: 5px;
    color: var(--jkb-primary);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--jkb-transition);
    white-space: nowrap;
}

.jkb-grid-slot:hover {
    background: var(--jkb-primary);
    color: var(--jkb-white);
}

.jkb-grid-slot.jkb-slot-selected {
    background: var(--jkb-primary);
    color: var(--jkb-white);
}

/* No slot indicator */
.jkb-no-slot {
    padding: 7px 6px;
    text-align: center;
    color: var(--jkb-gray-400);
    font-size: 14px;
    font-weight: 300;
}

.jkb-calendar-notice {
    /* margin-top: auto; */
    padding-top: 20px;
}

/* =====================
   STEP 3 & 4: FORM & CONFIRM
   ===================== */

/* Timer Banner */
.jkb-timer-banner {
    background: var(--jkb-gray-100);
    border-radius: var(--jkb-radius-lg);
    border: 1px solid var(--jkb-gray-border);
    border-left-width: 4px;
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.jkb-timer-banner p {
    margin: 0;
    font-size: 18px;
    color: var(--jkb-gray-900);
    flex: 1;
}

/* Final minute: highlight reservation banner */
.jkb-timer-banner.jkb-timer-banner--last-minute {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #f87171;
}

.jkb-timer-banner.jkb-timer-banner--last-minute p {
    color: #7f1d1d;
}

.jkb-timer-banner.jkb-timer-banner--last-minute .jkb-timer-display {
    color: #b91c1c;
}

.jkb-timer {
    flex-shrink: 0;
}

.jkb-timer-display {
    font-size: 32px;
    font-weight: 700;
    color: var(--jkb-secondary);
    font-variant-numeric: tabular-nums;
}

.jkb-timer.jkb-timer-warning .jkb-timer-display {
    color: var(--jkb-primary);
}

/* Form Layout */
.jkb-form-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    background: var(--jkb-white);
    border-radius: var(--jkb-radius-xl);
    box-shadow: var(--jkb-shadow-lg);
    overflow: hidden;
}

/* intl-tel-input: country list extends outside the card; avoid clipping (dropdownContainer also set in JS) */
.jkb-appointment-registration .jkb-form-layout {
    overflow: visible;
}

/* Booking Summary Sidebar */
.jkb-booking-sidebar-summary {
    padding: 20px;
    border-right: 1px solid var(--jkb-gray-200);
    background: var(--jkb-gray-50);
}

.jkb-summary-section {
    margin-bottom: 24px;
}

.jkb-summary-section:last-child {
    margin-bottom: 0;
}

/* Payment logos — single clean row in booking/checkout sidebars */
.jkb-summary-payment-methods {
    margin-top: 50px;
    padding-top: 28px;
    /* Slightly darker than gray-200 so the line stays visible on gray-50 sidebars (some mobile displays) */
    border-top: 1px solid var(--jkb-gray-200, #d1d5db);
}

.jkb-summary-payment-methods .jkb-payment-methods-logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    /* Themes often set ul li { width:100% }; keep logos in one horizontal flow */
    min-width: 0;
}

.jkb-summary-payment-methods .jkb-payment-methods-logos > li {
    margin: 0;
    padding: 0;
    line-height: 0;
    list-style: none;
    flex: 0 0 auto;
    flex-shrink: 0;
    width: auto;
    max-width: none;
    min-width: 0;
}

.jkb-payment-methods-logos__item {
    margin: 0;
    line-height: 0;
    flex: 0 0 auto;
}

.jkb-payment-methods-logos__item img {
    display: block;
    height: 16px;
    width: auto;
    max-width: 38px;
    object-fit: contain;
    object-position: left center;
    opacity: 0.92;
    /* Defeat theme img { max-width: 100% } when parent li was forced full-width */
}

.jkb-payment-methods-logos__item--stripe img {
    height: 17px;
    max-width: 44px;
}

.jkb-payment-methods-logos__item--paypal img {
    max-width: 46px;
}

/* Variation attribute pills inside the booking sidebar */
.jkb-variation-attrs {
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.jkb-variation-attr-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--jkb-gray-100, #f3f4f6);
    border: 1px solid var(--jkb-gray-200, #e5e7eb);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.4;
}

.jkb-variation-attr-row dt {
    font-weight: 600;
    color: var(--jkb-gray-700, #374151);
    margin: 0;
}

.jkb-variation-attr-row dt::after {
    content: ':';
}

.jkb-variation-attr-row dd {
    color: var(--jkb-primary, #4f46e5);
    font-weight: 500;
    margin: 0;
}

.jkb-summary-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--jkb-gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.jkb-summary-consultant {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jkb-consultant-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--jkb-gray-200);
}

.jkb-consultant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jkb-consultant-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--jkb-gray-800);
}

/* Date Badge */
.jkb-summary-datetime {
    display: flex;
    gap: 12px;
}

.jkb-date-badge {
    background: var(--jkb-warning-border);
    border-radius: var(--jkb-radius);
    padding: 8px 5px;
    text-align: center;
    min-width: 65px;
}

.jkb-badge-month {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--jkb-gray-800);
}

.jkb-badge-day {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--jkb-gray-900);
    line-height: 1;
}

.jkb-badge-weekday {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--jkb-gray-700);
}

.jkb-time-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.jkb-full-date {
    font-size: 16px;
    font-weight: 600;
    color: var(--jkb-gray-800);
}

.jkb-time-range {
    font-size: 14px;
    margin-top: 5px;
    /* color: var(--jkb-gray-600); */
}

.jkb-btn-change {
    background: none;
    border: none;
    color: var(--jkb-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 4px;
}

.jkb-btn-change:hover {
    text-decoration: underline;
}

/* Cost Section */
.jkb-summary-cost {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jkb-cost-icon,
.jkb-agreement-icon {
    width: 44px;
    height: 44px;
    background: var(--jkb-info-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jkb-secondary);
}

.jkb-cost-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--jkb-gray-800);
}

.jkb-summary-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.jkb-summary-agreement span {
    font-size: 13px;
    color: var(--jkb-gray-700);
    line-height: 1.5;
}

/* ============================================
   Appointment Payment Page Styles
   ============================================ */

.jkb-hidden {
    display: none !important;
}

.jkb-payment-content {
    width: 100%;
}

/* Payment Section */
.jkb-payment-section {
    padding: 40px;
    background: var(--jkb-white);
    min-height: 100%;
}

.jkb-payment-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--jkb-gray-900);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.jkb-payment-section > p {
    font-size: 16px;
    color: var(--jkb-gray-600);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* Payment Card (paid & free) */
.jkb-payment-card {
    /* background: var(--jkb-white);
    border: 1px solid var(--jkb-gray-200);
    border-radius: var(--jkb-radius-lg);
    box-shadow: var(--jkb-shadow); */
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
}

.jkb-payment-card-header {
    padding: 28px 32px 24px;
    border-bottom: 1px solid var(--jkb-gray-100);
}

.jkb-payment-card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--jkb-gray-900);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.jkb-payment-card-subtitle {
    font-size: 15px;
    color: var(--jkb-gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Order total (paid only) */
.jkb-payment-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: var(--jkb-gray-50);
    border-bottom: 1px solid var(--jkb-gray-100);
}

.jkb-payment-order-total-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--jkb-gray-700);
}

.jkb-payment-order-total-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--jkb-gray-900);
    letter-spacing: -0.02em;
}

/* Payment methods */
.jkb-payment-methods-wrapper {
    padding: 24px 32px 28px;
}

.jkb-payment-methods-heading {
    font-size: 14px;
    font-weight: 600;
    color: var(--jkb-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 16px 0;
}

.jkb-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jkb-payment-method {
    display: block;
    border: 2px solid var(--jkb-gray-200);
    border-radius: var(--jkb-radius);
    padding: 18px 20px;
    cursor: pointer;
    transition: var(--jkb-transition);
    background: var(--jkb-white);
}

.jkb-payment-method:hover {
    border-color: var(--jkb-gray-300);
    background: var(--jkb-gray-50);
}

.jkb-payment-method:has(.jkb-payment-radio:checked),
.jkb-payment-method-selected {
    border-color: var(--jkb-primary);
    background: rgba(230, 57, 70, 0.06);
}

.jkb-payment-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.jkb-payment-method-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jkb-payment-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--jkb-radius);
    flex-shrink: 0;
}

.jkb-payment-method-icon-card {
    background: var(--jkb-gray-100);
    color: var(--jkb-gray-700);
}

.jkb-payment-method-icon-paypal {
    background: rgba(0, 112, 186, 0.1);
    color: #0070ba;
}

.jkb-payment-method-label {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    color: var(--jkb-gray-900);
}

.jkb-payment-method-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.jkb-payment-badge-stripe {
    color: #635bff;
    background: rgba(99, 91, 255, 0.12);
}

.jkb-payment-badge-paypal {
    color: #0070ba;
    background: rgba(0, 112, 186, 0.12);
}

.jkb-payment-no-methods {
    padding: 20px;
    background: var(--jkb-warning-bg);
    border: 1px solid var(--jkb-warning-border);
    border-radius: var(--jkb-radius);
    color: #856404;
}

.jkb-payment-no-methods p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Payment actions (CTA block) */
.jkb-payment-actions {
    padding: 24px 32px 28px;
    border-top: 1px solid var(--jkb-gray-100);
    background: var(--jkb-gray-50);
}

.jkb-payment-actions .jkb-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: var(--jkb-radius);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jkb-transition);
}

.jkb-payment-actions .jkb-btn .jkb-btn-icon {
    flex-shrink: 0;
}

.jkb-btn-pay-now,
.jkb-btn-confirm-booking {
    background: var(--jkb-primary);
    color: var(--jkb-white);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.25);
}

.jkb-btn-pay-now:hover:not(:disabled),
.jkb-btn-confirm-booking:hover:not(:disabled) {
    background: var(--jkb-primary-hover);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
}

.jkb-btn-pay-now:active:not(:disabled),
.jkb-btn-confirm-booking:active:not(:disabled) {
    transform: scale(0.99);
}

.jkb-btn-pay-now:disabled,
.jkb-btn-confirm-booking:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.jkb-payment-secure {
    margin: 14px 0 0 0;
    font-size: 13px;
    color: var(--jkb-gray-500);
    text-align: center;
}

/* Free booking card: no methods block, single CTA */
.jkb-payment-card-free .jkb-payment-actions {
    border-top: 1px solid var(--jkb-gray-100);
}

/* Customer Form Section */
.jkb-customer-form-section,
.jkb-confirm-section {
    padding: 32px;
}

.jkb-confirm-section h2 {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 600;
    color: var(--jkb-gray-900);
}

/* Form Styles */
.jkb-customer-form .jkb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Retainer registration — partner block (distinct from agreement-step checkbox styling) */
.jkb-retainer-partner-panel {
    margin: 0 0 20px;
    padding: 18px 20px 20px;
    background: var(--jkb-gray-100, #f1f5f9);
    border: 1px solid var(--jkb-gray-200, #e2e8f0);
    border-radius: var(--jkb-radius, 10px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.jkb-retainer-partner-panel__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--jkb-gray-900, #0f172a);
    letter-spacing: -0.01em;
}

.jkb-retainer-partner-panel__hint {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--jkb-gray-600, #475569);
}

.jkb-retainer-partner-panel__check {
    margin: 0 0 4px;
}

.jkb-retainer-partner-panel__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--jkb-gray-800, #1e293b);
}

.jkb-retainer-partner-panel__checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--jkb-accent, #457b9d);
}

.jkb-retainer-partner-panel__names {
    margin-top: 12px;
    padding-top: 16px;
    margin-bottom: 0;
    border-top: 1px solid var(--jkb-gray-200, #e2e8f0);
}

.jkb-retainer-partner-panel__names .jkb-form-group {
    margin-bottom: 0;
}

.jkb-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--jkb-gray-800);
    margin-bottom: 8px;
}

/* Visually hidden text for screen readers (required hints, etc.) */
.jkb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.jkb-form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid var(--jkb-gray-500);
    border-radius: var(--jkb-radius);
    transition: var(--jkb-transition);
}

.jkb-form-group input:focus {
    outline: none;
    border-color: var(--jkb-accent);
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.15);
}

.jkb-phone-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--jkb-gray-500);
    border-radius: var(--jkb-radius);
    overflow: hidden;
}

/* intl-tel-input: dropdown / dial row must not be clipped */
.jkb-phone-input.ca-iti-wrap {
    display: block;
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    /* Match .jkb-form-group input; intl CDN defaults to a smaller size */
    font-size: 15px;
    font-family: inherit;
    line-height: normal;
}

/* Single outer border on the iti widget (matches .jkb-form-group input) */
.jkb-phone-input.ca-iti-wrap .iti {
    border: 1px solid var(--jkb-gray-500);
    border-radius: var(--jkb-radius);
    transition: var(--jkb-transition);
    font-size: inherit;
    font-family: inherit;
}

.jkb-phone-input.ca-iti-wrap .iti:focus-within {
    border-color: var(--jkb-accent);
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.15);
}

.jkb-phone-input.ca-iti-wrap .iti input[type="tel"],
.jkb-phone-input.ca-iti-wrap .iti input[type="text"],
.jkb-phone-input.ca-iti-wrap .iti input[type="tel"]:focus,
.jkb-phone-input.ca-iti-wrap .iti input[type="text"]:focus {
    border: 0 !important;
    box-shadow: none !important;
    font-size: inherit !important;
    font-family: inherit !important;
}

.jkb-phone-input.ca-iti-wrap .iti__selected-dial-code {
    font-size: inherit;
}

.jkb-phone-input .jkb-phone-icon {
    padding: 12px;
    background: var(--jkb-gray-100);
    border-right: 1px solid var(--jkb-gray-500);
}

.jkb-phone-input:not(.ca-iti-wrap) input {
    border: none;
    border-radius: 0;
}

.jkb-phone-input:not(.ca-iti-wrap) input:focus {
    box-shadow: none;
}

.jkb-form-actions {
    margin-top: 32px;
}

.jkb-btn-continue,
.jkb-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--jkb-primary);
    color: var(--jkb-white);
    padding: 14px 28px;
    border: none;
    border-radius: var(--jkb-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    cursor: pointer;
    transition: var(--jkb-transition);
}

.jkb-btn-continue:hover {
    background: var(--jkb-primary-hover);
}

.jkb-customer-form-section > .jkb-applicant-notice {
    margin-bottom: 40px;
}

.jkb-applicant-confirm-wrap {
    margin-top: 8px;
    margin-bottom: 20px;
}

/* Confirm Details */
.jkb-confirm-details {
    margin-bottom: 24px;
}

.jkb-detail-row {
    padding: 14px 0;
    border-bottom: 1px solid var(--jkb-gray-200);
}

.jkb-detail-row:last-child {
    border-bottom: none;
}

.jkb-detail-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--jkb-gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.jkb-detail-value {
    font-size: 15px;
    color: var(--jkb-gray-800);
}

/* Agreement Section */
.jkb-agreement-section {
    margin-bottom: 24px;
}

.jkb-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.jkb-checkbox-label input[type="checkbox"] {
    /* margin-top: 4px; */
    width: 24px;
    height: 22px;
    flex-shrink: 0;
    outline: none;
    box-shadow: none;
}

.jkb-checkbox-text {
    font-size: 13px;
    color: var(--jkb-gray-700);
    line-height: 1.6;
}

.jkb-terms-link {
    color: var(--jkb-accent);
    text-decoration: none;
    font-weight: 500;
}

.jkb-terms-link:hover {
    text-decoration: underline;
}

/* Signature Section */
.jkb-signature-section {
    margin-bottom: 24px;
}

.jkb-signature-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--jkb-gray-800);
    margin-bottom: 6px;
}

.jkb-signature-info {
    font-size: 13px;
    color: var(--jkb-gray-600);
    margin: 0 0 12px;
}

.jkb-signature-pad-wrapper {
    position: relative;
    border: 2px dashed var(--jkb-gray-300);
    border-radius: var(--jkb-radius);
    background: var(--jkb-gray-50);
}

.jkb-signature-pad {
    width: 100%;
    height: 185px;
    cursor: crosshair;
}

.jkb-signature-clear {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--jkb-white);
    border: 1px solid var(--jkb-gray-300);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--jkb-gray-600);
    cursor: pointer;
    transition: var(--jkb-transition);
}

.jkb-signature-clear:hover {
    background: var(--jkb-gray-100);
}

/* Confirm Actions */
.jkb-confirm-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.jkb-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--jkb-white);
    border: 1px solid var(--jkb-gray-300);
    border-radius: var(--jkb-radius);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--jkb-gray-700);
    cursor: pointer;
    transition: var(--jkb-transition);
}

.jkb-btn-edit:hover {
    background: var(--jkb-gray-100);
}

.jkb-btn-confirm-pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--jkb-primary);
    color: var(--jkb-white);
    padding: 14px 28px;
    border: none;
    border-radius: var(--jkb-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jkb-transition);
}

.jkb-btn-confirm-pay:hover {
    background: var(--jkb-primary-hover);
}

.jkb-btn-confirm-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =====================
   SUCCESS SCREEN
   ===================== */

.jkb-success-content {
    text-align: center;
    padding: 60px 40px;
    background: var(--jkb-white);
    border-radius: var(--jkb-radius-xl);
    box-shadow: var(--jkb-shadow-lg);
    max-width: 500px;
    margin: 0 auto;
}

.jkb-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--jkb-success) 0%, #4caf50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: var(--jkb-white);
}

.jkb-success-content h2 {
    margin: 0 0 12px;
    font-size: 24px;
    color: var(--jkb-gray-900);
}

.jkb-success-content p {
    margin: 0 0 16px;
    color: var(--jkb-gray-600);
}

.jkb-confirmation-number {
    background: var(--jkb-gray-100);
    padding: 12px 20px;
    border-radius: var(--jkb-radius);
    display: inline-block;
    margin-bottom: 24px;
}

.jkb-confirmation-number strong {
    color: var(--jkb-primary);
    font-size: 16px;
}

.jkb-btn-done {
    padding: 12px 32px;
    background: var(--jkb-secondary);
    color: var(--jkb-white);
    border: none;
    border-radius: var(--jkb-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jkb-transition);
}

.jkb-btn-done:hover {
    background: var(--jkb-secondary-hover);
}

/* =====================
   UTILITIES
   ===================== */

/* Scrollbar Styling */
.jkb-availability-grid::-webkit-scrollbar,
.jkb-calendar-days::-webkit-scrollbar {
    height: 6px;
}

.jkb-availability-grid::-webkit-scrollbar-track,
.jkb-calendar-days::-webkit-scrollbar-track {
    background: var(--jkb-gray-100);
    border-radius: 3px;
}

.jkb-availability-grid::-webkit-scrollbar-thumb,
.jkb-calendar-days::-webkit-scrollbar-thumb {
    background: var(--jkb-gray-400);
    border-radius: 3px;
}

/* Step transitions */
.jkb-step {
    animation: jkb-fade-in 0.3s ease;
}

@keyframes jkb-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* YouTube Video Modal - Contained Style */
.jkb-video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: jkb-fade-in 0.2s ease;
}

.jkb-video-modal {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--jkb-white);
    border-radius: var(--jkb-radius-lg);
    box-shadow: var(--jkb-shadow-xl);
    overflow: hidden;
    animation: jkb-slide-up 0.3s ease;
}

@keyframes jkb-slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.jkb-video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: var(--jkb-white);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--jkb-transition);
    z-index: 10001;
}

.jkb-video-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.jkb-video-wrapper-fullscreen {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: var(--jkb-gray-900);
}

.jkb-video-wrapper-fullscreen iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   Agreement Step Styles
   ======================================== */

.jkb-agreement-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Agreement Header */
.jkb-agreement-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid var(--jkb-gray-200);
    min-height: 120px;
}

.jkb-company-logo {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jkb-company-logo--has-image {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.jkb-company-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--jkb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 600;
}

.jkb-company-details {
    flex: 1;
    font-size: 14px;
    line-height: 1.8;
    color: var(--jkb-gray-700);
}

.jkb-company-details strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--jkb-gray-900);
    margin-bottom: 8px;
}

.jkb-company-details div {
    margin-bottom: 4px;
}

.jkb-company-details a {
    color: var(--jkb-primary);
    text-decoration: underline;
}

.jkb-company-details a:hover {
    color: var(--jkb-primary-hover);
}

/* Agreement Sidebar */
.jkb-agreement-sidebar {
    border-right: 1px solid var(--jkb-gray-200);
    background: var(--jkb-gray-100);
    min-height: 100%;
}

/* Agreement Form Title */
.jkb-agreement-title {
    margin-bottom: 24px;
    padding: 10px;
    border-bottom: 2px solid var(--jkb-gray-200);
}

.jkb-agreement-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--jkb-gray-900);
    margin: 0 0 6px 0;
}

.jkb-agreement-title p {
    font-size: 13px;
    color: var(--jkb-gray-600);
    margin: 0;
}

/* Agreement Header in Sidebar */
.jkb-agreement-sidebar .jkb-agreement-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--jkb-gray-200);
    background: transparent;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.jkb-agreement-sidebar .jkb-company-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.jkb-agreement-sidebar .jkb-company-details {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
}

.jkb-agreement-sidebar .jkb-company-details strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--jkb-gray-900);
    margin-bottom: 6px;
}

.jkb-agreement-sidebar .jkb-company-details div {
    margin-bottom: 3px;
    font-size: 12px;
    word-break: break-word;
}

/* Agreement Steps Navigation (Vertical) */
.jkb-agreement-sidebar .jkb-agreement-steps-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.jkb-agreement-sidebar .jkb-agreement-step-item {
    flex: none;
    min-width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: default;
    transition: all 0.2s;
    position: relative;
    border-left: 3px solid transparent;
}

.jkb-agreement-sidebar .jkb-agreement-step-item.active.current {
    background: rgba(255, 255, 255, 0.8);
    border-left-color: var(--jkb-primary);
}

.jkb-agreement-sidebar .jkb-agreement-step-item .jkb-step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jkb-gray-200);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    color: var(--jkb-gray-600);
    margin-bottom: 0;
    transition: all 0.2s;
}

.jkb-agreement-sidebar .jkb-agreement-step-item.active .jkb-step-number {
    background: var(--jkb-primary);
    color: #fff;
    border: 2px solid var(--jkb-primary);
}

.jkb-agreement-sidebar .jkb-agreement-step-item.active.current .jkb-step-number {
    background: var(--jkb-primary);
    color: #fff;
    border: 2px solid var(--jkb-primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.jkb-agreement-sidebar .jkb-agreement-step-item.active:not(.current) .jkb-step-number {
    background: var(--jkb-primary);
    color: #fff;
    border: 2px solid var(--jkb-primary);
    opacity: 0.8;
}

.jkb-agreement-sidebar .jkb-agreement-step-item.active ~ .jkb-agreement-step-item:not(.active) .jkb-step-number {
    background: var(--jkb-gray-100);
    color: var(--jkb-gray-400);
    border: 2px solid var(--jkb-gray-300);
}

.jkb-agreement-sidebar .jkb-agreement-step-item .jkb-step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--jkb-gray-600);
    text-align: left;
    flex: 1;
}

.jkb-agreement-sidebar .jkb-agreement-step-item.active .jkb-step-label {
    color: var(--jkb-gray-900);
    font-weight: 600;
}

/* Agreement Content */
.jkb-agreement-content {
    padding: 32px;
    background: #fff;
    overflow-y: auto;
    min-width: 0;
    max-width: 100%;
}

.jkb-step-agreement {
    max-width: 100%;
    overflow-x: hidden;
}

.jkb-step-agreement .jkb-form-layout {
    max-width: 100%;
}

/* Standalone agreement URL after submit: preview + print only */
.jkb-booking-app.jkb-agreement-submitted-only .jkb-form-layout {
    grid-template-columns: 1fr;
}

.jkb-booking-app.jkb-agreement-submitted-only .jkb-agreement-sidebar {
    display: none !important;
}

.jkb-agreement-section-5-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.jkb-agreement-section-5-header .jkb-agreement-section-5-title {
    flex: 1;
    min-width: 200px;
    margin-bottom: 16px;
}

.jkb-agreement-print-toolbar {
    flex-shrink: 0;
    padding-top: 2px;
}

.jkb-agreement-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jkb-agreement-print-icon {
    flex-shrink: 0;
}

.jkb-agreement-print-doc-heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--jkb-gray-900, #111827);
    text-align: center;
}

.jkb-agreement-print-area > .jkb-preview-intro:first-of-type {
    margin-top: 0;
    text-align: center;
}

@media print {
    @page {
        margin: 12mm 12mm 16mm;
        size: A4;
    }

    /* Isolate print to the agreement when revisiting a submitted form (avoid blank theme-only print). */
    body:has(.jkb-agreement-submitted-only) * {
        visibility: hidden;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-print-area,
    body:has(.jkb-agreement-submitted-only) .jkb-agreement-print-area * {
        visibility: visible !important;
    }

    /* Must follow the rule above: exclude intro/heading from the printable region (Ctrl+P). */
    body:has(.jkb-agreement-submitted-only) .jkb-agreement-print-area .jkb-no-print,
    body:has(.jkb-agreement-submitted-only) .jkb-agreement-print-area .jkb-no-print * {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-no-print,
    body:has(.jkb-agreement-submitted-only) .jkb-agreement-print-toolbar {
        display: none !important;
        visibility: hidden !important;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-section-5-header .jkb-section-title {
        display: none !important;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-preview-container {
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-print-layout thead {
        display: table-header-group;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-print-layout tbody {
        display: table-row-group;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-print-thead-spacer td,
    body:has(.jkb-agreement-submitted-only) .jkb-agreement-print-thead-spacer-cell {
        height: 20px !important;
        overflow: visible;
        background: #fff !important;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-preview-container .jkb-preview-section:first-child {
        padding-top: 0 !important;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-preview-container .jkb-preview-consultant-logo {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-preview-container a[href]::after {
        content: none !important;
    }

    /* Do not print uploaded attachments/documents grid. */
    body:has(.jkb-agreement-submitted-only) .jkb-agreement-preview-container .jkb-agreement-documents-grid {
        display: none !important;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-preview-container .jkb-preview-section:has(.jkb-agreement-documents-grid) {
        display: none !important;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-preview-container .jkb-agreement-checkbox.is-checked {
        position: relative;
        background: #16a34a !important;
        border-color: #15803d !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-preview-container .jkb-agreement-checkbox.is-checked svg {
        display: none !important;
    }

    body:has(.jkb-agreement-submitted-only) .jkb-agreement-preview-container .jkb-agreement-checkbox.is-checked::after {
        content: '\2713';
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

.jkb-form-layout > .jkb-agreement-content {
    min-width: 0;
}

.jkb-agreement-section {
    animation: fadeIn 0.3s ease-in;
    min-width: 0;
    max-width: 100%;
}

.jkb-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--jkb-gray-900);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--jkb-gray-200);
}

/* Client Details Display */
.jkb-client-details-display {
    display: grid;
    min-width: 0;
    max-width: 100%;
}

.jkb-detail-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 16px;
    padding: 12px 16px;
    border-radius: 6px;
    min-width: 0;
    max-width: 100%;
}

.jkb-detail-item .jkb-detail-label {
    font-weight: 600;
    color: var(--jkb-gray-700);
    flex: 0 0 auto;
    min-width: min(160px, 100%);
    max-width: 100%;
}

.jkb-detail-item .jkb-detail-value {
    color: var(--jkb-gray-900);
    flex: 1 1 200px;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Agreement Text */
.jkb-agreement-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--jkb-gray-800);
    background: #fff;
    max-height: 600px;
    overflow-y: auto;
}

.jkb-agreement-text p {
    font-size: 16px;
    margin: 0 0 16px;
}

.jkb-agreement-text p:last-child {
    margin-bottom: 0;
}

.jkb-agreement-text strong {
    font-size: 16px;
    /* background: #ffeb3b; */
    padding: 2px 0px;
    font-weight: 600;
}

/* Agreement body from template (TinyMCE): ol/ul — themes often reset list-style */
.jkb-booking-wrapper .jkb-agreement-text ul,
.jkb-booking-wrapper .jkb-agreement-text ol {
    list-style-position: outside;
    padding-left: 1.5em;
    padding-inline-start: 1.5em;
    margin: 0 0 1.15em;
}

.jkb-booking-wrapper .jkb-agreement-text ul {
    list-style-type: disc;
}

.jkb-booking-wrapper .jkb-agreement-text ol {
    list-style-type: decimal;
}

.jkb-booking-wrapper .jkb-agreement-text li {
    display: list-item;
    margin-bottom: 0.65em;
}

.jkb-booking-wrapper .jkb-agreement-text li:last-child {
    margin-bottom: 0;
}

.jkb-booking-wrapper .jkb-agreement-text ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.5em;
    margin-bottom: 0.65em;
}

.jkb-booking-wrapper .jkb-agreement-text ol ol ol {
    list-style-type: lower-roman;
}

.jkb-booking-wrapper .jkb-agreement-text ul ul {
    list-style-type: circle;
    margin-top: 0.5em;
    margin-bottom: 0.65em;
}

.jkb-booking-wrapper .jkb-agreement-text ul ul ul {
    list-style-type: square;
}

.jkb-booking-wrapper .jkb-agreement-text ol ul,
.jkb-booking-wrapper .jkb-agreement-text ul ol {
    margin-top: 0.5em;
    margin-bottom: 0.65em;
}

.jkb-agreement-acceptance {
    margin-top: 50px;
    /* padding-top: 24px;
    border-top: 1px solid var(--jkb-gray-200); */
}

.jkb-agreement-acceptance .jkb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    /* border-radius: 6px; */
    /* transition: background 0.2s; */
}

/* .jkb-agreement-acceptance .jkb-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 3px;
    border-radius: 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--jkb-primary);
} */

.jkb-agreement-acceptance .jkb-checkbox-label span {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    font-style: italic;
}

.jkb-agreement-acceptance .jkb-checkbox-label span strong {
    background: none;
    padding: 0;
    color: var(--jkb-gray-900);
}

/* Client Section Form */
.jkb-client-section-form {
    max-width: 800px;
}

.jkb-form-group {
    margin-bottom: 24px;
}

.jkb-form-group select,
.jkb-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--jkb-gray-300);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.jkb-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.jkb-form-group select:focus,
.jkb-form-group textarea:focus {
    outline: none;
    border-color: var(--jkb-primary);
}

.jkb-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Service Q&A agreement (qa_email_service): summary + questions, no uploads */
#jkb-service-qa-agreement-questions .jkb-service-qa-field label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

#jkb-service-qa-agreement-questions .jkb-service-qa-textarea {
    background: var(--jkb-gray-50, #f3f4f6);
    border-color: var(--jkb-gray-200, #e5e7eb);
}

#jkb-service-qa-agreement-questions .jkb-service-qa-char-hint {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 13px;
    color: var(--jkb-gray-500, #6b7280);
}

/* Use searchable dropdown for select elements in agreement form */
.jkb-client-section-form .jkb-form-group select.jkb-searchable,
.jkb-agreement-section select.jkb-searchable {
    display: none !important;
}

.jkb-client-section-form .jkb-form-group .jkb-searchable-dropdown,
.jkb-agreement-section .jkb-form-group .jkb-searchable-dropdown {
    display: block;
    margin-top: 8px;
    width: 100%;
}

.jkb-form-help {
    font-size: 12px;
    color: var(--jkb-gray-600);
    margin-top: 4px;
}

.jkb-radio-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.jkb-radio-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid var(--jkb-gray-300);
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s;
    min-width: 80px;
    justify-content: center;
}

.jkb-radio-label:hover {
    border-color: var(--jkb-primary);
    background: var(--jkb-primary-light);
}

.jkb-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.jkb-radio-label input[type="radio"]:checked {
    position: absolute;
}

.jkb-radio-label input[type="radio"]:checked ~ span {
    position: relative;
    z-index: 1;
}

.jkb-radio-label input[type="radio"]:checked + span {
    color: #fff;
    font-weight: 600;
}

.jkb-radio-label input[type="radio"]:checked ~ span {
    color: #fff;
    font-weight: 600;
}

/* Style the label when radio is checked */
.jkb-radio-group input[type="radio"]:checked + .jkb-radio-label,
.jkb-radio-label:has(input[type="radio"]:checked) {
    background: var(--jkb-primary);
    border-color: var(--jkb-primary);
    color: #fff;
}

/* Fallback for browsers without :has() support */
.jkb-radio-label.jkb-radio-checked {
    background: var(--jkb-primary);
    border-color: var(--jkb-primary);
    color: #fff;
}

.jkb-radio-label.jkb-radio-checked span {
    color: #fff;
    font-weight: 600;
}

.jkb-radio-label span {
    font-size: 14px;
    color: var(--jkb-gray-700);
    transition: color 0.2s;
    pointer-events: none;
}

.jkb-upload-requirements {
    list-style: disc;
    margin: 12px 0 16px 20px;
    color: var(--jkb-gray-700);
    font-size: 13px;
}

.jkb-upload-requirements li {
    margin-bottom: 6px;
}

.jkb-upload-area {
    border: 2px dashed var(--jkb-gray-300);
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.jkb-upload-area:hover {
    border-color: var(--jkb-primary);
    background: var(--jkb-primary-light);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.jkb-upload-area.jkb-drag-over {
    border-color: var(--jkb-primary);
    background: var(--jkb-primary-light);
    border-style: solid;
}

.jkb-upload-area input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 2;
}

.jkb-upload-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jkb-gray-100);
    border-radius: 50%;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.jkb-upload-area:hover .jkb-upload-icon-wrapper {
    background: var(--jkb-primary);
    transform: scale(1.1);
}

.jkb-upload-icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: var(--jkb-gray-600);
    transition: color 0.3s ease;
}

.jkb-upload-area:hover .jkb-upload-icon-wrapper svg {
    color: #fff;
}

/* Upload label removed - using text only */

.jkb-upload-text {
    font-size: 15px;
    color: var(--jkb-gray-700);
    margin-top: 12px;
    pointer-events: none;
}

.jkb-upload-text strong {
    font-weight: 600;
    color: var(--jkb-gray-800);
}

.jkb-upload-text .jkb-upload-max-note {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--jkb-gray-600);
}

.jkb-upload-area:hover .jkb-upload-text {
    color: var(--jkb-gray-900);
}

.jkb-upload-area:hover .jkb-upload-text strong {
    color: var(--jkb-primary);
}

.jkb-uploaded-files {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.jkb-uploaded-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--jkb-gray-50);
    border-radius: 4px;
    font-size: 13px;
}

.jkb-upload-progress {
    flex: 1;
    margin: 0 8px;
    height: 4px;
    background: var(--jkb-gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.jkb-upload-progress-bar {
    height: 100%;
    background: var(--jkb-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.jkb-upload-status {
    margin-right: 8px;
    font-size: 12px;
    color: var(--jkb-gray-600);
}

.jkb-remove-file {
    background: none;
    border: none;
    color: var(--jkb-error);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jkb-form-info {
    margin-top: 24px;
    padding: 16px;
    background: var(--jkb-primary-light);
    border-radius: 6px;
    font-size: 13px;
    color: var(--jkb-gray-700);
}

.jkb-form-info p { font-size: 14px; }

/* Signature Container */
.jkb-signature-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}

.jkb-signature-box {
    padding: 20px;
    background: var(--jkb-gray-50);
    border-radius: 6px;
}

.jkb-signature-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--jkb-gray-800);
    margin-bottom: 12px;
}

/* Agreement signature: border on wrapper so the canvas border-box matches the drawable
   area — padding/border on <canvas> misaligns SignaturePad (pointer uses getBoundingClientRect). */
.jkb-signature-pad-wrapper {
    position: relative;
    margin-bottom: 16px;
    border: 2px solid var(--jkb-gray-300);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.jkb-signature-pad {
    width: 100%;
    height: 185px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: #fff;
    cursor: crosshair;
    display: block;
    touch-action: none;
    vertical-align: top;
}

.jkb-signature-clear {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px 12px;
    background: var(--jkb-gray-200);
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.jkb-signature-clear:hover {
    background: var(--jkb-gray-300);
}

.jkb-signature-display {
    margin-bottom: 16px;
}

.jkb-signature-display img {
    max-width: 100%;
    max-height: 185px;
    height: 185px;
    border: 2px solid var(--jkb-gray-300);
    border-radius: 6px;
    background: #fff;
}

.jkb-signature-name,
.jkb-signature-date {
    margin-top: 12px;
}

.jkb-signature-name,
.jkb-signature-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.jkb-signature-label {
    font-weight: 600;
    color: var(--jkb-gray-700);
    flex-shrink: 0;
}

.jkb-signature-value {
    color: var(--jkb-gray-900);
    font-weight: 500;
}

.jkb-consultant-signature {
    background: #fff;
}

/* Section Actions */
.jkb-section-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--jkb-gray-200);
    position: relative;
    z-index: 1;
}

.jkb-btn-prev,
.jkb-btn-next {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 10;
}

.jkb-btn-prev {
    background: var(--jkb-gray-200);
    color: var(--jkb-gray-700);
    border: 1px solid var(--jkb-gray-200);
}

.jkb-btn-prev:hover {
    background: var(--jkb-gray-300);
    z-index: 11;
}

.jkb-btn-next {
    background: var(--jkb-primary);
    color: #fff;
}

.jkb-btn-next:hover {
    background: var(--jkb-primary-hover);
    z-index: 11;
}

.jkb-btn-next:disabled,
.jkb-btn-next:disabled:hover,
.jkb-btn-continue:disabled,
.jkb-btn-continue[disabled],
.jkb-btn-continue:disabled:hover,
.jkb-btn-continue[disabled]:hover {
    background: var(--jkb-primary-light);
    color: var(--jkb-primary);
    opacity: 1;
    cursor: not-allowed;
    z-index: 10;
    border: 1px solid var(--jkb-primary);
}

.jkb-btn-continue {
    background: var(--jkb-primary);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jkb-btn-continue:hover {
    background: var(--jkb-primary-hover);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Resources List Template Styles
   ======================================== */

/* Resources Grid Layout */
.jkb-resources-grid {
    display: grid;
    gap: 10px;
    align-items: stretch;
    margin-top: 20px;
    margin-bottom: 20px;
}

.jkb-resource-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.jkb-columns-1 { 
    grid-template-columns: 1fr; 
}

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

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

.jkb-columns-4 { 
    grid-template-columns: repeat(4, 1fr); 
}

/* Resource Card (Compact Style) — equal row height via flex column + full-area link */
.jkb-resource-card-compact {
    background: var(--jkb-white);
    border: 1px solid var(--jkb-gray-300);
    border-radius: var(--jkb-radius-lg, 10px);
    padding: 10px;
    text-align: center;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

a.jkb-resource-card-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    text-decoration-line: none !important;
    text-decoration-color: inherit !important;
}

a.jkb-resource-card-link:hover,
a.jkb-resource-card-link:focus-visible {
    box-shadow: var(--jkb-shadow-lg);
    border-color: var(--jkb-gray-400);
    transform: translateY(-2px);
    outline: none;
}

a.jkb-resource-card-link:focus-visible {
    box-shadow: var(--jkb-shadow-lg), 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.jkb-resource-card-link--disabled {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: default;
}

/* Resource Avatar */
.jkb-resource-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
}

.jkb-resource-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jkb-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--jkb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--jkb-white);
}

/* Resource Info */
.jkb-resource-info {
    flex: 1 1 auto;
    margin-bottom: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jkb-resource-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: var(--jkb-gray-900);
}

.jkb-resource-title {
    color: var(--jkb-gray-600);
    font-size: 14px;
    margin: 0 0 8px;
}

.jkb-resource-about {
    color: var(--jkb-gray-600);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Resource Availability — fixed slot so cards match height with/without a date */
.jkb-resource-availability {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jkb-next-available {
    display: inline-block;
    background: var(--jkb-info-bg);
    color: var(--jkb-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.jkb-next-available--placeholder {
    visibility: hidden;
    pointer-events: none;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
}

/* Book Resource Button */
.jkb-book-resource-btn {
    display: block;
    background: var(--jkb-secondary);
    color: var(--jkb-white);
    padding: 12px;
    border-radius: var(--jkb-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.jkb-book-resource-btn:hover {
    background: var(--jkb-secondary-hover);
    color: var(--jkb-white);
}

/* No Resources Message */
.jkb-no-resources {
    text-align: center;
    padding: 40px;
    color: var(--jkb-gray-600);
}

/* =============================================
   SERVICES LISTING  [jkb_services] — simple cards, full-width image
   ============================================= */
.jkb-svc-grid,
.jkb-resources-slider.jkb-svc-slider,
.jkb-svl-wrapper {
    --jkb-listing-text: #111827;
    --jkb-listing-muted: #6b7280;
    --jkb-listing-border: #e5e7eb;
}

.jkb-svc-grid {
    display: grid;
    gap: 20px;
    margin: 24px 0;
    align-items: stretch;
}
.jkb-svc-columns-1 { grid-template-columns: 1fr; }
.jkb-svc-columns-2 { grid-template-columns: repeat(2, 1fr); }
.jkb-svc-columns-3 { grid-template-columns: repeat(3, 1fr); }
.jkb-svc-columns-4 { grid-template-columns: repeat(4, 1fr); }

.jkb-svc-card {
    background: #fff;
    border: 1px solid var(--jkb-listing-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: var(--jkb-radius-lg);
}

.jkb-svc-thumb-link {
    display: block;
    width: 100%;
    text-decoration: none;
    flex-shrink: 0;
}

.jkb-svc-media {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #f9fafb;
    overflow: hidden;
    line-height: 0;
}

.jkb-svc-media__img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.jkb-svc-media__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 24px;
    background: #f3f4f6;
}

.jkb-svc-media__placeholder svg {
    width: 48px;
    height: 48px;
    color: #9ca3af;
}

.jkb-svc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 16px;
}

.jkb-svc-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    min-height: 2.7em;
    color: var(--jkb-listing-text);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.jkb-svc-name a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jkb-svc-name a:hover {
    color: var(--jkb-primary, #4f46e5);
}

.jkb-svc-price-row {
    display: flex;
    justify-content: flex-start;
    margin: 8px 0 0;
    padding: 0;
    border: none;
    line-height: 1.2;
    width: 100%;
}

.jkb-svc-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 6px;
    font-weight: 700;
    color: var(--jkb-listing-text);
}

.jkb-svc-price-from {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--jkb-listing-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.jkb-svc-price-currency {
    font-size: 0.9rem;
    font-weight: 700;
}

.jkb-svc-price-amount {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.jkb-svc-price--range .jkb-svc-price-amount {
    font-size: 1.05rem;
}

.jkb-svc-price-sep {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--jkb-listing-muted);
    padding: 0 2px;
}

.jkb-svc-desc {
    margin: 10px 0 0;
    font-size: 0.8125rem;
    color: var(--jkb-listing-muted);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jkb-svc-footer {
    margin-top: auto;
    padding-top: 14px;
    width: 100%;
}

.jkb-svc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--jkb-primary, #4f46e5);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 14px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s ease, opacity 0.2s ease;
    border: none;
}

.jkb-svc-btn:hover {
    background: var(--jkb-primary-dark, #4338ca);
    color: #fff;
    text-decoration: none;
}

.jkb-svc-btn__chevrons {
    display: flex;
    line-height: 0;
}

.jkb-svc-btn__chevrons svg {
    flex-shrink: 0;
}

.jkb-svc-empty {
    text-align: center;
    padding: 48px;
    color: var(--jkb-listing-muted);
}

.jkb-svc-slider .jkb-slider-item {
    padding: 8px 10px 16px;
}

.jkb-svc-slider .jkb-slider-item .jkb-svc-card {
    height: 100%;
}

@media (max-width: 1024px) {
    .jkb-svc-columns-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .jkb-svc-columns-4,
    .jkb-svc-columns-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .jkb-svc-columns-4,
    .jkb-svc-columns-3,
    .jkb-svc-columns-2 { grid-template-columns: 1fr; }
    .jkb-svc-grid { gap: 16px; }
    .jkb-svc-price-amount { font-size: 1.1rem; }
    .jkb-svc-price--range .jkb-svc-price-amount { font-size: 1rem; }
}

/* =============================================
   RESOURCES SLIDER (shared track / arrows / dots)
   ============================================= */
.jkb-resources-slider {
    position: relative;
    margin: 0;
    padding: 0 44px;
    box-sizing: border-box;
}

.jkb-slider-viewport {
    overflow: hidden;
}

.jkb-slider-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.jkb-slider-item {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 8px 10px 16px;
    display: flex;
    flex-direction: column;
}

.jkb-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    /* background: #ececec; */
    border: 1px solid #dedede;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4a4a;
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.jkb-slider-btn:hover {
    background: #e0e0e0;
    color: #222;
    border-color: #d0d0d0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.jkb-slider-btn:focus-visible {
    outline: 2px solid var(--jkb-primary, #4f46e5);
    outline-offset: 2px;
}

.jkb-slider-prev { left: 0; }
.jkb-slider-next { right: 0; }

.jkb-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.jkb-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cfcfcf;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
    flex-shrink: 0;
}

.jkb-slider-dot.jkb-dot-active {
    background: var(--jkb-primary, #4f46e5);
    width: 22px;
    border-radius: 4px;
}

.jkb-slider-item .jkb-resource-card-compact {
    flex: 1;
}

@media (max-width: 767px) {
    .jkb-resources-slider {
        padding: 0 15px;
    }
    .jkb-slider-btn {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

@media (max-width: 1440px) {
    .jkb-signature-container {
        grid-template-columns: 1fr;
    }
}
   
@media (max-width: 1200px) {
    .jkb-detail-content {
        grid-template-columns: 35% 1fr;
    }

    .jkb-resource-profile {
        padding: 0 15px 20px;
    }
}

/* Tablets and Below (max-width: 992px) */
@media (max-width: 992px) {
    /* Booking Layout */
    .jkb-booking-layout {
        grid-template-columns: 1fr;
    }
    
    /* Detail Content */
    .jkb-detail-content {
        grid-template-columns: 1fr;
    }

    
    /* Form Layout */
    .jkb-form-layout {
        grid-template-columns: 1fr;
    }
    
    /* Booking Sidebar Summary */
    .jkb-booking-sidebar-summary {
        border-right: none;
        border-bottom: 1px solid var(--jkb-gray-200);
    }

    /* Payment logos: themes often set aside ul li { width:100% } — force one horizontal row; scroll if needed */
    .jkb-summary-payment-methods {
        border-top-width: 1px;
        border-top-style: solid;
        border-top-color: var(--jkb-gray-400, #9ca3af);
    }

    .jkb-summary-payment-methods .jkb-payment-methods-logos {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .jkb-summary-payment-methods .jkb-payment-methods-logos > li {
        width: auto;
        flex: 0 0 auto;
    }

    /* Agreement Sidebar */
    .jkb-agreement-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--jkb-gray-200);
    }
}

/* Tablet Devices (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .jkb-resource-image.jkb-has-image {
        width: 80%;
        max-width: 220px;
        margin: 0 auto 12px;
    }
    
    .jkb-resource-image.jkb-has-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: cover;
    }
    
    /* Calendar - 4 columns on tablets */
    .jkb-calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    /* Calendar Wrapper - Horizontal layout on tablets */
    .jkb-calendar-wrapper {
        flex-direction: row;
        gap: 12px;
    }
    
    .jkb-calendar-wrapper > .jkb-nav-btn {
        margin-top: 20px;
    }
    
    .jkb-calendar-content {
        order: 0;
    }
    
    .jkb-nav-btn.jkb-nav-prev {
        order: 0;
    }
    
    .jkb-nav-btn.jkb-nav-next {
        order: 0;
    }
}

/* Tablets and Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Payment Page */
    
    .jkb-payment-section {
        padding: 24px 20px;
    }
    
    .jkb-payment-section h2 {
        font-size: 26px;
    }
    
    .jkb-payment-card-header,
    .jkb-payment-order-total,
    .jkb-payment-methods-wrapper,
    .jkb-payment-actions {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .jkb-payment-card-title {
        font-size: 20px;
    }
    
    .jkb-payment-order-total-amount {
        font-size: 22px;
    }
    
    .jkb-payment-method {
        padding: 16px;
    }
    
    .jkb-payment-method-content {
        gap: 12px;
    }
    
    .jkb-payment-method-label {
        font-size: 15px;
    }
    
    .jkb-payment-method-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .jkb-payment-actions .jkb-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* Resource Cards */
    .jkb-resource-card {
        grid-template-columns: 1fr;
    }
    
    .jkb-resource-left {
        border-right: none;
        border-bottom: 1px solid var(--jkb-gray-200);
        padding: 20px;
    }
    
    /* Resource Image */
    .jkb-resource-image.jkb-has-image {
        width: 70%;
        max-width: 200px;
        margin: 0 auto 12px;
    }
    
    .jkb-resource-image.jkb-has-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: cover;
    }
    
    /* Resource Header Mobile */
    .jkb-resource-header-mobile {
        display: block;
    }
    
    .jkb-resource-right .jkb-resource-header {
        display: none;
    }
    
    .jkb-resource-profile {
        padding: 0;
        border-bottom: 1px solid var(--jkb-gray-200);
    }

    /* Day Row and See All Button */
    .jkb-day-row {
        background-color: #f0f8ff;
    }

    .jkb-see-all-container {
        text-align: center;
    }
    
    .jkb-btn-see-all {
        font-size: 18px;
    }
    
    /* Timer Banner and Calendar */
    .jkb-timer-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .jkb-calendar-nav {
        flex-wrap: wrap;
    }
    
    /* Calendar Grid - Responsive columns with integrated day headers */
    .jkb-calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 8px;
    }
    
    /* Calendar Grid Column - Smaller on mobile */
    .jkb-calendar-grid-column {
        min-width: auto;
        margin-bottom: 20px;
    }
    
    /* Integrated Day Header - Smaller on mobile */
    .jkb-calendar-day-header {
        margin-bottom: 8px;
    }
    
    .jkb-calendar-day-header .jkb-cal-day {
        font-size: 22px;
        padding: 6px 0 3px;
    }
    
    .jkb-calendar-day-header .jkb-cal-month {
        font-size: 12px;
        padding: 4px 6px 3px;
    }
    
    .jkb-calendar-day-header .jkb-cal-weekday {
        font-size: 10px;
        padding: 2px 6px 4px;
    }
    
    /* Slots Container - Smaller on mobile */
    .jkb-calendar-slots-container {
        gap: 5px;
    }
    
    /* Grid Slot - Smaller on mobile */
    .jkb-grid-slot {
        font-size: 14px;
        padding: 4px 0;
    }
    
    
    /* Video Modal */
    .jkb-video-modal-overlay {
        padding: 10px;
    }
    
    .jkb-video-modal {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .jkb-video-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    /* Agreement Sidebar */
    .jkb-agreement-sidebar {
        padding: 20px 16px;
    }
    
    .jkb-agreement-sidebar .jkb-agreement-header {
        flex-direction: column;
        gap: 12px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .jkb-agreement-sidebar .jkb-company-logo {
        width: 60px;
        height: 60px;
    }
    
    .jkb-agreement-sidebar .jkb-agreement-steps-nav {
        gap: 0;
    }
    
    .jkb-agreement-sidebar .jkb-agreement-step-item {
        padding: 12px 8px;
    }
    
    .jkb-agreement-sidebar .jkb-agreement-step-item .jkb-step-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 12px;
    }
    
    .jkb-agreement-sidebar .jkb-agreement-step-item .jkb-step-label {
        font-size: 13px;
    }
    
    .jkb-agreement-content {
        padding: 20px 16px;
    }

    /* Stack client detail rows so labels are not squeezed beside long values */
    .jkb-client-details-display .jkb-detail-item .jkb-detail-label,
    .jkb-client-details-display .jkb-detail-item .jkb-detail-value {
        flex: 1 1 100%;
        min-width: 0;
    }
    
    .jkb-signature-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .jkb-section-actions {
        flex-direction: column;
    }
    
    .jkb-btn-prev,
    .jkb-btn-next,
    .jkb-btn-continue {
        width: 100%;
        justify-content: center;
    }
    
    /* Resources Grid */
    .jkb-columns-3, 
    .jkb-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* ========================================
       Consultant Detail Page - Mobile Styles
       ======================================== */
    
    /* Calendar Section - Mobile */
    .jkb-calendar-section {
        padding: 16px 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Calendar Navigation - Mobile */
    .jkb-calendar-navigation {
        flex-direction: row;
        gap: 10px;
        margin: 30px 0;
    }
    
    .jkb-nav-btn {
        /* width: 100%; */
        padding: 10px;
        font-size: 14px;
    }
    
    .jkb-nav-btn.jkb-nav-prev {
        justify-content: flex-start;
    }
    
    .jkb-nav-btn.jkb-nav-next {
        justify-content: flex-end;
    }
    
    /* Loading State - Mobile */
    .jkb-calendar-grid .jkb-loading {
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .jkb-loading-title {
        font-size: 20px;
    }
    
    .jkb-loading-message {
        font-size: 14px;
    }
    
    .jkb-spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }
}

/* Small Devices (max-width: 600px) */
@media (max-width: 600px) {
    /* Payment Page - Small Screens */
    
    .jkb-payment-section {
        padding: 0;
    }
    
    .jkb-payment-section h2 {
        font-size: 24px;
    }
    
    .jkb-payment-card-header,
    .jkb-payment-order-total,
    .jkb-payment-methods-wrapper,
    .jkb-payment-actions {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .jkb-payment-card-title {
        font-size: 18px;
    }
    
    .jkb-payment-order-total-amount {
        font-size: 20px;
    }
    
    .jkb-payment-method {
        padding: 14px 16px;
    }
    
    .jkb-payment-method-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .jkb-payment-method-label {
        font-size: 15px;
    }
    
    .jkb-payment-method-badge {
        margin-left: auto;
    }
    
    .jkb-customer-form .jkb-form-row {
        grid-template-columns: 1fr;
    }
    
    /* Calendar - 4 columns on small devices */
    .jkb-calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    /* .jkb-service-summary {
        padding: 15px;
    } */

    /* Appointment Registration and Confirmation */
    .jkb-customer-form-section,
    .jkb-confirm-section {
        padding: 16px;
    }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .jkb-columns-2, 
    .jkb-columns-3, 
    .jkb-columns-4 {
        grid-template-columns: 1fr;
    }
    
    /* Calendar - 3 columns on very small devices */
    .jkb-calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .jkb-calendar-day-header .jkb-cal-day {
        font-size: 22px;
    }
    
    .jkb-grid-slot {
        font-size: 14px;
        padding: 3px 0;
    }

    .jkb-nav-icon {
        width: 25px;
        height: 25px;
    }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 320px) {
    .jkb-calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .jkb-nav-btn {
        font-size: 12px;
        padding: 5px;
    }

    .jkb-nav-icon {
        width: 20px;
        height: 20px;
    }
}

/* Resource Reviews shortcode [jkb_reviews] – professional card layout */
/* .jkb-reviews {
    margin: 2.5rem 0;
    padding: 0 0.5rem;
} */

.jkb-reviews__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.jkb-reviews__title {
    margin: 0 0 2rem;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 700;
    color: var(--jkb-gray-900, #212529);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.jkb-reviews__subtitle {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--jkb-gray-600, #6c757d);
    font-weight: 500;
}

/* Horizontal scrollable carousel */
.jkb-reviews__carousel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

.jkb-reviews__list {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* only the clicked card expands, others keep their height */
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.jkb-reviews__list::-webkit-scrollbar {
    display: none;
}

.jkb-reviews__nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--jkb-white, #fff);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    color: var(--jkb-gray-600, #6c757d);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.jkb-reviews__nav:hover {
    background: var(--jkb-gray-100, #f1f3f5);
    color: var(--jkb-gray-800, #343a40);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.jkb-reviews__nav:focus {
    outline: 2px solid var(--jkb-primary, #e63946);
    outline-offset: 2px;
}

/* Pagination pill – close to cards */
.jkb-reviews__pagination {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.jkb-reviews__pagination-track {
    position: relative;
    max-width: 120px;
    height: 6px;
    margin: 0 auto;
    background: var(--jkb-gray-200, #e9ecef);
    border-radius: 999px;
    overflow: hidden;
}

.jkb-reviews__pagination-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 33.33%;
    background: var(--jkb-gray-500, #adb5bd);
    border-radius: 999px;
    transition: left 0.25s ease, width 0.25s ease;
}

/* Small devices: 1 card at a time, swipe only, pagination below */
@media (max-width: 767px) {
    .jkb-reviews__carousel {
        gap: 0;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .jkb-reviews__nav {
        display: none !important;
    }

    .jkb-reviews__list {
        flex: 1 1 100%;
        min-width: 0;
        gap: 0.75rem;
        padding: 0;
        scroll-snap-type: x mandatory;
        scroll-padding: 0;
    }

    .jkb-reviews__card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .jkb-reviews__pagination {
        margin-top: 0.5rem;
    }
}

@media (min-width: 640px) {
    .jkb-reviews__list {
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .jkb-reviews__pagination-track {
        max-width: 140px;
    }
}

.jkb-reviews__card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    scroll-snap-align: start;
    width: min(100%, 420px);
    min-width: 360px;
    min-height: 250px;
    padding: 20px;
    background: var(--jkb-white, #fff);
    border-radius: var(--jkb-radius-lg, 12px);
    border: 1px solid var(--jkb-gray-200, #e9ecef);
    box-shadow: var(--jkb-shadow, 0 2px 8px rgba(0, 0, 0, 0.08));
    transition: box-shadow 0.25s ease, border-color 0.2s ease;
    text-align: left;
}

.jkb-reviews__card:hover {
    box-shadow: var(--jkb-shadow-lg, 0 4px 20px rgba(0, 0, 0, 0.12));
    border-color: var(--jkb-gray-300, #dee2e6);
}

.jkb-reviews__quote {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--jkb-primary, #e63946);
    opacity: 0.15;
    font-family: Georgia, serif;
}

.jkb-reviews__card-header {
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.jkb-reviews__author-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.jkb-reviews__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jkb-primary, #e63946) 0%, var(--jkb-primary-hover, #d62839) 100%);
    color: var(--jkb-white, #fff);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.jkb-reviews__avatar--img {
    object-fit: cover;
    padding: 0;
    background: var(--jkb-gray-100, #f1f3f5);
}

.jkb-reviews__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.jkb-reviews__author {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--jkb-gray-800, #343a40);
}

.jkb-reviews__date {
    font-size: 0.8125rem;
    color: var(--jkb-gray-500, #adb5bd);
    font-weight: 500;
}

.jkb-reviews__stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.jkb-reviews__star {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: var(--jkb-gray-300, #dee2e6);
    transition: fill 0.2s ease;
}

.jkb-reviews__star--filled {
    fill: #eab308;
}

.jkb-reviews__card-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--jkb-gray-800, #343a40);
    line-height: 1.35;
    flex-shrink: 0;
}

.jkb-reviews__content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.jkb-reviews__content {
    font-size: 15px;
    line-height: 21.75px;
    text-align: left;
    font-style: normal;
    color: var(--jkb-gray-700, #495057);
    flex: 1;
    transition: height 0.5s;
}

.jkb-reviews__content p {
    margin: 0 0 0.5rem;
    font-size: 16px;
    line-height: 21.75px;
}

.jkb-reviews__content p:last-child {
    margin-bottom: 0;
}

/* Collapsed state: fixed height = 4 lines (4 × 21.75px) to match card layout */
.jkb-reviews__content--collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 87px; /* 4 × 21.75px line-height */
    transition: height 0.5s;
}

.jkb-reviews__content--collapsed.jkb-reviews__content--expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    max-height: none;
    transition: height 0.5s;
}

.jkb-reviews__show-more {
    margin-top: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--jkb-primary, #e63946);
    background: none;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.jkb-reviews__show-more:hover {
    color: var(--jkb-primary-hover, #d62839);
    text-decoration: underline;
}

.jkb-reviews__cta {
    text-align: center;
    padding-top: 0.75rem;
}

.jkb-reviews__cta-btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--jkb-white, #fff);
    background: var(--jkb-primary, #e63946);
    border-radius: var(--jkb-radius, 8px);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.35);
}

.jkb-reviews__cta-btn:hover {
    background: var(--jkb-primary-hover, #d62839);
    color: var(--jkb-white, #fff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

/* =====================
   Booking Success Page
   /booking-success/{uuid}
   ===================== */
.jkb-booking-success-page {
    max-width: 560px;
}

.jkb-booking-success-card {
    background: var(--jkb-white, #fff);
    border-radius: var(--jkb-radius-lg, 12px);
    box-shadow: var(--jkb-shadow-lg, 0 4px 20px rgba(0, 0, 0, 0.08));
    overflow: hidden;
}

.jkb-booking-success-header {
    background: var(--jkb-primary, #d32f2f);
    color: #fff;
    padding: 1rem;
    text-align: center;
}

.jkb-booking-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
}

.jkb-booking-success-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.jkb-booking-success-subtitle {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.jkb-booking-success-details {
    padding: 1.5rem;
}

.jkb-booking-success-details-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--jkb-gray-700, #495057);
    font-weight: 600;
}

.jkb-booking-success-dl {
    margin: 0;
    display: grid;
    gap: 0.5rem 1rem;
    font-size: 16px;
}

.jkb-booking-success-dl dt {
    font-weight: 600;
    grid-column: 1;
}

.jkb-booking-success-dl dd {
    margin: 0;
    grid-column: 2;
    color: var(--jkb-gray-800, #343a40);
}

.jkb-booking-success-status,
.jkb-booking-success-payment {
    display: inline-block;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.9em;
}

.jkb-status-confirmed {
    background: #e8f5e9;
    color: #2e7d32;
}

.jkb-status-pending {
    background: #fff3e0;
    color: #e65100;
}

.jkb-payment-paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.jkb-payment-pending {
    background: #fff3e0;
    color: #e65100;
}

.jkb-booking-success-email {
    font-size: 0.9em;
    color: var(--jkb-gray-600);
}

.jkb-booking-success-meet {
    margin-top: 1.25rem;
}

.jkb-btn-meeting {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: #4285f4;
    color: #fff !important;
    text-decoration: none;
    border-radius: var(--jkb-radius, 8px);
    font-weight: 600;
}

.jkb-btn-meeting:hover {
    background: #3367d6;
    color: #fff;
}

.jkb-booking-success-actions {
    padding: 0.8rem;
    border-top: 1px solid var(--jkb-gray-200, #e9ecef);
    text-align: center;
}

.jkb-booking-success-actions .jkb-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--jkb-primary, #d32f2f);
    color: #fff !important;
    text-decoration: none;
    border-radius: var(--jkb-radius, 8px);
    font-weight: 600;
}

.jkb-booking-success-actions .jkb-btn:hover {
    background: var(--jkb-primary-hover, #b71c1c);
    color: #fff;
}

/* Service order success — inline actions next to status badges in order details */
.jkb-service-order-success .jkb-service-order-success-dd-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

/* Theme: --jkb-service-success-cta-bg / --jkb-service-success-cta-hover on .jkb-service-order-success */
.jkb-booking-success-page .jkb-service-success-inline-cta,
.jkb-service-order-success .jkb-service-success-inline-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 5px;
    text-decoration: none !important;
    background: var(--jkb-service-success-cta-bg, var(--jkb-gray-900, #212529));
    color: #fff !important;
    border: none;
    transition: var(--jkb-transition, all 0.2s ease);
    white-space: nowrap;
}

.jkb-booking-success-page .jkb-service-success-inline-cta-icon,
.jkb-service-order-success .jkb-service-success-inline-cta-icon {
    flex-shrink: 0;
    opacity: 0.95;
}

.jkb-booking-success-page .jkb-service-success-inline-cta:hover,
.jkb-service-order-success .jkb-service-success-inline-cta:hover {
    background: var(--jkb-service-success-cta-hover, var(--jkb-gray-800, #343a40));
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.jkb-service-order-success .jkb-service-order-success-completion-note {
    margin: 1.15rem 0 0;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--jkb-gray-700, #495057);
    background: var(--jkb-warning-bg, #fff8e1);
    border: 1px solid var(--jkb-warning-border, #ffcc02);
    border-radius: var(--jkb-radius, 8px);
}

.jkb-service-order-success .jkb-service-order-success-footer {
    padding: 1rem 1.5rem 1.25rem;
}

.jkb-service-order-success .jkb-service-order-success-footer .jkb-service-success-back {
    padding: 0.55rem 1.35rem;
    font-size: 0.875rem;
    line-height: 1.35;
}

@media (max-width: 480px) {
    .jkb-booking-success-dl {
        grid-template-columns: 1fr;
    }

    .jkb-booking-success-dl dd {
        grid-column: 1;
    }

    .jkb-service-order-success .jkb-service-order-success-dd-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .jkb-service-order-success .jkb-service-success-inline-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ==============================================
   VARIATION PICKER  (shared + per-template)
   Usage: $variation_ui_style = 'dropdown' | 'badges' | 'cards'
   ============================================== */

/* WooCommerce-style price display above the picker */
.jkb-var-price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    /* margin-bottom: 14px; */
    padding: 12px 0;
    /* background: var(--jkb-gray-50);
    border: 1px solid var(--jkb-gray-200);
    border-radius: var(--jkb-radius); */
}

.jkb-var-price-box__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--jkb-gray-500);
    white-space: nowrap;
}

.jkb-var-price-box__value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--jkb-primary);
    line-height: 1;
    transition: color 0.2s ease;
}

/* Label above any picker */
.jkb-var-label {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    /* color: var(--jkb-gray-500); */
    margin: 0 0 10px;
    display: block;
}

/* ── Variation section: required / error state ─────────────────────── */
.jkb-var-section--error .jkb-var-label {
    color: #ef4444;
}
.jkb-var-section--error .jkb-var-label::after {
    content: ' — required';
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.85;
}
.jkb-var-section--error .jkb-badges,
.jkb-var-section--error .jkb-vcards {
    animation: jkb-shake 0.35s ease;
}
@keyframes jkb-shake {
    0%  { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100%{ transform: translateX(0); }
}

/* ---- DROPDOWN ---- */
.jkb-var-dropdown {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--jkb-gray-200);
    border-radius: var(--jkb-radius);
    background: var(--jkb-white);
    font-size: 0.95rem;
    color: var(--jkb-gray-800);
    transition: var(--jkb-transition);
    cursor: pointer;
    -webkit-appearance: auto;
    appearance: auto;
}

.jkb-var-dropdown:focus {
    outline: none;
    border-color: var(--jkb-primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

/* ---- BADGES ---- */
.jkb-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jkb-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 18px;
    border: 2px solid var(--jkb-gray-300);
    border-radius: 999px;
    background: var(--jkb-white);
    cursor: pointer;
    transition: var(--jkb-transition);
    box-shadow: var(--jkb-shadow);
    line-height: 1;
}

.jkb-badge:hover {
    border-color: var(--jkb-primary-hover);
    /* color: var(--jkb-primary); */
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.14);
}

.jkb-badge:focus-visible {
    outline: 2px solid var(--jkb-primary);
    outline-offset: 2px;
}

.jkb-badge--active {
    border-color: var(--jkb-primary);
    background: var(--jkb-primary);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(230, 57, 70, 0.3);
}

.jkb-badge--active:hover {
    background: var(--jkb-primary-hover);
}

.jkb-badge__label {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.jkb-badge__price {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.72;
    white-space: nowrap;
}

.jkb-badge--active .jkb-badge__price {
    opacity: 0.9;
}

/* ---- CARDS ---- */
.jkb-vcards-label {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--jkb-gray-500);
    margin: 0 0 10px;
}

.jkb-vcards {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
}

.jkb-vcards--cols-2 { grid-template-columns: repeat(2, 1fr); }
.jkb-vcards--cols-3 { grid-template-columns: repeat(3, 1fr); }
.jkb-vcards--cols-4 { grid-template-columns: repeat(4, 1fr); }

.jkb-vcard {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 12px 14px;
    border: 2px solid var(--jkb-gray-200);
    border-radius: var(--jkb-radius-lg);
    background: var(--jkb-white);
    cursor: pointer;
    text-align: center;
    transition: var(--jkb-transition);
    min-height: 80px;
    box-shadow: var(--jkb-shadow);
}

.jkb-vcard:hover {
    border-color: var(--jkb-primary);
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.12);
    transform: translateY(-2px);
}

.jkb-vcard:focus-visible {
    outline: 2px solid var(--jkb-primary);
    outline-offset: 2px;
}

.jkb-vcard--active {
    border-color: var(--jkb-primary);
    background: var(--jkb-primary-light);
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.15);
}

/* Animated checkmark badge */
.jkb-vcard__check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--jkb-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.jkb-vcard--active .jkb-vcard__check {
    opacity: 1;
    transform: scale(1);
}

/* Single-attribute layout */
.jkb-vcard__attr-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--jkb-gray-500);
    line-height: 1.2;
}

.jkb-vcard--active .jkb-vcard__attr-name {
    color: var(--jkb-primary);
    opacity: 0.8;
}

.jkb-vcard__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--jkb-gray-900);
    line-height: 1.1;
}

.jkb-vcard--active .jkb-vcard__value {
    color: var(--jkb-primary);
}

/* Multi-attribute layout */
.jkb-vcard__multi {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.jkb-vcard__multi-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.jkb-vcard__multi-name {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jkb-gray-500);
}

.jkb-vcard--active .jkb-vcard__multi-name {
    color: var(--jkb-primary);
    opacity: 0.75;
}

.jkb-vcard__multi-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--jkb-gray-800);
}

.jkb-vcard--active .jkb-vcard__multi-val {
    color: var(--jkb-primary);
}

/* Price pill at bottom of card */
.jkb-vcard__price {
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--jkb-gray-700);
    background: var(--jkb-gray-100);
    border-radius: 999px;
    padding: 2px 10px;
    line-height: 1.7;
    white-space: nowrap;
}

.jkb-vcard--active .jkb-vcard__price {
    background: rgba(230, 57, 70, 0.1);
    color: var(--jkb-primary);
}

/* Responsive */
@media (max-width: 640px) {
    .jkb-vcards,
    .jkb-vcards--cols-3,
    .jkb-vcards--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .jkb-vcards,
    .jkb-vcards--cols-2,
    .jkb-vcards--cols-3,
    .jkb-vcards--cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   CONSULTANT PICKER  (list + cards templates)
   ============================================== */

/* ---- LIST template ---- */
.jkb-consultant-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jkb-clist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid var(--jkb-gray-200);
    border-radius: var(--jkb-radius);
    background: var(--jkb-white);
    cursor: pointer;
    transition: var(--jkb-transition);
}

.jkb-clist-row:hover {
    border-color: var(--jkb-primary);
    background: var(--jkb-primary-light);
}

.jkb-clist-row:has(input:checked) {
    border-color: var(--jkb-primary);
    background: var(--jkb-primary-light);
}

.jkb-clist-row input[type="radio"] {
    accent-color: var(--jkb-primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.jkb-clist-row__name {
    font-weight: 600;
    flex: 1;
    color: var(--jkb-gray-900);
}

.jkb-clist-row__price {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--jkb-gray-500);
    white-space: nowrap;
    transition: color 0.15s ease, font-size 0.15s ease, font-weight 0.15s ease;
}

.jkb-clist-row__price.jkb-resource-price--exact {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--jkb-gray-700);
}

.jkb-clist-row:has(input:checked) .jkb-clist-row__price {
    color: var(--jkb-primary);
}

/* ---- CARDS template ---- */
.jkb-no-consultants-msg {
    margin: 12px 0 0;
    padding: 10px 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-size: .875rem;
    color: #9a3412;
}

.jkb-consultant-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

/* Hidden radio */
.jkb-ccard__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.jkb-ccard {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 2px solid var(--jkb-gray-200);
    border-radius: var(--jkb-radius-lg);
    background: var(--jkb-white);
    cursor: pointer;
    text-align: center;
    transition: var(--jkb-transition);
    box-shadow: var(--jkb-shadow);
    overflow: hidden;
}

.jkb-ccard:hover {
    border-color: var(--jkb-primary);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.12);
    transform: translateY(-2px);
}

.jkb-ccard:has(.jkb-ccard__radio:checked) {
    border-color: var(--jkb-primary);
    background: var(--jkb-primary-light);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.18);
}

/* Animated checkmark badge on top-right corner */
.jkb-ccard__check-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--jkb-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.jkb-ccard:has(.jkb-ccard__radio:checked) .jkb-ccard__check-badge {
    opacity: 1;
    transform: scale(1);
}

/* Avatar */
.jkb-ccard__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--jkb-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--jkb-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: border-color 0.18s ease;
}

.jkb-ccard:has(.jkb-ccard__radio:checked) .jkb-ccard__avatar {
    border-color: var(--jkb-primary);
}

.jkb-ccard__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jkb-ccard__avatar-initials {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--jkb-gray-500);
    letter-spacing: 0.02em;
    line-height: 1;
}

.jkb-ccard:has(.jkb-ccard__radio:checked) .jkb-ccard__avatar-initials {
    color: var(--jkb-primary);
}

/* Text body */
.jkb-ccard__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.jkb-ccard__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--jkb-gray-900);
    line-height: 1.2;
}

.jkb-ccard__title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--jkb-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.jkb-ccard__about {
    font-size: 0.78rem;
    color: var(--jkb-gray-600);
    line-height: 1.5;
    margin-top: 2px;
}

/* Price at the bottom */
.jkb-ccard__price-wrap {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--jkb-gray-200);
    width: 100%;
    transition: border-color 0.18s ease;
}

.jkb-ccard:has(.jkb-ccard__radio:checked) .jkb-ccard__price-wrap {
    border-color: rgba(230, 57, 70, 0.25);
}

.jkb-ccard__price {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--jkb-gray-500);
    display: block;
    transition: color 0.18s ease, font-size 0.15s ease, font-weight 0.15s ease;
}

/* Once a variation is selected the JS adds this class — price becomes bold & prominent */
.jkb-ccard__price.jkb-resource-price--exact {
    font-size: 1rem;
    font-weight: 800;
    color: var(--jkb-gray-700);
}

.jkb-ccard:has(.jkb-ccard__radio:checked) .jkb-ccard__price {
    color: var(--jkb-primary);
}


/* ── Services archive page (/services/) — simple cards, full-width image ─ */
.jkb-svl-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.jkb-svl-header {
    margin-bottom: 28px;
}
.jkb-svl-header h1 {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--jkb-listing-text, #111827);
}
.jkb-svl-header p {
    margin: 0;
    color: var(--jkb-listing-muted, #6b7280);
    font-size: 1rem;
}

.jkb-svl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.jkb-svl-card {
    background: #fff;
    border: 1px solid var(--jkb-listing-border, #e5e7eb);
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    color: inherit;
}

.jkb-svl-thumb-link {
    display: block;
    width: 100%;
    text-decoration: none;
    flex-shrink: 0;
}

.jkb-svl-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.jkb-svl-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--jkb-listing-text, #111827);
    line-height: 1.35;
}

.jkb-svl-name a {
    color: inherit;
    text-decoration: none;
}

.jkb-svl-name a:hover {
    color: var(--jkb-primary, #4f46e5);
}

.jkb-svl-brief {
    font-size: 0.8125rem;
    color: var(--jkb-listing-muted, #6b7280);
    line-height: 1.5;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.jkb-svl-brief p { margin: 0; }

.jkb-svl-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--jkb-listing-text, #111827);
    margin: 10px 0 0;
    line-height: 1.2;
}
.jkb-svl-price-from {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--jkb-listing-muted, #6b7280);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-right: 6px;
}

.jkb-svl-footer {
    margin-top: auto;
    padding-top: 14px;
    width: 100%;
}

.jkb-svl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: var(--jkb-primary, #4f46e5);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.jkb-svl-btn:hover {
    background: var(--jkb-primary-dark, #4338ca) !important;
    color: #fff !important;
}

.jkb-svl-btn__chevrons {
    display: flex;
    line-height: 0;
}

.jkb-svl-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    color: var(--jkb-listing-muted, #5c5c5c);
}
.jkb-svl-empty svg {
    width: 56px;
    height: 56px;
    opacity: 0.4;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.jkb-svl-empty p { margin: 0; font-size: 1rem; }

@media (max-width: 480px) {
    .jkb-svl-grid {
        grid-template-columns: 1fr;
    }
}

/* Character counter for immigration_situation textarea */
.jkb-char-counter {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: right;
}

.jkb-char-counter--warning {
    color: #d97706;
}

.jkb-char-counter--danger {
    color: #dc2626;
    font-weight: 600;
}
