/*
 StockSkill Book Class Mobile V2
*/

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

input,
select,
textarea {
  font-size: 16px !important;
}

/* ------------------------------------------------------------
   Mobile only
------------------------------------------------------------ */

@media (max-width: 767px) {

  body {
    overflow-x: hidden !important;
  }

  /* Main page wrappers */
  main,
  .main,
  .container,
  .page-container,
  .content-container,
  .booking-container,
  .booking-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  .container,
  .page-container,
  .content-container,
  .booking-container,
  .booking-wrapper {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Headings */
  h1 {
    font-size: 29px !important;
    line-height: 1.15 !important;
  }

  h2 {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  h3 {
    font-size: 20px !important;
  }

  /* ----------------------------------------------------------
     BOOKING / CLASS FORM
  ---------------------------------------------------------- */

  .booking-form,
  .book-class-form,
  .class-booking-form,
  form {
    width: 100% !important;
    max-width: 100% !important;
  }

  .booking-form > *,
  .book-class-form > *,
  .class-booking-form > * {
    max-width: 100% !important;
  }

  .booking-form .row,
  .booking-form .form-row,
  .book-class-form .row,
  .book-class-form .form-row,
  .class-booking-form .row,
  .class-booking-form .form-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .booking-form .col,
  .booking-form [class*="col-"],
  .book-class-form .col,
  .book-class-form [class*="col-"],
  .class-booking-form .col,
  .class-booking-form [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  label {
    display: block;
    width: 100%;
    margin-bottom: 6px;
  }

  input,
  select,
  textarea {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 10px;
  }

  textarea {
    min-height: 110px !important;
  }

  button,
  .btn,
  input[type="submit"],
  input[type="button"] {
    min-height: 48px !important;
  }

  /* Primary booking CTA */
  form button[type="submit"],
  form input[type="submit"],
  .booking-form .btn-primary,
  .book-class-form .btn-primary {
    width: 100% !important;
  }

  /* ----------------------------------------------------------
     CARDS / PANELS
  ---------------------------------------------------------- */

  .card,
  .booking-card,
  .class-card,
  .booking-panel,
  .form-card,
  .summary-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .card,
  .booking-card,
  .booking-panel,
  .form-card {
    padding: 16px !important;
  }

  /* ----------------------------------------------------------
     FLEX / GRID
  ---------------------------------------------------------- */

  .grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .two-column,
  .two-col,
  .columns,
  .booking-grid {
    grid-template-columns: 1fr !important;
  }

  .flex,
  .flex-row,
  .row {
    flex-wrap: wrap !important;
  }

  /* ----------------------------------------------------------
     HEADER
  ---------------------------------------------------------- */

  header {
    width: 100% !important;
    max-width: 100% !important;
  }

  header img {
    max-height: 48px;
    width: auto;
  }

  nav {
    max-width: 100%;
  }

  /* ----------------------------------------------------------
     TABLES
  ---------------------------------------------------------- */

  .table-responsive,
  .table-wrap,
  .responsive-table {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 620px;
  }

  /* ----------------------------------------------------------
     SAFE SPACING
  ---------------------------------------------------------- */

  section {
    max-width: 100% !important;
  }

  .hero,
  .hero-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Prevent oversized desktop widths */
  [style*="width: 1200px"],
  [style*="width:1200px"],
  [style*="width: 1100px"],
  [style*="width:1100px"],
  [style*="width: 1000px"],
  [style*="width:1000px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Prevent horizontal scrolling from long content */
  p,
  span,
  a,
  label,
  td,
  th {
    overflow-wrap: anywhere;
  }

}

/* Very small phones */
@media (max-width: 380px) {

  .container,
  .page-container,
  .content-container,
  .booking-container,
  .booking-wrapper {
    padding-left: 11px !important;
    padding-right: 11px !important;
  }

  h1 {
    font-size: 26px !important;
  }

  h2 {
    font-size: 22px !important;
  }
}
