.rk-estimate-mail {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rk-estimate-mail[hidden] {
  display: none !important;
}

.rk-estimate-mail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.72);
  backdrop-filter: blur(4px);
}

.rk-estimate-mail__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #f7f3eb;
  color: #141210;
  border-radius: 24px;
  padding: 28px 24px 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.65);
}

.rk-estimate-mail__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 18, 16, 0.06);
  color: #141210;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.rk-estimate-mail__close:hover {
  background: rgba(20, 18, 16, 0.12);
}

.rk-estimate-mail__close:focus-visible {
  outline: 2px solid #ff5527;
  outline-offset: 2px;
}

.rk-estimate-mail__eyebrow {
  margin: 0 0 8px;
  font: 600 11px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.14em;
  color: #c8391a;
}

.rk-estimate-mail__title {
  margin: 0 36px 8px 0;
  font: 800 clamp(22px, 3vw, 28px)/1.15 'Inter Tight', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.rk-estimate-mail__lead {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #3a332d;
}

.rk-estimate-mail__summary {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #141210;
  color: #eae7e1;
  font-size: 13px;
  line-height: 1.55;
}

.rk-estimate-mail__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rk-estimate-mail__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rk-estimate-mail__field label {
  font: 600 12px/1.2 'Inter', system-ui, sans-serif;
  color: #3a332d;
}

.rk-estimate-mail__optional {
  font-weight: 500;
  color: #8a8078;
}

.rk-estimate-mail__field input,
.rk-estimate-mail__field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(20, 18, 16, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #141210;
  padding: 11px 12px;
  font: 500 14.5px/1.4 'Inter', system-ui, sans-serif;
}

.rk-estimate-mail__field input:focus,
.rk-estimate-mail__field textarea:focus {
  outline: 2px solid #ff5527;
  outline-offset: 1px;
  border-color: transparent;
}

.rk-estimate-mail__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(200, 57, 26, 0.1);
  color: #c8391a;
  font-size: 13px;
}

.rk-estimate-mail__submit {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #e0431c;
  color: #fff;
  font: 700 14.5px/1 'Inter Tight', 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.rk-estimate-mail__submit:hover:not(:disabled) {
  background: #c93a16;
}

.rk-estimate-mail__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.rk-estimate-mail__submit:focus-visible {
  outline: 2px solid #141210;
  outline-offset: 3px;
}

.rk-estimate-mail__legal {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #8a8078;
  text-align: center;
}

body.rk-estimate-mail-open {
  overflow: hidden;
}
