/* RautingTech booking widget — shared styles.
   Extracted verbatim from ai-tools-assessment.html's inline block (which remains the
   source for that page); this file styles the same widget where it appears elsewhere
   (home page #contact). Keep the two in sync if the widget design changes. */

/* booking widget — month calendar + day panel (Calendly-class pattern) */
#rt-booking {
    background: var(--light); border: 1px solid #e8e8e8; border-radius: 20px;
    padding: 1.8rem; margin-bottom: 3rem;
    box-shadow: 0 1px 2px rgba(10,10,10,0.04), 0 12px 32px rgba(10,10,10,0.05);
}
.bk-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid #efefef; }
.bk-type { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--ink); color: #fff; border-radius: 30px; padding: 0.5rem 1.1rem; font-size: 0.82rem; font-weight: 700; }
.bk-type .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-bright, #00ff55); }
.bk-tz { margin-left: auto; font-size: 0.75rem; color: #6b6b6b; }
.bk-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; align-items: start; }
/* month calendar */
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.bk-cal-head b { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 800; color: var(--ink); }
.bk-nav { border: 1px solid #e0e0e0; background: #fff; border-radius: 10px; width: 34px; height: 34px; font-size: 1rem; font-weight: 800; color: var(--ink); cursor: pointer; font-family: inherit; transition: border-color .15s ease, background .15s ease; }
.bk-nav:hover:not(:disabled) { border-color: var(--primary-dark, #009933); background: rgba(0,217,70,0.06); }
.bk-nav:disabled { color: #cfcfcf; cursor: default; }
.bk-dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 0.3rem; }
.bk-dow span { text-align: center; font-size: 0.66rem; font-weight: 800; letter-spacing: 1px; color: #9a9a9a; text-transform: uppercase; padding: 0.3rem 0; }
.bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-daycell {
    aspect-ratio: 1; border: none; background: transparent; border-radius: 12px;
    font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--ink);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    cursor: pointer; position: relative; transition: background .15s ease, transform .15s ease;
}
.bk-daycell .d-dot { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.bk-daycell.has { background: rgba(0, 217, 70, 0.09); font-weight: 800; color: #006b24; }
.bk-daycell.has .d-dot { background: #00b33a; }
.bk-daycell.has:hover { background: rgba(0, 217, 70, 0.2); transform: scale(1.06); }
.bk-daycell.full { color: #b5b5b5; }
.bk-daycell.full .d-dot { background: #d5d5d5; }
.bk-daycell.off { color: #d8d8d8; cursor: default; }
.bk-daycell.sel { background: var(--ink) !important; color: var(--primary-bright, #00ff55) !important; font-weight: 900; box-shadow: 0 6px 16px rgba(10,10,10,0.25); }
.bk-daycell.sel .d-dot { background: var(--primary-bright, #00ff55); }
/* day panel */
.bk-times-head { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 0.9rem; }
.bk-times-head span { color: #6b6b6b; font-weight: 600; font-size: 0.8rem; margin-left: 0.5rem; }
.bk-times { max-height: 380px; overflow-y: auto; padding-right: 6px; display: grid; gap: 0.45rem; align-content: start; }
.bk-range {
    background: #f6f6f6; border-radius: 10px; padding: 0.55rem 0.9rem;
    font-size: 0.78rem; color: #9a9a9a; display: flex; justify-content: space-between; align-items: center;
}
.bk-range em { font-style: normal; font-size: 0.66rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.bk-pill {
    border: 1.5px solid rgba(0, 155, 50, 0.55); background: #fff; border-radius: 10px;
    padding: 0.68rem 0.9rem; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 800; color: #007a29;
    cursor: pointer; text-align: center; transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.bk-pill:hover { background: rgba(0, 217, 70, 0.1); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 179, 58, 0.15); }
.bk-pill.chosen { background: var(--ink); border-color: var(--ink); color: var(--primary-bright, #00ff55); }
.bk-pill.booked { background: var(--ink); border-color: var(--ink); color: #8a8a8a; cursor: default; font-weight: 700; }
.bk-pill.booked b { color: var(--primary-bright, #00ff55); font-size: 0.66rem; letter-spacing: 1px; text-transform: uppercase; margin-left: 0.45rem; }
.bk-empty { color: #9a9a9a; font-size: 0.85rem; padding: 1rem 0; }
/* form + states */
.bk-form { margin-top: 1.2rem; border-top: 1px solid #efefef; padding-top: 1.2rem; display: grid; gap: 0.7rem; }
.bk-chosen { font-size: 0.9rem; font-weight: 800; color: var(--ink); }
.bk-form input { border: 1px solid #e0e0e0; border-radius: 10px; padding: 0.78rem 0.95rem; font-size: 0.9rem; font-family: inherit; background: #fafafa; }
.bk-form input:focus { outline: 2px solid rgba(0, 217, 70, 0.45); background: #fff; }
.bk-error { color: #c0392b; font-size: 0.85rem; }
.bk-loading { color: #8a8a8a; font-size: 0.9rem; }
.bk-done { padding: 1.5rem 0.5rem; text-align: center; }
.bk-done h3 { font-size: 1.6rem; font-weight: 900; color: var(--ink); margin-bottom: 0.5rem; }
.bk-done p { color: #3d3d3d; font-size: 0.95rem; }
.bk-done .bk-sub { color: #8a8a8a; font-size: 0.85rem; margin-top: 0.4rem; }


@media (max-width: 900px) {
    .bk-wrap { grid-template-columns: 1fr; gap: 1.4rem; }
    .bk-times { max-height: none; }
}
@media (max-width: 640px) {
    #rt-booking { padding: 1.2rem; }
}

/* Home-page #contact placement: the widget sits as a light card on the dark
   contact section, above the message form. */
.contact-booking { margin: 2.4rem 0 2.6rem; text-align: left; }
.contact-booking .cb-title {
    font-size: 1.5rem; font-weight: 900; letter-spacing: -0.4px;
    color: #fff; margin-bottom: 0.4rem;
}
.contact-booking .cb-sub {
    color: rgba(255,255,255,0.72); font-size: 0.92rem; margin-bottom: 1.3rem; max-width: 640px;
}
.contact-booking #rt-booking { margin-bottom: 0; }
.contact-or {
    text-align: center; margin: 2.2rem 0 1.6rem;
    color: rgba(255,255,255,0.55); font-size: 0.8rem; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
}
