.cm_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.cm_overlay--active {
  display: flex;
}

.contact_modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 430px;
  box-shadow: 0px 24px 60px rgba(0, 0, 0, 0.18);
  font-family: Inter, sans-serif;
  box-sizing: border-box;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.cm_close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #F5F5F5;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.cm_close:hover {
  background: #EAEAEA;
}

.cm_header {
  margin-bottom: 24px;
}

.cm_title {
  font-size: 22px;
  font-weight: 700;
  color: #2D2308;
  margin: 0 0 6px;
  line-height: 28px;
}

.cm_subtitle {
  font-size: 14px;
  color: #8B8B8B;
  margin: 0;
  line-height: 20px;
}

.cm_field {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
}

.cm_label {
  font-size: 13px;
  font-weight: 600;
  color: #2D2308;
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.cm_input {
  width: 100%;
  border: 1.5px solid #E0E0E0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: Inter, sans-serif;
  color: #2D2308;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.18s ease;
}

.cm_input::placeholder {
  color: #B9B9B9;
}

.cm_input:focus {
  border-color: #6308FF;
}

.cm_input.cm_input--error {
  border-color: #E53935;
}

.cm_textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 220px;
  line-height: 1.5;
}

.cm_hint {
  font-size: 11px;
  color: #B9B9B9;
  margin-top: 4px;
}

.cm_char_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  min-height: 18px;
}

.cm_char_count {
  font-size: 11px;
  color: #B9B9B9;
  flex-shrink: 0;
  margin-left: auto;
}

.cm_error {
  font-size: 12px;
  color: #E53935;
  display: none;
  margin-top: 4px;
  line-height: 16px;
}

.cm_status {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
  line-height: 18px;
}

.cm_status--success {
  color: #3BB87A;
}

.cm_status--error {
  color: #E53935;
}

.cm_submit {
  width: 100%;
  border: none;
  border-radius: 47px;
  background: var(--Button, #9560F1);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: opacity 0.18s ease;
}

.cm_submit:hover {
  opacity: 0.88;
}

.cm_submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .contact_modal {
    padding: 28px 20px 24px;
    border-radius: 12px;
  }

  .cm_title {
    font-size: 19px;
  }
}

@media (max-width: 360px) {
  .contact_modal {
    padding: 22px 16px 20px;
    border-radius: 10px;
  }

  .cm_title {
    font-size: 17px;
  }

  .cm_input {
    font-size: 13px;
    padding: 10px 12px;
  }

  .cm_submit {
    font-size: 14px;
    padding: 13px 16px;
  }
}
