/* Local-only case intake modal. No form data is transmitted. */
.elementor-3795.elementor-location-popup {
  display: none !important;
}

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

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.case-modal.is-open {
  display: flex;
}

.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 27, 0.82);
  backdrop-filter: blur(1.5px);
}

.case-modal__dialog {
  position: relative;
  width: min(634px, 100%);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 28px 20px 34px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  color: #2f3540;
}

.case-modal__close {
  position: absolute;
  top: 15px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4b4f58;
  font: 400 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.case-modal__inner {
  width: min(570px, 100%);
  margin: 0 auto;
}

.case-modal__title {
  margin: 0 42px 34px;
  color: #3175bb;
  font-family: 'Public Sans', Arial, sans-serif;
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.case-modal__label,
.case-modal__legend {
  display: block;
  margin: 0 0 10px;
  color: #343943;
  font-size: 16px;
  font-weight: 600;
}

.case-modal__name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
}

.case-modal__field input[type='text'] {
  width: 100%;
  height: 56px;
  padding: 10px 12px;
  border: 1px solid #d6d9dd;
  border-radius: 0;
  background: #fff;
  color: #202731;
  font: inherit;
  box-shadow: none;
}

.case-modal__field input[type='text']:focus {
  outline: 2px solid #3175bb;
  outline-offset: 1px;
  border-color: #3175bb;
}

.case-modal__sublabel {
  display: block;
  margin-top: 4px;
  color: #555b65;
  font-size: 14px;
}

.case-modal__agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  cursor: pointer;
}

.case-modal__agreement input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: #173f67;
}

.case-modal__disclaimer {
  max-height: 124px;
  overflow-y: auto;
  margin-bottom: 15px;
  padding: 14px 15px;
  border: 1px solid #cfd3d8;
  color: #4b515b;
  font-size: 14px;
  line-height: 1.35;
}

.case-modal__disclaimer p {
  margin: 0 0 14px;
}

.case-modal__disclaimer p:last-child {
  margin-bottom: 0;
}

.case-modal__submit {
  min-height: 42px;
  padding: 10px 24px;
  border: 1px solid #173f67;
  border-radius: 2px;
  background: #173f67;
  color: #fff;
  font-family: 'Public Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.case-modal__submit:hover,
.case-modal__submit:focus-visible {
  background: #245b8e;
  border-color: #245b8e;
}

.case-modal__privacy {
  margin: 12px 0 0;
  color: #6a7079;
  font-size: 12px;
}

@media (max-width: 620px) {
  .case-modal {
    padding: 14px;
    align-items: flex-start;
  }

  .case-modal__dialog {
    max-height: calc(100vh - 28px);
    padding: 24px 17px 26px;
  }

  .case-modal__title {
    margin-bottom: 24px;
  }

  .case-modal__name-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
