/* Public booking form — iOS HIG-inspired styling.
   Scoped under .bk-booking-shell to never touch the rest of the site. */

.bk-booking-shell {
    max-width: 640px;
    margin: 36px auto 80px;
    padding: 0 20px;
    color: #1c1c1e;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}
.bk-booking-shell *, .bk-booking-shell *::before, .bk-booking-shell *::after { box-sizing: border-box; }
.bk-booking-shell button { font-family: inherit; }

/* Page background: iOS systemGroupedBackground */
.main-rows.apl-page:has(.bk-booking-shell) { background: #f2f2f7; }

/* Header */
.bk-booking-shell .bk-hero { text-align: left; padding: 8px 4px 24px; }
.bk-booking-shell .bk-hero h1 {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: #000;
}
.bk-booking-shell .bk-lead {
    font-size: 17px;
    color: #3c3c43;
    opacity: 0.85;
    margin: 0;
    max-width: 560px;
    line-height: 1.45;
}

/* iOS-style grouped section.
   Outer label is the "section header" in small uppercase gray.
   The card stacks rows separated by hairline insets. */
.bk-card-group { margin: 0 0 28px; }
.bk-card-label {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #6e6e73;
    font-weight: 500;
    padding: 0 16px 8px;
    margin: 0;
}
.bk-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.bk-card-footnote {
    font-size: 13px;
    color: #6e6e73;
    padding: 8px 16px 0;
    line-height: 1.4;
}

.bk-row {
    padding: 14px 16px;
    border-top: 0.5px solid rgba(60, 60, 67, 0.12);
    display: block;
}
.bk-row:first-child { border-top: 0; }
.bk-row-label {
    display: block;
    font-size: 12px;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Form inputs — all share the same flat, lightly-tinted look */
.bk-booking-shell input[type=text],
.bk-booking-shell input[type=email],
.bk-booking-shell input[type=tel],
.bk-booking-shell input[type=number],
.bk-booking-shell input[type=datetime-local],
.bk-booking-shell select,
.bk-booking-shell textarea {
    width: 100%;
    padding: 12px 14px;
    background: #f2f2f7;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 17px;
    font-family: inherit;
    color: #000;
    line-height: 1.3;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.bk-booking-shell textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.bk-booking-shell input:focus,
.bk-booking-shell select:focus,
.bk-booking-shell textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}
.bk-booking-shell input::placeholder,
.bk-booking-shell textarea::placeholder { color: #c7c7cc; }

/* Select with custom chevron */
.bk-booking-shell select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%238e8e93' d='M6 8 0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px 7px;
    padding-right: 38px;
}

/* Location list (iOS settings rows) */
.bk-loc-list { padding: 0; }
.bk-loc-list .bk-loc-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
    cursor: pointer;
    border-top: 0.5px solid rgba(60, 60, 67, 0.12);
    transition: background 0.12s;
    position: relative;
}
.bk-loc-list .bk-loc-row:first-child { border-top: 0; }
.bk-loc-list .bk-loc-row:active { background: #f2f2f7; }
.bk-loc-list .bk-loc-row input { position: absolute; opacity: 0; pointer-events: none; }
.bk-loc-icon {
    flex: 0 0 36px;
    height: 36px;
    background: linear-gradient(135deg, #5ac8fa, #007aff);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.bk-loc-text { flex: 1; min-width: 0; }
.bk-loc-text strong { display: block; font-size: 17px; font-weight: 500; color: #000; }
.bk-loc-text small { display: block; font-size: 14px; color: #8e8e93; line-height: 1.35; margin-top: 2px; }
.bk-loc-check {
    flex: 0 0 22px;
    height: 22px;
    color: transparent;
    transition: color 0.15s;
}
.bk-loc-row.is-selected .bk-loc-check { color: #007aff; }
.bk-loc-row.is-selected strong { color: #007aff; }

/* Sessions stepper — iOS-style segmented +/- around a value */
.bk-stepper {
    display: inline-flex;
    align-items: stretch;
    background: #f2f2f7;
    border-radius: 10px;
    overflow: hidden;
    user-select: none;
}
.bk-stepper button {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 22px;
    color: #007aff;
    cursor: pointer;
    transition: background 0.12s;
    padding: 0;
    font-weight: 400;
    line-height: 1;
}
.bk-stepper button:hover:not(:disabled) { background: rgba(0,0,0,0.04); }
.bk-stepper button:active:not(:disabled) { background: rgba(0,0,0,0.08); }
.bk-stepper button:disabled { color: #c7c7cc; cursor: not-allowed; }
.bk-stepper .bk-step-value {
    min-width: 60px;
    text-align: center;
    align-self: center;
    font-size: 19px;
    font-weight: 600;
    color: #000;
    font-variant-numeric: tabular-nums;
    padding: 0 4px;
}
.bk-stepper input { display: none; }   /* hidden, the real value lives in #bk-bf-sessions */

/* Price card — accent */
.bk-price-card {
    background: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
    color: #fff;
    border-radius: 14px;
    padding: 22px 22px 24px;
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.20);
    margin: 0 0 28px;
}
.bk-price-card .bk-price-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 10px;
}
.bk-price-card .bk-price-meta strong { font-weight: 600; opacity: 1; }
.bk-price-card .bk-price-divider {
    height: 0.5px;
    background: rgba(255,255,255,0.25);
    margin: 12px 0;
}
.bk-price-card .bk-price-row-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.bk-price-card .bk-price-row-total span { font-size: 15px; opacity: 0.9; }
.bk-price-card .bk-price-total {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* Date range row */
.bk-date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.bk-date-row .bk-row { border-top: 0; }
.bk-date-row .bk-row + .bk-row { border-left: 0.5px solid rgba(60, 60, 67, 0.12); }
@media (max-width: 540px) {
    .bk-date-row { grid-template-columns: 1fr; }
    .bk-date-row .bk-row + .bk-row { border-left: 0; border-top: 0.5px solid rgba(60, 60, 67, 0.12); }
}

/* Readonly "auto end" state */
.bk-booking-shell input.bk-bf-locked {
    background: transparent;
    border: 1px dashed #d1d1d6;
    color: #c7c7cc;
    cursor: not-allowed;
}
.bk-booking-shell input[readonly]:not(.bk-bf-locked) {
    background: #e8f4ff;
    color: #007aff;
    font-weight: 600;
}
.bk-booking-shell input[readonly]:focus { box-shadow: none; }

/* Auto-end inline badge */
.bk-auto-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

/* Submit button */
.bk-bf-submit {
    width: 100%;
    padding: 16px 24px;
    background: #007aff;
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.08s;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.30);
}
.bk-bf-submit:hover:not(:disabled) { background: #0066d6; }
.bk-bf-submit:active:not(:disabled) { transform: scale(0.985); background: #005bbf; }
.bk-bf-submit:disabled { background: #c7c7cc; box-shadow: none; cursor: not-allowed; }

/* Status messages */
.bk-bf-error {
    display: none;
    background: #fff5f5;
    color: #d70015;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    border: 1px solid rgba(215, 0, 21, 0.12);
}
.bk-bf-error.show { display: block; }
.bk-bf-success {
    display: none;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.bk-bf-success.show { display: block; }
.bk-bf-success .bk-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #34c759, #30b350);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.30);
}
.bk-bf-success h2 { font-size: 24px; font-weight: 700; margin: 0 0 8px; color: #000; letter-spacing: -0.02em; }
.bk-bf-success p { font-size: 16px; color: #3c3c43; margin: 0; line-height: 1.5; }

.bk-bf-honeypot { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
