/* =========================================================================
   KAAYA GLOW — BOOK APPOINTMENT PAGE, V2 ("BK" DESIGN SYSTEM)
   A self-contained layer for book-appointment.php only. Reuses the sitewide
   tokens + hero shell already defined in kaaya-editorial.css (--kaaya-*,
   --kg-*, .kg-phero, .kg-container, .kg-eyebrow, .kg-heading, .kg-lede) for
   brand consistency, but every new component below is namespaced "bk-".

   IMPORTANT: .kg-auth-card / .form-group are shared with login.php and
   register.php — this file never touches those selectors. The booking
   form here uses entirely new "bk-" markup/classes instead, including its
   own multi-select service checkbox groups (.bk-service-*).
   ========================================================================= */

/* ================= HERO: icon steps + heading accent ================= */
.bk-heading-accent-row { display: flex; align-items: center; gap: 14px; margin: 18px 0 26px; }
.bk-heading-underline { width: 56px; height: 2px; background: var(--kaaya-gold); border-radius: 2px; }
.bk-heading-leaf { width: 18px; height: 18px; color: var(--kaaya-gold); opacity: 0.8; display: inline-flex; }
.bk-heading-leaf svg { width: 100%; height: 100%; display: block; }

.bk-steps { display: flex; align-items: flex-start; gap: 34px; margin-top: 8px; flex-wrap: wrap; }
.bk-step { display: flex; flex-direction: column; gap: 14px; flex: 0 0 auto; max-width: 190px; }
.bk-step-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--kaaya-beige);
    color: var(--kaaya-olive);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.4s var(--kg-ease), color 0.4s var(--kg-ease), transform 0.4s var(--kg-ease);
}
.bk-step-icon svg { width: 21px; height: 21px; }
.bk-step:hover .bk-step-icon { background: var(--kaaya-black); color: var(--kaaya-gold); transform: rotate(-8deg) scale(1.06); }
.bk-step-num { font-family: var(--kg-heading-font); font-size: 15px; color: var(--kaaya-gold); }
.bk-step-title { font-family: var(--kg-body-font); font-size: 14px; font-weight: 600; color: var(--kaaya-black); margin: 2px 0 4px; }
.bk-step-desc { font-family: var(--kg-body-font); font-size: 12.5px; line-height: 1.5; color: var(--kaaya-moss); }

@media (max-width: 640px) {
    .bk-steps { gap: 24px; }
    .bk-step { max-width: none; }
}

/* ================= REVEAL-ON-SCROLL ================= */
.bk-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.85s var(--kg-ease), transform 0.85s var(--kg-ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
.bk-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .bk-reveal, .bk-leaf-float, .bk-lotus-badge { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}

/* ================= BOOKING CARD SHELL ================= */
.bk-section {
    position: relative;
    background-color: var(--kaaya-ivory);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 130px 0 150px;
    overflow: hidden;
}
.bk-section-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(5,31,32,0.82) 0%, rgba(5,31,32,0.62) 45%, rgba(5,31,32,0.82) 100%);
}

.bk-card-wrap { position: relative; z-index: 1; }
.bk-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.78fr 1.2fr;
    background: var(--kaaya-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 60px 110px -40px rgba(5, 31, 32, 0.32);
}

/* ---- Left column: info (cream top + dark bottom) ---- */
.bk-info { display: flex; flex-direction: column; }
.bk-info-top { background: var(--kaaya-beige); padding: 52px 42px 34px; flex-grow: 1; }
.bk-info-eyebrow { margin-bottom: 4px; }
.bk-info-heading { font-family: var(--kg-heading-font); font-weight: 600; font-size: 30px; color: var(--kaaya-black); margin: 12px 0 16px; }
.bk-info-desc { font-family: var(--kg-body-font); font-size: 14.5px; line-height: 1.7; color: var(--kaaya-charcoal); margin: 0 0 28px; }

.bk-login-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(218, 241, 222, 0.7);
    border: 1px solid rgba(35, 83, 71, 0.22);
    border-radius: 14px;
    padding: 16px 18px;
}
.bk-login-notice-icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--kaaya-white);
    color: var(--kaaya-olive);
    display: flex; align-items: center; justify-content: center;
}
.bk-login-notice-icon svg { width: 16px; height: 16px; }
.bk-login-notice-text { font-family: var(--kg-body-font); font-size: 13.5px; line-height: 1.55; color: var(--kaaya-charcoal); }
.bk-login-notice-text a { color: var(--kaaya-olive); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bk-login-notice-text a:hover { color: var(--kaaya-gold); }

.bk-info-bottom {
    position: relative;
    background: var(--kaaya-black);
    padding: 36px 42px;
    overflow: hidden;
}
.bk-leaf-float {
    position: absolute;
    top: -30px; right: -30px;
    width: 130px; height: 130px;
    color: var(--kaaya-gold);
    opacity: 0.14;
    display: inline-flex;
    animation: bkLeafFloat 8s ease-in-out infinite;
}
.bk-leaf-float svg { width: 100%; height: 100%; display: block; }
@keyframes bkLeafFloat { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(6px, -10px) rotate(6deg); } }
.bk-lotus-badge {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(142, 182, 155, 0.16);
    color: var(--kaaya-gold);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    position: relative;
    animation: bkLotusPulse 4s ease-in-out infinite;
}
.bk-lotus-badge svg { width: 20px; height: 20px; }
@keyframes bkLotusPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(142, 182, 155, 0.35); } 50% { box-shadow: 0 0 0 10px rgba(142, 182, 155, 0); } }
.bk-tagline { position: relative; font-family: var(--kg-body-font); font-size: 15px; line-height: 1.85; color: var(--kaaya-beige); margin: 0 0 16px; }
.bk-tagline-underline { position: relative; width: 40px; height: 2px; background: var(--kaaya-gold); border-radius: 2px; }

/* ---- Right column: form ---- */
.bk-form-col { padding: 52px 48px; }
.bk-form-section-label {
    font-family: var(--kg-body-font);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--kaaya-olive);
    margin: 0 0 18px;
    padding-top: 26px;
    border-top: 1px solid var(--kaaya-beige);
}
.bk-form-section-label:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.bk-form-section-label .bk-optional { font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--kaaya-moss); }

.bk-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.bk-field label {
    font-family: var(--kg-body-font);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--kaaya-black);
}
.bk-field label .bk-required { color: var(--kaaya-gold); }
.bk-field-input-wrap { position: relative; }
.bk-field-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--kaaya-moss);
    pointer-events: none;
    transition: color 0.3s ease;
}
.bk-field-icon svg { width: 100%; height: 100%; display: block; }
.bk-field-input-wrap:focus-within .bk-field-icon { color: var(--kaaya-gold); }
.bk-field input[type="date"],
.bk-field input[type="time"],
.bk-field textarea {
    width: 100%;
    font-family: var(--kg-body-font);
    font-size: 14.5px;
    color: var(--kaaya-black);
    background: var(--kaaya-ivory);
    border: 1.5px solid var(--kaaya-beige);
    border-radius: 12px;
    padding: 14px 16px 14px 42px;
    resize: vertical;
    transition: border-color 0.35s var(--kg-ease), box-shadow 0.35s var(--kg-ease), background 0.35s var(--kg-ease);
}
.bk-field textarea { padding-left: 16px; padding-right: 42px; min-height: 100px; }
.bk-field input::placeholder, .bk-field textarea::placeholder { color: var(--kaaya-sage); opacity: 0.75; }
.bk-field input:focus,
.bk-field textarea:focus {
    outline: none;
    border-color: var(--kaaya-gold);
    background: var(--kaaya-white);
    box-shadow: 0 0 0 4px rgba(142, 182, 155, 0.2);
}
.bk-textarea-pencil {
    position: absolute; right: 14px; bottom: 14px;
    width: 15px; height: 15px; color: var(--kaaya-moss);
    display: inline-flex;
    pointer-events: none;
}
.bk-textarea-pencil svg { width: 100%; height: 100%; display: block; }
.bk-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---- Signature file input ---- */
.bk-file-wrap {
    display: flex; align-items: center;
    border: 1.5px solid var(--kaaya-beige);
    border-radius: 12px;
    background: var(--kaaya-ivory);
    padding: 6px;
    transition: border-color 0.35s var(--kg-ease);
}
.bk-file-wrap:focus-within { border-color: var(--kaaya-gold); }
.bk-field input[type="file"] {
    font-family: var(--kg-body-font);
    font-size: 13px;
    color: var(--kaaya-moss);
    width: 100%;
}
.bk-field input[type="file"]::file-selector-button {
    font-family: var(--kg-body-font);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--kaaya-black);
    background: var(--kaaya-white);
    border: 1px solid var(--kaaya-beige);
    border-radius: 8px;
    padding: 9px 16px;
    margin-right: 12px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.bk-field input[type="file"]:hover::file-selector-button { background: var(--kaaya-beige); border-color: var(--kaaya-olive); }

/* ---- Multi-select services (checkbox pill groups, replaces the old
        single-select searchable dropdown widget) ---- */
.bk-service-multiselect { display: flex; flex-direction: column; gap: 12px; }
.bk-service-multiselect-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-service-multiselect-head label { margin: 0; }
.bk-service-count {
    font-family: var(--kg-body-font);
    font-size: 12.5px; font-weight: 600;
    color: var(--kaaya-white);
    background: var(--kaaya-olive);
    padding: 4px 12px;
    border-radius: 30px;
    white-space: nowrap;
}
.bk-service-search-wrap { position: relative; display: flex; align-items: center; }
.bk-service-search-wrap svg { position: absolute; left: 14px; width: 15px; height: 15px; color: var(--kaaya-moss); pointer-events: none; }
.bk-service-search {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border-radius: 10px;
    border: 1.5px solid var(--kaaya-beige);
    background: var(--kaaya-ivory);
    font-family: var(--kg-body-font);
    font-size: 13.5px;
    color: var(--kaaya-black);
    transition: border-color 0.3s var(--kg-ease), background 0.3s var(--kg-ease);
}
.bk-service-search:focus { outline: none; border-color: var(--kaaya-gold); background: var(--kaaya-white); }

.bk-service-groups {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex; flex-direction: column; gap: 16px;
}
.bk-service-groups::-webkit-scrollbar { width: 6px; }
.bk-service-groups::-webkit-scrollbar-thumb { background: var(--kaaya-beige); border-radius: 4px; }
.bk-service-group-label {
    font-family: var(--kg-body-font);
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--kaaya-moss);
    margin-bottom: 8px;
}
.bk-service-options { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-service-option {
    position: relative;
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px 9px 10px;
    border-radius: 30px;
    border: 1.5px solid var(--kaaya-beige);
    background: var(--kaaya-ivory);
    font-family: var(--kg-body-font);
    font-size: 13px; font-weight: 500;
    color: var(--kaaya-charcoal);
    cursor: pointer;
    transition: border-color 0.25s var(--kg-ease), background 0.25s var(--kg-ease), transform 0.2s var(--kg-ease);
}
.bk-service-option:hover { border-color: var(--kaaya-sage); transform: translateY(-1px); }
.bk-service-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-service-option-check {
    width: 18px; height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--kaaya-beige);
    background: var(--kaaya-white);
    color: transparent;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.25s var(--kg-ease), border-color 0.25s var(--kg-ease), color 0.25s var(--kg-ease);
}
.bk-service-option-check svg { width: 11px; height: 11px; }
.bk-service-option:has(input:checked) {
    background: var(--kaaya-olive);
    border-color: var(--kaaya-olive);
    color: var(--kaaya-white);
}
.bk-service-option:has(input:checked) .bk-service-option-check {
    background: var(--kaaya-white);
    border-color: var(--kaaya-white);
    color: var(--kaaya-olive);
}
.bk-service-option:has(input:focus-visible) { outline: 2px solid var(--kaaya-gold); outline-offset: 2px; }
.bk-service-empty { font-family: var(--kg-body-font); font-size: 13px; color: var(--kaaya-moss); padding: 10px 2px; }
.bk-service-multiselect.has-error .bk-service-groups { border: 1.5px solid #b3413c; border-radius: 12px; padding: 10px; }

/* ---- Alert ---- */
.bk-alert {
    font-family: var(--kg-body-font);
    font-size: 13.5px;
    padding: 15px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex; align-items: center; gap: 10px;
    animation: bkAlertIn 0.5s var(--kg-ease);
}
.bk-alert svg { width: 16px; height: 16px; flex-shrink: 0; }
.bk-alert-error { background: rgba(178, 58, 58, 0.1); color: #8f3232; border: 1px solid rgba(178, 58, 58, 0.3); }
.bk-alert a { color: inherit; text-decoration: underline; font-weight: 600; }
@keyframes bkAlertIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---- Submit ---- */
.bk-submit {
    margin-top: 6px;
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 17px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: var(--kaaya-black);
    color: var(--kaaya-white);
    font-family: var(--kg-body-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
}
.bk-submit::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(142, 182, 155, 0.55) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--kg-ease);
}
.bk-submit:hover::before { transform: translateX(120%); }
.bk-submit:hover { background: var(--kaaya-olive); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(35, 83, 71, 0.5); }
.bk-submit svg { width: 15px; height: 15px; transition: transform 0.4s ease; position: relative; z-index: 1; }
.bk-submit:hover svg { transform: translate(3px, -3px); }
.bk-submit-label { position: relative; z-index: 1; }
.bk-submit:disabled { opacity: 0.8; cursor: default; transform: none; }
.bk-spinner {
    display: none;
    width: 15px; height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bkSpin 0.7s linear infinite;
    position: relative; z-index: 1;
}
.bk-submit.is-sending .bk-spinner { display: inline-block; }
.bk-submit.is-sending .bk-submit-icon { display: none; }
@keyframes bkSpin { to { transform: rotate(360deg); } }

@media (max-width: 992px) {
    .bk-section { padding: 80px 0; }
    .bk-card { grid-template-columns: 1fr; }
    .bk-info-top { padding: 40px 32px 28px; }
    .bk-info-bottom { padding: 28px 32px; }
    .bk-form-col { padding: 40px 32px; }
    .bk-field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
    .bk-info-top { padding: 32px 22px 24px; }
    .bk-info-bottom { padding: 24px 22px; }
    .bk-form-col { padding: 32px 22px; }
}
