/* Booking journey v1.2 (Joshi 1 Nov): Book lessons and Free call pages inside the portal */
.bj-step { border: 1px solid var(--line, #C2B8AD); border-radius: 14px; background: #E5DFD7; margin: 0 0 10px; padding: 14px 18px }
.bj-step.on { background: #EDE8E1 }
.bj-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px }
.bj-step .num { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: #163038; color: #F6F3EF; font-size: 13px; font-weight: 700; flex: none }
.bj-step .lbl { font-weight: 600; font-size: 15.5px }
.bj-step.done, .bj-step.later { display: flex; align-items: center; gap: 10px; padding: 10px 18px }
.bj-step.done .num { background: #2F6B5A } .bj-step.done .sum { color: #182528; font-size: 14px }
body .bj-step .chg { margin-left: auto; font: inherit; font-size: 13px; color: #424D50; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer }
.bj-step.later { opacity: .55 } .bj-step.later .num { background: #8E857C }
.bj-step .kids { display: flex; gap: 8px; align-items: center; flex-wrap: wrap } body .bj-step .kids .mini.on { background: #163038; color: #F6F3EF; border-color: #163038 }
.bj-step .whonew { margin-top: 10px }
.courserow { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 16px }
.bj-step .f { display: grid; gap: 4px; font-size: 13px; font-weight: 600 } .bj-step .f em { font-weight: 400; font-style: normal; color: #424D50 }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; max-width: 680px } .fields2 .wide { grid-column: 1 / -1 }
.tutorauto { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line, #C2B8AD); border-radius: 12px; background: #F2EEE8; width: max-content; max-width: 100%; margin-bottom: 12px }
.tutorauto img, .tcard img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none } .tutorauto b { display: block } .tutorauto small { color: #424D50; font-size: 12.5px }
.tutorauto .tag { margin-left: 12px; font-size: 11.5px; font-weight: 700; background: #DCE6E4; color: #1F4A44; border-radius: 99px; padding: 2px 9px }
.tutorpick { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px }
body .tcard { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line, #C2B8AD); border-radius: 12px; background: #F2EEE8; font: inherit; width: 280px; cursor: pointer; color: #182528 }
body .tcard.on { border-color: #163038 } .tcard b, .tcard small { display: block } .tcard small { font-size: 12.5px; color: #424D50 }
.callinfo { max-width: 680px; font-size: 13.5px; background: #DCE6E4; border-radius: 10px; padding: 8px 12px; margin: 0 0 12px }
.callremind { max-width: 680px; background: #F6E4DC; border: 1px solid #E0B9A8; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px } .callremind p { margin: 4px 0 10px; font-size: 13.5px }
.twocal.bj { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap }
.twocal.bj .mcal .dow { font-size: 10.5px; text-align: center; color: #424D50 }
.twocal.bj .mday.fr { font-weight: 600 } /* Joshi 1 Nov: working days, all alike (no free/busy shown) */
.twocal.bj .mday[aria-pressed="true"] { background: #163038; color: #F6F3EF; border-color: #163038 }
body .twocal.bj .pickpanel { min-width: 0; flex: 1 1 280px; display: block } .pday { font-weight: 600; margin-bottom: 8px }
.slots { display: grid; grid-template-columns: repeat(4, 64px); gap: 6px }
body .slot { border: 1px solid var(--line, #C2B8AD); background: #F2EEE8; border-radius: 8px; padding: 6px 0; font: inherit; font-size: 13px; cursor: pointer; color: #182528 }
body .slot.on { background: #163038; color: #F6F3EF; border-color: #163038 }
.trow { display: grid; grid-template-columns: 80px auto 86px 18px; gap: 5px; align-items: center; font-size: 12.5px; margin-bottom: 4px }
body .trow select.in { height: 30px; min-height: 30px; padding: 0 6px; line-height: 28px; font-size: 13px; border-radius: 8px }
.trow select.need { border-color: #C2532C; box-shadow: 0 0 0 2px rgb(194 83 44 / .15) }
.trow.held b::after { content: " ✓"; color: #2F6B5A }
body .trow .x { border: 0; background: none; font-size: 16px; cursor: pointer; padding: 0 }
.bj-step .sub { font-size: 14.5px; margin: 16px 0 8px } .bj-step .sub small { font-weight: 400; color: #424D50; font-size: 12.5px }
.stripebox { max-width: 680px; border: 1px solid var(--line, #C2B8AD); border-radius: 10px; background: #F2EEE8; padding: 12px; font-size: 13.5px }
.ticks2 { display: grid; gap: 6px; font-size: 14px }
.donecard { max-width: 680px; padding: 18px 20px }
@media (max-width: 700px) { .courserow, .fields2 { grid-template-columns: 1fr } .twocal.bj { flex-direction: column } .twocal.bj .calbox.sm { width: 100%; box-sizing: border-box } .slots { grid-template-columns: repeat(4, 1fr) } .tutorauto { width: auto } }

/* Joshi 1 Nov (option A): usual hours, how it works, clashes said straight away */
.tutorauto small.hrs { display: block; margin-top: 2px }
body .slot.no { text-decoration: line-through; opacity: .45; cursor: default }
.trow.no select.in { border-color: #A33B1E }
.trow .rowno { grid-column: 1 / -1; color: #A33B1E; font-size: 12px; margin: -2px 0 2px }
.slots { grid-template-columns: repeat(5, 60px) }
.slotmsg { color: #A33B1E; font-size: 13px; margin: 8px 0 0 }

/* Joshi 1 Nov 17:24: thin tutor band, one-line info, both months the same size */
.tutorband { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 12px; border: 1px solid var(--line, #C2B8AD); border-radius: 12px; background: #F2EEE8; margin-bottom: 10px; font-size: 13.5px; white-space: nowrap }
.tutorband img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none }
.tutorband .tag { font-size: 11.5px; font-weight: 700; background: #DCE6E4; color: #1F4A44; border-radius: 99px; padding: 2px 9px }
.tutorband .hrs { margin-left: auto; color: #424D50 }
.callinfo { white-space: nowrap; width: max-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis }
.twocal.bj .calbox.sm { width: 284px; height: 284px; box-sizing: border-box; padding: 12px 14px }
.twocal.bj .mcal.sm { grid-template-columns: repeat(7, 34px); gap: 2px 3px }
.twocal.bj .mcal.sm .mday { height: 32px }
@media (max-width: 1100px) { .tutorband, .callinfo { white-space: normal } .tutorband .hrs { margin-left: 0 } }
@media (max-width: 700px) { .twocal.bj .calbox.sm { width: 100%; height: auto } .twocal.bj .mcal.sm { grid-template-columns: repeat(7, 1fr) } .callinfo { width: auto } }
.pickline { font-size: 13.5px; color: #424D50; margin: 0 0 10px }
body .pickpanel select.starttime { width: 200px; height: 36px; min-height: 36px; padding: 0 10px; font-size: 14px }
.okmark { color: #2F6B5A; font-size: 13px; margin: 8px 0 0 }
.bj-step .btn.primary:disabled { opacity: .45; cursor: default }
.hm { display: inline-flex; align-items: center; gap: 3px } .hm .colon { font-weight: 600 }
body .trow .hm select.in { width: 48px; min-width: 48px; padding: 0 6px }
.len30 { font-size: 14px; color: #424D50; padding-left: 4px }
.preflink { margin: 12px 0 0 } .linkbtn { background: none; border: 0; padding: 0; color: #1E4A57; text-decoration: underline; font: inherit; font-size: 13.5px; cursor: pointer; text-align: left }
.trow b { white-space: nowrap }
@media (max-width: 700px) { body .twocal.bj .pickpanel { flex: none; width: 100%; box-sizing: border-box; grid-template-columns: 1fr } body .twocal.bj .rows { min-height: 0; margin-bottom: 8px } }
.calnav.phoneonly { visibility: hidden }
@media (max-width: 700px) { .twocal.bj .calbox.deskonly { display: none } .calnav.phoneonly { visibility: visible } }
.pickrow { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin: 0 0 10px } .pickrow .pickline { margin: 0 }
.tzline { font-size: 13.5px; color: #1E2B2F; margin: 0 } body .tzline select.tzsel { height: 32px; min-height: 32px; width: 230px; padding: 0 8px; font-size: 13px }
/* Joshi 2 Nov: the length right after the time, then Repeat (wraps under on narrow panels) */
body .twocal.bj .trow { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px }
body .twocal.bj .trow > b { flex: 0 0 82px } body .twocal.bj .trow select.in:not(.hh):not(.mm) { width: 86px }
body .twocal.bj .trow select.rep { width: 96px } .trow .repfor { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap }
body .trow input.cnt { width: 52px; height: 30px; min-height: 30px; padding: 0 6px; font-size: 13px; border-radius: 8px }
body .twocal.bj .trow .x { margin-left: auto } .trow .rowno { flex-basis: 100% }
/* Joshi 2 Nov 14:02: smaller boxes and smaller (still square) months, so a time fits on one line */
@media (min-width: 701px) {
  .twocal.bj .calbox.sm { width: 244px; height: 244px; padding: 10px 12px }
  .twocal.bj .mcal.sm { grid-template-columns: repeat(7, 30px); gap: 1px 2px } .twocal.bj .mcal.sm .mday { height: 27px; font-size: 12.5px }
  .twocal.bj { gap: 12px }
}
body .twocal.bj .trow { gap: 4px 4px; font-size: 12.5px }
body .twocal.bj .trow > b { flex: 0 0 76px; font-size: 12.5px }
body .twocal.bj .trow select.in, body .twocal.bj .trow input.cnt { height: 26px; min-height: 26px; line-height: 24px; font-size: 12.5px; padding: 0 4px; border-radius: 6px }
body .twocal.bj .trow .hm select.in { width: 38px; min-width: 38px; text-align: center }
body .twocal.bj .trow select.in:not(.hh):not(.mm) { width: 72px } body .twocal.bj .trow select.rep { width: 78px }
body .twocal.bj .trow input.cnt { width: 36px } .trow .repfor { font-size: 12.5px; gap: 3px }
@media (min-width: 701px) {
  .twocal.bj .calbox.sm { width: 226px; height: 226px; padding: 9px 10px }
  .twocal.bj .mcal.sm { grid-template-columns: repeat(7, 28px); gap: 1px 1px } .twocal.bj .mcal.sm .mday { height: 25px; font-size: 12px }
}
body .twocal.bj .trow > b { flex: 0 0 72px }
body .twocal.bj .trow > b { flex: 0 0 82px }
body .twocal.bj .trow .x { margin-left: 2px; color: #6B7579 } body .twocal.bj .trow .x:hover { color: #A33B1E }
/* Joshi 2 Nov 14:11: the months and the times stay together in the middle, whatever the screen width */
@media (min-width: 701px) {
  body .twocal.bj { justify-content: center; flex-wrap: wrap }
  body .twocal.bj .pickpanel { flex: 0 0 auto; width: 440px; min-width: 0 }
}
@media (min-width: 701px) { body .twocal.bj .pickpanel { flex: 0 1 460px; width: auto } body .twocal.bj .trow { flex-wrap: nowrap } }
@media (min-width: 701px) { body .twocal.bj .pickpanel { flex: 0 1 436px } }
body .twocal.bj .rows { min-height: 0 }
/* Joshi 2 Nov 14:16: calendars + chosen times as one group, centred and adjusting to the screen width */
@media (min-width: 701px) {
  body .twocal.bj { justify-content: center; flex-wrap: wrap }
  body .twocal.bj .pickpanel { flex: 0 1 auto; min-width: 300px; max-width: 470px }
}
/* Joshi 2 Nov 15:58: Subject · Level · Exam board · School year on one row */
.courserow.four { grid-template-columns: repeat(4, minmax(0, 220px)) }
@media (max-width: 900px) { .courserow.four { grid-template-columns: 1fr 1fr } }
@media (max-width: 700px) { .courserow.four { grid-template-columns: 1fr } }
.courserow.four { grid-template-columns: repeat(3, minmax(0, 200px)) minmax(0, 270px) }
.courserow.four + * , .courserow.four ~ div > .fields2:first-child { margin-top: 14px }
@media (max-width: 900px) { .courserow.four { grid-template-columns: 1fr 1fr } }
@media (max-width: 700px) { .courserow.four { grid-template-columns: 1fr } }
.bj-step.done { display: flex; align-items: center; gap: 14px } .bj-step.done .sum { flex: 1 1 auto }
.bk-acts { display: inline-flex; align-items: center; gap: 12px } .bk-acts .bk-chip { line-height: 1.2; padding: 4px 10px }
/* Joshi 2 Nov 16:46: each question sits close to its own box (6 px), with clear space before the next question (22 px);
   the tick lists scroll inside a visible, shorter panel */
.bj-step .f { gap: 6px }
.bj-step .fields2, .bj-step .courserow { row-gap: 22px }
.bj-step .courserow.four + *, .bj-step .courserow.four ~ div > .fields2 { margin-top: 22px }
.bj-step .courserow.four ~ div > .fields2 + .fields2 { margin-top: 22px }
.bj-step .f .msel, .bj-step .f > div > .msel { margin-top: 0 }
.bj-step .msel.open .msel-in { max-height: 230px; overflow-y: auto; padding-right: 16px } /* Joshi 2 Nov 16:59: our own scrollbar (site.css .msel-bar) */
.in.ro { background: transparent; color: #424D50; cursor: default }
body .bj-step input.in.ro { background: transparent; border-style: dashed; color: #424D50 }
/* Joshi 2 Nov 17:09: student chips and their email on one row; "+ Add a child" underneath */
.whorow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px } .whorow .kids { margin: 0 } .whorow > .f { min-width: 220px; flex: 0 1 260px }
.addkid { margin: 12px 0 0 }
body .whorow .kids .mini { height: 46px; min-width: 120px; font-size: 15px } .whorow > .f > span { white-space: nowrap }
.bj-step .whorow + .whorow { margin-top: 16px }
/* Joshi 2 Nov 17:19: a new child on one row — first name · last name · email · birthday, smaller boxes */
.whorow.small > .f { flex: 0 1 170px; min-width: 140px } .whorow.small > .f:nth-child(3) { flex-basis: 220px }
.whorow .f .bday, .whorow .f > div { display: flex; gap: 6px } .whorow .f select.in { min-width: 0 }
.whorow > .f:last-child:has(select) { flex: 0 1 220px }
/* Joshi 2 Nov 17:23: up/down arrows on the length and repeat boxes so they read as drop-downs */
body .twocal.bj .trow select.in:not(.hh):not(.mm) { width: 84px; padding-right: 18px; background: var(--input, #F3F0EB) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath d='M1 4.5l3-3 3 3M1 7.5l3 3 3-3' fill='none' stroke='%23163038' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 6px center }
body .twocal.bj .trow select.rep { width: 92px }
/* Joshi 2 Nov 17:23: every button that leads to the next step sits bottom right */
.bj-step.on .steps { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px }
/* Joshi 2 Nov 17:28: length and repeat boxes as wide as their longest choice plus the arrows, no more */
body .twocal.bj .trow select.in:not(.hh):not(.mm), body .twocal.bj .trow select.rep { width: auto; min-width: 0; padding-left: 6px; padding-right: 18px }
/* Joshi 2 Nov 20:49: the sent line and the button outside the box */
.sentbox { padding: 16px 20px } .sentline { color: #2F6B5A; font-weight: 600 }
.steps.outside { display: flex; justify-content: flex-end }
/* Joshi 2 Nov 21:11: My account — one card per child */
.kidcard { border-top: 1px solid #E0D8CE; padding: 14px 0 } .kidcard:first-child { border-top: 0; padding-top: 4px }
.kidhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px }
.kidsub { margin-top: 10px } .kidsub ul { margin: 4px 0 0 }
.kidcard .steps { justify-content: flex-end; display: flex; gap: 10px }
/* Joshi 2 Nov 21:25: children as tabs */
.kidtabs { display: flex; gap: 4px; border-bottom: 1px solid #D8CFC4; margin: 4px 0 12px; flex-wrap: wrap }
.kidtab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 14px; font: inherit; font-size: 14.5px; color: #5B6669; cursor: pointer; margin-bottom: -1px }
.kidtab.on { color: #182528; font-weight: 600; border-bottom-color: #163038 }
.kidtab:hover { color: #182528 }
.kidtabs + .kidcard { border-top: 0; padding-top: 4px }
/* Step 5: Stripe's card box inside the page (D1-B) */
.cardslot { background: #fff; border: 1px solid #D6D0C8; border-radius: 10px; padding: 14px; margin-top: 10px; max-width: 520px }
.lock { font-size: 12.5px; color: #5F6B6D; margin: 8px 0 0; max-width: 520px; line-height: 1.5 }
