.jbm-asr-modal,
.jbm-asr-modal * {
  box-sizing: border-box;
}

body.jbm-asr-modal-open {
  overflow: hidden !important;
}

.jbm-asr-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(2, 31, 34, .82);
  backdrop-filter: blur(4px);
  font-family: "Lato", Arial, sans-serif;
}

.jbm-asr-modal.is-open {
  display: grid;
}

.jbm-asr-dialog {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid #29d8db;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.jbm-asr-dialog--warning {
  width: min(660px, 100%);
}

.jbm-asr-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px;
  background: #146f70;
  color: #fff;
}

.jbm-asr-dialog__head h2 {
  margin: 0 0 11px !important;
  color: #fff !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.jbm-asr-dialog__head p {
  margin: 0 !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.jbm-asr-dialog__close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.jbm-asr-dialog__close:hover {
  background: #29d8db;
  color: #073f40;
  transform: scale(1.06);
}

.jbm-asr-dialog__body {
  max-height: calc(100vh - 174px);
  overflow-y: auto;
  padding: 26px 28px 28px;
  scrollbar-color: #87b5b5 #eef5f5;
  scrollbar-width: thin;
}

.jbm-asr-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.jbm-asr-field,
.jbm-asr-full-field {
  display: block;
  color: #146f70;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.jbm-asr-full-field {
  margin-top: 16px;
}

.jbm-asr-optional {
  color: #667678;
  font-size: 12px;
  font-weight: 400;
}

.jbm-asr-field input,
.jbm-asr-full-field input {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid #b9caca;
  border-radius: 7px;
  background: #fff;
  color: #17252a;
  font-size: 15px;
  font-weight: 400;
}

.jbm-asr-field input:focus,
.jbm-asr-full-field input:focus {
  outline: 3px solid rgba(41, 216, 219, .25);
  outline-offset: -1px;
  border-color: #146f70;
}

.jbm-asr-review {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #cbd8d8;
  border-radius: 8px;
  background: #f8fafa;
}

.jbm-asr-review summary {
  position: relative;
  padding: 16px 52px 16px 18px;
  color: #146f70;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.jbm-asr-review summary::-webkit-details-marker {
  display: none;
}

.jbm-asr-review summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  transition: transform .2s ease;
}

.jbm-asr-review[open] summary::before {
  transform: rotate(90deg);
}

.jbm-asr-review__content {
  padding: 0 18px 18px;
}

.jbm-asr-review__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 0;
  border-top: 1px solid #dce5e5;
  color: #455558;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.jbm-asr-review__row strong {
  color: #17252a;
  text-align: right;
}

.jbm-asr-review__row--total {
  color: #073f40;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.jbm-asr-review__row--notice {
  margin: 4px 0;
  padding: 13px;
  border-left: 4px solid #29d8db;
  background: #edfafa;
}

.jbm-asr-warning__copy {
  margin: 0 !important;
  color: #344548 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.65 !important;
}

.jbm-asr-warning__note {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 4px solid #29d8db;
  border-radius: 6px;
  background: #edfafa;
  color: #344548;
  font-size: 14px;
  line-height: 1.55;
}

.jbm-asr-warning__note strong {
  color: #073f40;
  font-family: "Montserrat", sans-serif;
}

.jbm-asr-warning__actions {
  justify-content: stretch;
}

.jbm-asr-warning__actions button {
  flex: 1 1 0;
}

.jbm-asr-review__files {
  margin: 6px 0 0;
  padding: 0 0 0 19px;
  color: #455558;
}

.jbm-asr-terms {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 20px;
  color: #344548;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.jbm-asr-terms input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #146f70;
}

.jbm-asr-progress {
  margin-top: 18px;
  padding: 15px;
  border-left: 4px solid #29d8db;
  border-radius: 6px;
  background: #edfafa;
}

.jbm-asr-progress[hidden],
.jbm-asr-error[hidden] {
  display: none !important;
}

.jbm-asr-progress strong,
.jbm-asr-progress small {
  display: block;
  color: #073f40;
  font-size: 13px;
}

.jbm-asr-progress__track {
  height: 8px;
  margin: 9px 0 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #cfe6e6;
}

.jbm-asr-progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #146f70;
  transition: width .2s ease;
}

.jbm-asr-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.jbm-asr-actions button {
  min-width: 150px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid #146f70;
  border-radius: 7px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.jbm-asr-actions .jbm-asr-cancel {
  background: #fff;
  color: #146f70;
}

.jbm-asr-actions .jbm-asr-submit {
  border-color: #29d8db;
  background: #29d8db;
  color: #052f30 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.25;
  letter-spacing: .1px;
  text-shadow: 0 0 0 #052f30;
}

.jbm-asr-actions button:hover {
  background: #146f70;
  color: #fff;
}

.jbm-asr-actions button:disabled {
  opacity: .5;
  cursor: wait;
}

.jbm-asr-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 4px solid #b43d3d;
  background: #fff1f1;
  color: #7b2727;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.jbm-asr-success {
  padding: 18px 4px 4px;
  text-align: center;
}

.jbm-asr-success__icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #29d8db;
  color: #073f40;
  font-size: 34px;
  font-weight: 900;
}

.jbm-asr-success h3 {
  margin: 0 0 12px !important;
  color: #17252a !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 26px !important;
}

.jbm-asr-success p {
  max-width: 620px;
  margin: 0 auto 10px !important;
  color: #455558 !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.6;
}

.jbm-asr-success__reference {
  display: inline-block;
  margin: 9px 0 18px;
  padding: 10px 15px;
  border-radius: 6px;
  background: #edf8f8;
  color: #073f40;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.jbm-asr-success button {
  min-width: 190px;
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: #29d8db;
  color: #073f40;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 700px) {
  .jbm-asr-modal {
    align-items: end;
    padding: 0;
  }

  .jbm-asr-dialog {
    width: 100%;
    max-height: 94vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
  }

  .jbm-asr-dialog__head {
    padding: 20px;
  }

  .jbm-asr-dialog__head h2 {
    font-size: 22px !important;
  }

  .jbm-asr-dialog__body {
    max-height: calc(94vh - 126px);
    padding: 20px;
  }

  .jbm-asr-fields {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .jbm-asr-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .jbm-asr-actions button {
    width: 100%;
  }

  .jbm-asr-submit {
    grid-row: 1;
  }

  .jbm-asr-review__row {
    display: grid;
    gap: 4px;
  }

  .jbm-asr-review__row strong {
    text-align: left;
  }
}
