/* Try a Trade booking page for schools: additions on top of enrol.css and rpl.css. */
.hero-inner.wide, .card.wide { max-width: 980px; }
@media (max-width: 1004px) { .card.wide { margin-left: 12px; margin-right: 12px; } }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 18px; }
.hero-top .logo { margin-bottom: 0; }
.hero-nav { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hero-nav form { margin: 0; }
.hero-nav a, .hero-nav button { color: #fff; text-decoration: none; font: 600 .82rem/1 Inter, system-ui, sans-serif; padding: .5rem .75rem; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 0; cursor: pointer; }
.hero-nav a:hover, .hero-nav button:hover { background: rgba(255, 255, 255, .22); }
.demo-strip { background: #FFF4DB; color: #8A5A00; text-align: center; font-size: .78rem; font-weight: 600; padding: .35rem 1rem; }
.notice.info { background: #EEF4FB; color: #1f4f7f; }
.text-danger { color: var(--err); } .text-success { color: var(--ok); }
.mt { margin-top: .75rem; }
.btn-link.danger { color: var(--err); }
a.st { text-decoration: none; }

/* Calendar */
.intro p { margin-top: 0; }
.pdot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; flex: none; }
.prog-key { list-style: none; padding: 0; margin: .25rem 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: .88rem; }
.prog-key li { display: flex; align-items: center; gap: .4rem; }
.prog-key span { color: var(--muted); }
.filters { position: sticky; top: 0; z-index: 5; background: #fff; padding: .6rem 0 .5rem; margin-bottom: .25rem; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .45rem; }
.chips { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; display: inline-flex; align-items: center; gap: .35rem; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; padding: .42rem .8rem; font: 600 .82rem/1 Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters .check { margin: 0; font-size: .86rem; }
.term-head { font-size: 1.1rem; margin: 1.25rem 0 .25rem; padding-bottom: .3rem; border-bottom: 2px solid var(--brand); }
.week { display: grid; grid-template-columns: 64px 1fr; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.week-label { font-weight: 800; font-size: .8rem; color: var(--ink); line-height: 1.25; padding-top: .35rem; }
.week-label small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.slot { display: flex; flex-direction: column; gap: .2rem; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: .55rem .7rem .65rem; background: #fff; font-size: .86rem; min-width: 0; }
.slot.closed { background: #faf8f6; }
.slot.closed .slot-head b { color: var(--muted); }
.slot.mine { background: #fffaf2; }
.slot-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.slot-head b { color: var(--ink); font-size: .92rem; line-height: 1.25; }
.slot-head span { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.slot-dates { font-weight: 600; }
.slot-bar { position: relative; height: 6px; border-radius: 6px; background: #EFE9E4; margin: .2rem 0; }
.slot-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--c); transition: width .4s; }
.slot-bar s { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: var(--ink); opacity: .35; }
.slot-status { font-size: .8rem; line-height: 1.4; }
.slot-note { font-size: .74rem; line-height: 1.35; color: #8A5A00; background: #FFF8E6; border-radius: 8px; padding: .25rem .45rem; }
.slot-mine { font-size: .78rem; font-weight: 700; color: var(--ok); text-decoration: none; }
.slot-btn { margin-top: .3rem; align-self: flex-start; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; font-size: .82rem; border-radius: 99px; padding: .42rem 1.1rem; }
.slot-btn:hover { background: var(--brand-dark); color: #fff; }
.slot.flash { animation: flash 1.4s ease; }
@keyframes flash { 0% { background: #FFF1C7; } 100% { background: #fff; } }
.live-note { margin-top: 1rem; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1fbf75; margin-right: .3rem; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.empty-msg { text-align: center; color: var(--muted); padding: 2rem 0; }
@media (max-width: 900px) { .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .slots { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; gap: .35rem; }
  .week-label { display: flex; gap: .5rem; align-items: baseline; padding-top: 0; }
  .week-label small { display: inline; }
  .hero-top { align-items: flex-start; }
}

/* Sign-in, booking and names */
.demo-box { background: #FFF8E6; border: 1px dashed #E8C66B; border-radius: 12px; padding: .7rem .9rem; font-size: .86rem; margin-top: 1rem; }
.demo-box .btn-link { padding: .2rem .3rem; text-align: left; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.stepper button { width: 52px; height: 52px; border: 0; background: var(--cream); font-size: 1.4rem; color: var(--ink); cursor: pointer; }
.stepper button:hover { background: #f1e9e3; }
.stepper input[type=number] { width: 80px; text-align: center; border: 0; border-radius: 0; font-size: 1.25rem; font-weight: 700; padding: 10px 4px; box-shadow: none; -moz-appearance: textfield; font-family: inherit; color: var(--ink); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.places-form { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.places-form .btn { width: auto; padding: 0 1.3rem; margin: 0; }
.booking .k { margin-bottom: .05rem; }
.mine-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.mine-head h2 { margin: 0; }
.small-btn { width: auto; min-height: 42px; padding: 0 1.1rem; margin: 0; font-size: .9rem; }
.mine-row { display: flex; align-items: center; gap: .7rem; padding: .65rem .7rem; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 14px; margin-bottom: .45rem; text-decoration: none; color: var(--text); background: #fff; }
.mine-row:hover { border-color: #d3c4bb; border-left-color: var(--c); }
.mine-row.past { background: #faf8f6; }
.tat-paste { margin-bottom: .75rem; }
.tat-paste summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.tat-paste[open] { background: var(--cream); border-radius: 12px; padding: .6rem .75rem; }
.tat-paste .btn { width: auto; display: inline-flex; padding: 0 1.1rem; min-height: 42px; margin: .5rem .5rem 0 0; }
a.btn-link { text-decoration: none; }
.slot-alt { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--brand); font: 600 .8rem Inter, system-ui, sans-serif; cursor: pointer; text-decoration: underline; }

/* The student table: one row per student, cards on a phone. */
.tat-names-wrap { overflow-x: auto; }
.tat-names-table { width: 100%; border-collapse: collapse; }
.tat-names-table th { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: .3rem .3rem; text-align: left; white-space: nowrap; }
.tat-names-table td { padding: .18rem .25rem; vertical-align: top; }
.tat-names-table.full { min-width: 860px; }
.tat-names-table.full td[data-label="Email"] { min-width: 190px; }
.tat-names-table td select { min-width: 72px; }
@media (max-width: 760px) {
  .tat-names-table.full { min-width: 0; }
  .tat-names-table, .tat-names-table tbody { display: block; width: 100%; }
  .tat-names-table thead { display: none; }
  .tat-names-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .4rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
  .tat-names-table td { display: block; padding: 0; }
  .tat-names-table td[data-label="Email"] { grid-column: 1 / -1; }
  .tat-names-table td::before { content: attr(data-label); display: block; font-size: .66rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .1rem; }
}

.tat-names-table input, .tat-names-table select { padding: 8px 9px; font-size: 14px; border-radius: 9px; }
.tat-names-table select { padding-right: 24px; background-position: right 7px center; }
@media (max-width: 760px) { .tat-names-table input, .tat-names-table select { font-size: 16px; } }

/* Booking page */
.sheet-box { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: .8rem .95rem; margin-bottom: 1rem; }
.sheet-box p { margin: 0 0 .5rem; }
.sheet-box .btn { width: auto; display: inline-flex; min-height: 42px; padding: 0 1.1rem; margin: 0; font-size: .9rem; }
.sheet-up { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }
.sheet-up input[type=file] { flex: 1 1 200px; min-width: 0; font-size: .85rem; }
.choice-where { margin-left: auto; color: var(--muted); font-size: .85rem; font-weight: 500; }
.demo-strip a { color: inherit; font-weight: 700; }
.status-banner { margin-bottom: .75rem; }
.tat-names-table td[data-label="Gender"] select { min-width: 96px; }
