.fpm-estimate-overlay[hidden] { display: none !important; }
.fpm-estimate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0, 34, 54, .65);
  box-sizing: border-box;
}
.fpm-estimate-dialog {
  position: relative;
  width: 440px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 20px;
  box-sizing: border-box;
  background: #fff;
  color: #292929;
  font-family: TildaSans, Arial, sans-serif;
  box-shadow: 0 16px 60px rgba(0, 0, 0, .2);
}
.fpm-estimate-dialog h2 { margin: 0 26px 18px 0; font-size: 28px; line-height: 1.15; }
.fpm-estimate-close {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #555;
  font-size: 30px;
  cursor: pointer;
}
#fpm-estimate-form { display: flex; flex-direction: column; gap: 12px; }
.fpm-estimate-field { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.2; }
.fpm-estimate-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 9px 12px;
  box-sizing: border-box;
  border: 1px solid #c9d8de;
  border-radius: 8px;
  background: #fff;
  color: #292929;
  font: inherit;
  font-size: 16px;
}
.fpm-estimate-field input:focus { outline: 2px solid #1b9cc5; outline-offset: 1px; }
.fpm-estimate-file input { height: auto; min-height: 42px; padding: 8px; font-size: 13px; }
.fpm-estimate-file small { font-size: 12px; color: #5e6870; }
.fpm-estimate-captcha { width: 100%; min-height: 100px; overflow: hidden; }
.fpm-estimate-captcha iframe { width: 100% !important; max-width: 100%; }
.fpm-estimate-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.25; }
.fpm-estimate-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #169bc2; }
.fpm-estimate-consent a { color: #108bb2; text-decoration: underline; }
.fpm-estimate-submit {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #1b9ec7;
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.fpm-estimate-submit:hover { background: #138caf; }
.fpm-estimate-submit:disabled { opacity: .7; cursor: wait; }
.fpm-estimate-honeypot { display: none; }
.fpm-estimate-error, .fpm-estimate-captcha-error { color: #a22222; font-size: 14px; line-height: 1.3; }
.fpm-estimate-error p { margin: 0 0 8px; }
.fpm-estimate-captcha-error { margin: 0; }
.fpm-estimate-success { font-size: 18px; line-height: 1.4; }
.artistic-translation .fpm-translation-price { font-weight: 600; margin-top: 12px; flex: 0 0 100%; max-width: none; }
.artistic-translation [data-fpm-estimate] { width: 275px; max-width: 100%; padding-left: 24px; padding-right: 24px; }
@media (max-width: 480px) {
  .fpm-estimate-overlay { padding: 12px; }
  .fpm-estimate-dialog { padding: 16px; border-radius: 16px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .fpm-estimate-dialog h2 { font-size: 24px; margin-bottom: 14px; }
  #fpm-estimate-form { gap: 9px; }
  .fpm-estimate-captcha { min-height: 100px; }
}
