.beton-modal[hidden] {
  display: none !important;
}

.beton-modal__dialog {
  font-family: var(--font-main, "Space Grotesk", sans-serif);
}

.beton-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.beton-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 31, 35, 0.35);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.beton-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 420px);
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  top: 50%;
  transform: translateY(-50%);
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(172, 173, 177, 0.24);
  box-shadow: 0 24px 50px rgba(20, 21, 25, 0.18);
}

.beton-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(172, 173, 177, 0.25);
}

.beton-modal__header h3 {
  margin: 0;
  color: #2d2f33;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.beton-modal__close {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(172, 173, 177, 0.35);
  border-radius: 50%;
  background: #fff;
  color: #5a5b60;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.beton-modal__close:hover {
  color: #bb0100;
  border-color: rgba(187, 1, 0, 0.4);
}

.beton-modal__body {
  padding: 16px 18px 18px;
}

.beton-form-group {
  margin-bottom: 12px;
}

.beton-form-group label {
  display: block;
  margin-bottom: 6px;
  color: #2d2f33;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.beton-form-group input[type='text'],
.beton-form-group input[type='tel'] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(172, 173, 177, 0.35);
  border-radius: 4px;
  font: inherit;
}

.beton-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5a5b60;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.beton-consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.beton-consent a {
  color: #bb0100;
  font-weight: 700;
}

.beton-captcha-slot {
  min-height: 100px;
}

.beton-form-status {
  min-height: 1.2em;
  margin: 4px 0 12px;
  font-size: 0.88rem;
}

.beton-modal__dialog--wide {
  width: min(100% - 32px, 480px);
}

.beton-order-summary {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f6f6fb;
  border: 1px solid rgba(172, 173, 177, 0.25);
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre-wrap;
  color: #5a5b60;
  max-height: 160px;
  overflow-y: auto;
}

.beton-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(172, 173, 177, 0.35);
  border-radius: 4px;
  font: inherit;
  resize: vertical;
  min-height: 72px;
}

.beton-form-group textarea:focus {
  outline: none;
  border-color: rgba(187, 1, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(187, 1, 0, 0.12);
}

.beton-form-status--success {
  background: rgba(22, 101, 52, 0.1);
  border: 1px solid rgba(22, 101, 52, 0.35);
  padding: 10px 12px;
  border-radius: 4px;
  color: #14532d;
}

.beton-form-status--error {
  background: rgba(180, 19, 64, 0.08);
  border: 1px solid rgba(180, 19, 64, 0.35);
  padding: 10px 12px;
  border-radius: 4px;
  color: #7f1d1d;
}

.beton-form-submit {
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: 4px;
  background: #bb0100;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.beton-form-submit:hover:not(:disabled) {
  background: #980100;
}

.beton-form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .beton-modal__dialog {
    width: min(100% - 28px, 420px);
    margin: 14px auto;
  }

  .beton-modal__header {
    padding: 14px;
  }

  .beton-modal__body {
    padding: 14px;
  }

  .beton-order-summary {
    max-height: 140px;
    font-size: 0.82rem;
  }
}
