/* Root & Read — make every page fit the screen (phones, tablets, laptops, large monitors). */
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video, canvas, iframe { max-width: 100%; }
input, select, textarea, button { max-width: 100%; min-width: 0; font: inherit; }

/* Demo form: never wider than its box; one column on phones */
.book form > * { min-width: 0; }
.book form input, .book form select { width: 100%; }
@media (max-width: 600px) {
  .book { padding: 24px !important; border-radius: 28px !important; }
  .book form { grid-template-columns: 1fr !important; }
}

/* Batch timings: full table on wide screens, one card per class on phones */
@media (max-width: 900px) {
  .tt table { min-width: 0 !important; }
  .tt { overflow: visible !important; background: transparent !important; }
  .tt table, .tt tbody, .tt tr, .tt td { display: block; width: 100%; }
  .tt thead { display: none; }
  .tt tr { background: #fff; border-radius: 22px; padding: 14px 18px; margin-bottom: 12px;
           box-shadow: 0 12px 26px -20px rgba(30,42,74,.45); }
  .tt td { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0 !important;
           border: 0 !important; border-bottom: 1px dashed #e3e8f2 !important; text-align: right; }
  .tt td:last-child { border-bottom: 0 !important; }
  .tt td:first-child { font-weight: 800; font-size: 1.1em; justify-content: flex-start; text-align: left; }
  .tt td { white-space: nowrap; }
  .tt td::before { font-weight: 700; color: #5A6680; text-align: left; flex: 1 1 auto; white-space: normal; }
  .tt td:nth-child(2)::before { content: "Level"; }
  .tt td:nth-child(3)::before { content: "Days"; }
  .tt td:nth-child(4)::before { content: "India"; }
  .tt td:nth-child(5)::before { content: "Qatar, Saudi, Kuwait, Bahrain"; }
  .tt td:nth-child(6)::before { content: "UAE, Oman"; }
  .tt td:nth-child(7)::before { content: "Seats"; }
}

/* Design A/B switcher: keep it out of the way on phones */
@media (max-width: 700px) { .switch { display: none !important; } }

/* Small phones: single-column cards so nothing is squeezed or cut off */
@media (max-width: 480px) {
  .how, .subs, .cards { grid-template-columns: 1fr !important; }
  .sub { height: auto !important; min-height: 180px; }
  .tgrid { grid-template-columns: 1fr 1fr !important; }
}
