/* ============================================================
   Dentostack – Appointment Booking Page
   booking.css  |  only loaded by appointment_as_home.html
                    and message_2.html
   styleV1.css is NOT modified (shared with website manager).
   ============================================================ */

:root {
    --navy:    #0c2d4a;
    --teal:    #0da8ad;
    --blue:    #2c85d0;
    --border:  #e2e8f0;
    --text:    #1e293b;
    --muted:   #64748b;
    --light:   #f8fafc;
    --white:   #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── Page shell ── */
.bk-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
}

/* ── Two-panel card ── */
.bk-wrap {
    display: flex;
    width: 100%;
    max-width: 920px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(12,45,74,0.04),
                0 16px 48px rgba(12,45,74,0.12);
}

/* ── LEFT INFO PANEL ── */
.bk-info {
    width: 300px;
    flex-shrink: 0;
    background: var(--navy);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bk-info-logo-row {
    margin-bottom: 20px;
}

.bk-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(255,255,255,0.18);
    display: block;
    background: #ffffff;
}

.bk-clinic-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Contact meta */
.bk-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}

.bk-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.5;
}

.bk-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.65;
    color: var(--teal);
}

/* Info sections (doctors, timing) */
.bk-info-section {
    margin-bottom: 22px;
}

.bk-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    margin-bottom: 10px;
}

.bk-icon-sm {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.bk-doctor {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.bk-doctor-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.bk-doctor-sub {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.5);
    margin-top: 1px;
}

.bk-timing {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.5;
}

/* Holiday warning */
.bk-holiday {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 10px;
    padding: 12px 13px;
    font-size: 0.78rem;
    color: #fbbf24;
    line-height: 1.5;
    margin-bottom: 24px;
}

.bk-holiday-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #fbbf24;
}

/* Doctor login link */
.bk-doctor-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    align-self: flex-start;
}

.bk-doctor-login:hover {
    border-color: rgba(255,255,255,0.45);
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.06);
}

/* Powered by */
.bk-powered {
    padding-top: 14px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
}

.bk-powered a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}

.bk-powered a:hover {
    color: rgba(255,255,255,0.65);
}

/* ── RIGHT FORM PANEL ── */
.bk-form-panel {
    flex: 1;
    background: var(--white);
    padding: 44px 44px 40px;
    display: flex;
    flex-direction: column;
}

.bk-form-header {
    margin-bottom: 28px;
}

.bk-form-header h2 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.bk-form-header p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

/* ── Form fields ── */
.bk-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.bk-field > label,
.bk-row .bk-field > label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 7px;
}

.bk-field input[type="text"],
.bk-field input[type="number"],
.bk-field input[type="date"] {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.94rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.bk-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(44,133,208,0.13);
}

.bk-field input::placeholder {
    color: #b8c8d8;
}

/* Date input fix for webkit */
.bk-field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

/* Two-column row */
.bk-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

/* Time slot pills */
.bk-time-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bk-time-pill {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.bk-time-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bk-time-pill span {
    display: inline-block;
    padding: 9px 14px;
    font-size: 0.83rem;
    font-weight: 500;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    background: var(--white);
    transition: all 0.15s;
    white-space: nowrap;
    user-select: none;
}

.bk-time-pill:hover span {
    border-color: var(--teal);
    color: var(--teal);
    background: #f0fcfc;
}

.bk-time-pill input[type="radio"]:checked + span {
    border-color: var(--teal);
    background: #e6f7f7;
    color: #0a8a8e;
    font-weight: 600;
}

/* Checkbox / agreement */
.bk-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

.bk-agree input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--teal);
    cursor: pointer;
}

.bk-agree label {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.55;
    cursor: pointer;
}

/* Semantic UI validation error (override) */
.bk-error.ui.error.message {
    display: none;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #b91c1c;
    box-shadow: none;
    padding: 12px 16px;
}

.ui.form.error .bk-error.ui.error.message {
    display: block;
}

/* Submit button */
.bk-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: var(--teal);
    color: #fff;
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    box-shadow: 0 2px 10px rgba(13,168,173,0.28);
}

.bk-submit:hover {
    background: #0b9499;
    box-shadow: 0 4px 16px rgba(13,168,173,0.35);
}

.bk-submit:active {
    transform: scale(0.985);
}

/* ── message_2 result ── */
.bk-result {
    text-align: center;
    padding: 12px 0 8px;
}

.bk-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.bk-result-icon.success {
    background: #ecfdf5;
    color: var(--teal);
}

.bk-result-icon.error {
    background: #fff1f2;
    color: #ef4444;
}

.bk-result-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.bk-result h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.bk-result p {
    font-size: 0.93rem;
    color: var(--muted);
    margin: 0 0 28px;
    line-height: 1.6;
}

.bk-btn-home {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 26px;
    background: var(--navy);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
}

.bk-btn-home:hover {
    background: #0a3a60;
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .bk-page {
        padding: 0;
        align-items: stretch;
        background: var(--white);
    }

    .bk-wrap {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    /* Mobile: info panel becomes a compact header bar */
    .bk-info {
        width: 100%;
        padding: 24px 20px 20px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 16px;
    }

    .bk-info-logo-row {
        margin-bottom: 0;
    }

    .bk-logo {
        width: 56px;
        height: 56px;
        background: #ffffff;
    }

    /* Hide only the powered-by footer on mobile */
    .bk-powered {
        display: none;
    }

    .bk-doctor-login {
        margin-top: 16px;
        width: 100%;
        justify-content: center;
    }

    /* Clinic name inline with logo */
    .bk-info > .bk-clinic-name {
        flex: 1;
        font-size: 1.05rem;
        margin-bottom: 0;
    }

    .bk-meta {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .bk-meta-item {
        font-size: 0.79rem;
    }

    /* Info sections (doctors, timing) — compact on mobile */
    .bk-info-section {
        margin-bottom: 14px;
    }

    .bk-doctor {
        flex-direction: row;
        align-items: baseline;
        gap: 6px;
        margin-bottom: 4px;
    }

    .bk-holiday {
        width: 100%;
        font-size: 0.76rem;
        padding: 10px 12px;
    }

    .bk-form-panel {
        padding: 24px 20px 40px;
        flex: 1;
    }

    .bk-form-header h2 { font-size: 1.2rem; }

    .bk-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bk-row .bk-field { margin-bottom: 18px; }

    .bk-time-group { gap: 6px; }
    .bk-time-pill span { padding: 9px 12px; font-size: 0.82rem; }
}
