/* ======================================================
   booking.css — Popup Lead Form + Multi-Step Booking
   Theme: Mindycoach (#a04444 primary, #304049 dark)
====================================================== */

/* ── Shared animations ──────────────────────────────── */
@keyframes lp-slideUp {
    from { opacity: 0; transform: translateY(40px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes bk-fadeSlide {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.lp-spin { animation: spin .8s linear infinite; display: block; }

/* ================================================================
   1. POPUP LEAD FORM
================================================================ */

.lp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(48, 64, 73, .62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    backdrop-filter: blur(3px);
}
.lp-overlay.lp-open {
    opacity: 1;
    visibility: visible;
}
.lp-overlay.lp-open .lp-modal {
    animation: lp-slideUp .36s cubic-bezier(.22,.68,0,1.2) forwards;
}

.lp-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(160,68,68,.22), 0 4px 16px rgba(0,0,0,.10);
    position: relative;
}

.lp-accent-bar {
    height: 5px;
    background: linear-gradient(90deg, #a04444, #c87070);
}

.lp-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f5f0f0;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #304049;
    transition: background .2s, color .2s;
    z-index: 2;
}
.lp-close:hover { background: #a04444; color: #fff; }

/* head */
.lp-head {
    padding: 28px 32px 16px;
    text-align: center;
}
.lp-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #a04444, #c87070);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.lp-title {
    font-size: 20px;
    font-weight: 700;
    color: #304049;
    margin: 0 0 6px;
    line-height: 1.3;
}
.lp-subtitle {
    font-size: 14px;
    color: #7c8c95;
    margin: 0;
    line-height: 1.5;
}

/* form */
.lp-form { padding: 0 32px 28px; }
.lp-field { margin-bottom: 14px; }
.lp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #304049;
    margin-bottom: 5px;
}
.lp-optional { font-weight: 400; color: #9ba8b0; }

.lp-field input,
.lp-select-wrap select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0d8d8;
    border-radius: 10px;
    font-size: 14px;
    color: #304049;
    background: #faf8f8;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.lp-field input:focus,
.lp-select-wrap select:focus {
    border-color: #a04444;
    box-shadow: 0 0 0 3px rgba(160,68,68,.12);
    background: #fff;
}

.lp-select-wrap {
    position: relative;
}
.lp-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.lp-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 0 8px;
    margin-bottom: 14px;
}
.lp-field-or {
    font-size: 12px;
    color: #9ba8b0;
    font-weight: 600;
    padding-bottom: 12px;
    text-align: center;
}

.lp-contact-note {
    font-size: 13px;
    color: #c0392b;
    margin: -8px 0 12px;
}

.lp-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a04444, #c87070);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s, transform .15s;
    margin-top: 6px;
}
.lp-submit:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.lp-submit:disabled { opacity: .65; cursor: not-allowed; }
.lp-submit-spinner { display: inline-flex; }

.lp-privacy {
    font-size: 12px;
    color: #9ba8b0;
    text-align: center;
    margin: 10px 0 0;
}

/* success */
.lp-success {
    padding: 36px 32px 40px;
    text-align: center;
}
.lp-success-icon { margin-bottom: 16px; }
.lp-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: #304049;
    margin: 0 0 8px;
}
.lp-success p {
    font-size: 14px;
    color: #7c8c95;
    margin: 0 0 20px;
}
.lp-book-now {
    display: inline-block;
    padding: 12px 28px;
    background: #a04444;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: opacity .2s;
}
.lp-book-now:hover { opacity: .88; color: #fff; }

/* ================================================================
   2. BOOKING PAGE LAYOUT
================================================================ */

.bk-body {
    background: linear-gradient(160deg, #ffe0e0 0%, #fff4f4 55%, #f0f7ff 100%);
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #304049;
}

.bk-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* header */
.bk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(160,68,68,.1);
    position: sticky;
    top: 0;
    z-index: 50;
}
.bk-header-tag {
    font-size: 12px;
    font-weight: 600;
    color: #7c8c95;
    letter-spacing: .5px;
}

/* main */
.bk-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
}

/* card */
.bk-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 48px rgba(160,68,68,.12), 0 2px 8px rgba(0,0,0,.06);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

/* progress bar */
.bk-progress-bar-wrap {
    height: 5px;
    background: #ffe0e0;
}
.bk-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #a04444, #c87070);
    transition: width .45s cubic-bezier(.4,0,.2,1);
    border-radius: 0 3px 3px 0;
}

/* step label */
.bk-step-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px 0;
    font-size: 13px;
    font-weight: 600;
    color: #a04444;
}
.bk-step-tag {
    font-size: 12px;
    font-weight: 500;
    color: #9ba8b0;
    letter-spacing: .3px;
}

/* ── Step panels ────────────────────────────────────── */
.bk-steps { padding: 28px 36px 0; min-height: 340px; }

.bk-step {
    display: none;
    animation: bk-fadeSlide .3s ease forwards;
}
.bk-step.active { display: block; }

.bk-q-icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}
.bk-q-title {
    font-size: 22px;
    font-weight: 700;
    color: #304049;
    margin: 0 0 8px;
    line-height: 1.35;
}
.bk-q-hint {
    font-size: 15px;
    color: #7c8c95;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* inputs */
.bk-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #304049;
    margin-bottom: 6px;
}
.bk-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0d8d8;
    border-radius: 12px;
    font-size: 16px;
    color: #304049;
    background: #faf8f8;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.bk-input:focus {
    border-color: #a04444;
    box-shadow: 0 0 0 3px rgba(160,68,68,.12);
    background: #fff;
}
.bk-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0d8d8;
    border-radius: 12px;
    font-size: 15px;
    color: #304049;
    background: #faf8f8;
    outline: none;
    resize: vertical;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.bk-textarea:focus {
    border-color: #a04444;
    box-shadow: 0 0 0 3px rgba(160,68,68,.12);
    background: #fff;
}

.bk-input-wrap { margin-bottom: 14px; }
.bk-or-divider {
    text-align: center;
    color: #9ba8b0;
    font-size: 13px;
    font-weight: 600;
    margin: 4px 0 12px;
    position: relative;
}
.bk-or-divider::before,
.bk-or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 20px);
    height: 1px;
    background: #e0d8d8;
}
.bk-or-divider::before { left: 0; }
.bk-or-divider::after  { right: 0; }

/* error */
.bk-field-error {
    font-size: 13px;
    color: #c0392b;
    margin: -6px 0 12px;
    padding: 8px 12px;
    background: #fff0f0;
    border-radius: 8px;
    border-left: 3px solid #c0392b;
}

/* option cards */
.bk-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
@media (max-width: 480px) {
    .bk-options { grid-template-columns: 1fr; }
}

.bk-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1.5px solid #e0d8d8;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
    user-select: none;
    background: #faf8f8;
    gap: 8px;
}
.bk-option-card input[type="radio"] { display: none; }
.bk-option-label {
    font-size: 14px;
    font-weight: 500;
    color: #304049;
    flex: 1;
    line-height: 1.3;
}
.bk-option-tick {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #d0c8c8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: all .2s;
    background: #fff;
}
.bk-option-card:hover {
    border-color: #c87070;
    background: #fff;
    box-shadow: 0 2px 10px rgba(160,68,68,.1);
}
.bk-option-card.selected {
    border-color: #a04444;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(160,68,68,.1);
}
.bk-option-card.selected .bk-option-tick {
    background: #a04444;
    border-color: #a04444;
    color: #fff;
}
.bk-option-card.selected .bk-option-label { color: #a04444; font-weight: 600; }

/* other text input */
.bk-other-wrap { margin-top: 8px; margin-bottom: 14px; }

/* loading state */
.bk-loading {
    color: #9ba8b0;
    font-size: 14px;
    padding: 20px 0;
    grid-column: 1 / -1;
}

/* ── Step 4: follow-up sub label ─────────────────────── */
.bk-followup-sub {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a04444;
    margin-bottom: 8px;
}

/* ── Step 5: medical blocks ──────────────────────────── */
.bk-med-block { margin-bottom: 22px; }
.bk-med-q {
    font-size: 15px;
    font-weight: 600;
    color: #304049;
    margin: 0 0 10px;
}
.bk-options-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.bk-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1.5px solid #e0d8d8;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #304049;
    background: #faf8f8;
    transition: all .2s;
    user-select: none;
}
.bk-chip input[type="radio"] { display: none; }
.bk-chip:has(input:checked),
.bk-chip.checked {
    border-color: #a04444;
    background: #fff5f5;
    color: #a04444;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(160,68,68,.1);
}
.bk-chip:hover { border-color: #c87070; background: #fff; }

/* ── Step 6: summary ─────────────────────────────────── */
.bk-summary {
    background: #faf8f8;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    border: 1px solid #ffe0e0;
}
.bk-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bk-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #ffe0e0;
    font-size: 14px;
}
.bk-summary-list li:last-child { border-bottom: none; }
.bk-sum-key {
    font-weight: 600;
    color: #7c8c95;
    min-width: 80px;
    flex-shrink: 0;
}
.bk-sum-val {
    color: #304049;
    text-align: right;
    word-break: break-word;
}
.bk-privacy-note {
    font-size: 13px;
    color: #9ba8b0;
    text-align: center;
    line-height: 1.5;
}

/* ── Done state ──────────────────────────────────────── */
.bk-done {
    text-align: center;
    padding-bottom: 16px;
}
.bk-done-check { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; display: inline-block; }

/* ── Navigation ──────────────────────────────────────── */
.bk-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 36px 28px;
    gap: 12px;
}

.bk-btn-primary {
    padding: 14px 36px;
    background: linear-gradient(135deg, #a04444, #c87070);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
    margin-left: auto;
    box-shadow: 0 4px 16px rgba(160,68,68,.28);
}
.bk-btn-primary:hover:not(:disabled) {
    opacity: .9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(160,68,68,.32);
    color: #fff;
}
.bk-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.bk-btn-back {
    padding: 12px 22px;
    background: transparent;
    color: #7c8c95;
    border: 1.5px solid #e0d8d8;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.bk-btn-back:hover { border-color: #a04444; color: #a04444; }

.bk-footer-note {
    font-size: 12px;
    color: #9ba8b0;
    text-align: center;
    margin-top: 20px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
    .bk-steps  { padding: 22px 20px 0; }
    .bk-nav    { padding: 16px 20px 22px; }
    .bk-q-title { font-size: 19px; }
    .bk-step-label { padding: 12px 20px 0; }
    .bk-header { padding: 14px 20px; }
    .lp-form   { padding: 0 20px 24px; }
    .lp-head   { padding: 22px 20px 12px; }
    .lp-row    { grid-template-columns: 1fr; }
    .lp-field-or { display: none; }
}
