/* Mobile-only course page bottom-sheet lead form */
@media (max-width: 767px) {
  .cmls {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
    visibility: hidden;
    font-family: "Geometria", sans-serif;
  }

  .cmls.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .cmls__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 19, 34, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .cmls.is-open .cmls__backdrop {
    opacity: 1;
  }

  .cmls__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    max-height: 92vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(10, 28, 48, 0.22);
    transform: translateY(110%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), height 0.55s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .cmls.is-open .cmls__panel {
    transform: translateY(0);
  }

  .cmls.is-step2 .cmls__panel {
    height: auto;
    max-height: 100vh;
    max-height: 100dvh;
  }

  .cmls__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-family: "Geometria", sans-serif;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .cmls__hero {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    min-height: 104px;
    background: #217177;
    border-bottom: 0;
    overflow: hidden;
    flex-shrink: 0;
  }

  .cmls__counsellor {
    flex: 0 0 92px;
    width: 92px;
    position: relative;
    align-self: stretch;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .cmls__counsellor-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 10%;
    -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 100%);
    mask-image: linear-gradient(to right, #000 70%, transparent 100%);
  }

  .cmls__hero-text {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 14px 46px 14px 12px;
  }

  .cmls__hero-text h3 {
    margin: 0 0 8px;
    font-family: "Geometria", sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    font-style: normal;
    color: #ffffff;
    letter-spacing: 0;
  }

  .cmls__hero-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .cmls__hero-points li {
    position: relative;
    padding-left: 17px;
    font-family: "Geometria", sans-serif;
    font-size: 11px;
    line-height: 14px;
    font-weight: 400;
    color: #e2fcff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cmls__hero-points li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 3px;
    width: 9px;
    height: 5px;
    border-left: 2px solid #ff6c4b;
    border-bottom: 2px solid #ff6c4b;
    transform: rotate(-45deg);
  }

  .cmls__trust {
    margin: 2px 0 10px;
    font-family: "Geometria", sans-serif;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 400;
    color: #4a5f78;
    text-align: center;
  }

  .cmls__trust strong {
    font-weight: 500;
    color: #ff6c4b;
  }

  .cmls__body {
    flex: 0 0 auto;
    overflow: hidden;
    padding: 12px 16px 16px;
    background: #fff;
  }

  .cmls.is-step2 .cmls__body {
    flex: 0 1 auto;
    overflow: hidden;
    padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .cmls.is-step2 .cmls__hero {
    min-height: 86px;
  }

  .cmls.is-step2 .cmls__counsellor {
    flex: 0 0 76px;
    width: 76px;
  }

  .cmls.is-step2 .cmls__hero-text {
    padding: 10px 42px 10px 10px;
  }

  .cmls.is-step2 .cmls__hero-text h3 {
    margin-bottom: 6px;
    font-size: 15px;
  }

  .cmls.is-step2 .cmls__hero-points {
    gap: 4px;
  }

  .cmls.is-step2 .cmls__hero-points li {
    font-size: 10px;
    line-height: 13px;
  }

  .cmls__step {
    display: none;
  }

  .cmls__step.is-active {
    display: block;
  }

  .cmls__field {
    margin-bottom: 10px;
  }

  .cmls__field label {
    display: block;
    margin-bottom: 6px;
    font-family: "Geometria", sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
    color: #074684;
  }

  .cmls__field input {
    width: 100%;
    height: auto;
    min-height: 38px;
    padding: 8px 0 10px;
    border: 0;
    border-bottom: 1px solid #b6b6b6;
    border-radius: 0;
    font-family: "Geometria", sans-serif;
    font-size: 15px;
    line-height: 18px;
    font-weight: 400;
    font-style: normal;
    color: #074684;
    background: transparent;
    box-sizing: border-box;
    -webkit-text-fill-color: #074684;
  }

  .cmls__field select:focus,
  .cmls__field input:focus {
    outline: none;
    border-bottom-color: #ff6c4b;
    box-shadow: none;
  }

  .cmls__trust-block {
    margin-top: 8px;
  }

  .cmls__trust-card {
    padding: 8px 10px 6px;
    border-radius: 10px;
    background: linear-gradient(165deg, #f3f8fa 0%, #eaf2f6 100%);
    border: 1px solid #dce8ee;
  }

  .cmls__trust-head {
    margin: 0 0 6px;
    font-family: "Geometria", sans-serif;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    color: #217177;
    text-align: left;
  }

  .cmls__trust-head--clients {
    margin-top: 8px;
  }

  .cmls__cert-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .cmls__cert-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2eaf1;
    min-width: 0;
  }

  .cmls__cert-card img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex: 0 0 26px;
  }

  .cmls__cert-card strong {
    display: block;
    font-family: "Geometria", sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #217177;
    line-height: 1.15;
  }

  .cmls__cert-card span {
    display: block;
    font-family: "Geometria", sans-serif;
    font-size: 7px;
    font-weight: 300;
    color: #4a5f78;
    line-height: 1.2;
  }

  .cmls__client-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .cmls__client-logo-box {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2eaf1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cmls__client-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .cmls__clients-note {
    margin: 4px 0 0;
    font-family: "Geometria", sans-serif;
    font-size: 8px;
    line-height: 1.2;
    font-weight: 300;
    font-style: italic;
    color: #4a5f78;
    text-align: right;
  }

  .cmls.is-step2 .cmls__field {
    margin-bottom: 4px;
  }

  .cmls.is-step2 .cmls__field label {
    margin-bottom: 2px;
    font-size: 11px;
  }

  .cmls.is-step2 .cmls__field input {
    min-height: 30px;
    padding: 4px 0 6px;
    font-size: 14px;
    line-height: 16px;
  }

  .cmls.is-step2 .cmls__phone-wrap,
  .cmls.is-step2 .cmls__phone-cc-box,
  .cmls.is-step2 .cmls__phone-wrap .cmls__phone-cc,
  .cmls.is-step2 .cmls__phone-wrap .cmls__phone-local {
    min-height: 32px;
    height: 32px;
    line-height: 32px;
  }

  .cmls.is-step2 .cmls__error {
    margin: 0 0 2px;
    font-size: 11px;
  }

  .cmls.is-step2 .cmls__btn {
    margin-top: 4px;
    min-height: 38px;
    font-size: 14px;
  }

  .cmls.is-step2 .cmls__row {
    gap: 8px;
  }

  .cmls__phone-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border-bottom: 1px solid #b6b6b6;
    padding: 0;
  }

  .cmls__phone-wrap:focus-within {
    border-bottom-color: #ff6c4b;
  }

  .cmls__phone-cc-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    height: 44px;
  }

  .cmls__phone-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #d9e1eb;
    flex: 0 0 24px;
    display: block;
  }

  .cmls__phone-wrap .cmls__phone-cc,
  .cmls__phone-wrap .cmls__phone-local {
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-bottom: 0 !important;
    line-height: 44px;
    background: transparent;
    box-shadow: none;
  }

  .cmls__phone-wrap .cmls__phone-cc {
    flex: 0 0 44px;
    width: 44px;
    text-align: left;
    font-weight: 500;
    color: #074684;
    -webkit-text-fill-color: #074684;
  }

  .cmls__phone-wrap .cmls__phone-local {
    flex: 1;
    min-width: 0;
    font-weight: 400;
    color: #074684;
    -webkit-text-fill-color: #074684;
  }

  .cmls__phone-wrap .cmls__phone-local::placeholder {
    color: #616161;
    -webkit-text-fill-color: #616161;
    font-weight: 300;
  }

  .cmls__phone-wrap .cmls__phone-local:not(:placeholder-shown) {
    color: #074684;
    -webkit-text-fill-color: #074684;
    font-weight: 400;
  }

  .cmls__field input::placeholder {
    font-family: "Geometria", sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 18px;
    color: #616161;
    opacity: 1;
    -webkit-text-fill-color: #616161;
  }

  .cmls__phone-wrap:focus-within .cmls__phone-cc,
  .cmls__phone-wrap:focus-within .cmls__phone-local {
    border-bottom-color: transparent;
  }

  .cmls__field input[readonly] {
    background: transparent;
    color: #074684;
    font-weight: 400;
    -webkit-text-fill-color: #074684;
  }

  .cmls__row {
    display: flex;
    gap: 10px;
  }

  .cmls__row .cmls__field {
    flex: 1;
    min-width: 0;
  }

  .cmls__error {
    min-height: 0;
    margin: 0 0 6px;
    font-family: "Geometria", sans-serif;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
    color: #c0392b;
  }

  .cmls__error:not(:empty) {
    min-height: 18px;
  }

  .cmls__btn {
    width: 100%;
    height: auto;
    min-height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 0;
    background: #ff6c4b;
    color: #fff;
    font-family: "Geometria", sans-serif;
    font-size: 15px;
    line-height: 18px;
    font-weight: 400;
    font-style: normal;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  .cmls__btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
  }

  .cmls.is-keyboard .cmls__hero {
    display: none;
  }

  .cmls.is-keyboard .cmls__panel,
  .cmls.is-keyboard.is-step2 .cmls__panel {
    height: auto;
    max-height: 100%;
  }

  .cmls.is-keyboard .cmls__body,
  .cmls.is-keyboard.is-step2 .cmls__body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 16px;
    scrollbar-width: none;
  }

  .cmls.is-keyboard .cmls__body::-webkit-scrollbar {
    display: none;
  }

  .cmls.is-keyboard .cmls__trust-block {
    display: none;
  }

  body.cmls-scroll-lock {
    overflow: hidden;
    touch-action: none;
  }
}

@media (min-width: 768px) {
  .cmls {
    display: none !important;
  }
}
