.feedback-dialog{
  width:min(560px, calc(100% - 32px));
  max-height:calc(100vh - 32px);
  padding:0;
  border:1px solid #d8d4cb;
  border-radius:18px;
  background:#fff;
  color:#18233f;
  box-shadow:0 24px 70px rgba(24,35,63,.22);
  overflow:auto;
}

.feedback-dialog::backdrop{
  background:rgba(24,35,63,.48);
  backdrop-filter:blur(2px);
}

.feedback-dialog__body{
  padding:28px;
}

.feedback-dialog__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.feedback-dialog h2,
.feedback-dialog h3{
  margin:0;
  color:#18233f;
  font-family:inherit;
}

.feedback-dialog h2{
  font-size:clamp(1.55rem, 4vw, 2rem);
  line-height:1.18;
}

.feedback-dialog h3{
  font-size:1.18rem;
  line-height:1.3;
}

.feedback-dialog p{
  margin:9px 0 0;
  line-height:1.55;
  color:#566078;
}

.feedback-dialog__close{
  flex:0 0 auto;
  padding:5px 0;
  border:0;
  background:transparent;
  color:#4c566f;
  font:700 .9rem/1 inherit;
  cursor:pointer;
}

.feedback-form{
  margin-top:22px;
}

.feedback-field{
  display:block;
  margin-top:17px;
}

.feedback-field:first-child{
  margin-top:0;
}

.feedback-field__label{
  display:block;
  margin-bottom:7px;
  color:#18233f;
  font-weight:700;
}

.feedback-field input,
.feedback-field textarea{
  box-sizing:border-box;
  width:100%;
  border:1px solid #b9c0ce;
  border-radius:10px;
  background:#fff;
  color:#18233f;
  font:400 1rem/1.45 inherit;
}

.feedback-field input{
  min-height:46px;
  padding:10px 12px;
}

.feedback-field textarea{
  min-height:132px;
  padding:11px 12px;
  resize:vertical;
}

.feedback-field input:focus,
.feedback-field textarea:focus{
  border-color:#18233f;
  outline:3px solid rgba(213,157,38,.28);
  outline-offset:1px;
}

.feedback-form__privacy{
  margin-top:14px !important;
  font-size:.82rem;
}

.feedback-form__privacy a{
  color:inherit;
  font-weight:700;
}

.feedback-form__actions{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:20px;
}

.feedback-submit,
.feedback-advice__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 17px;
  border:1px solid #18233f;
  border-radius:9px;
  background:#18233f;
  color:#fff;
  font:700 .94rem/1.2 inherit;
  text-decoration:none;
  cursor:pointer;
}

.feedback-submit:disabled{
  cursor:wait;
  opacity:.65;
}

.feedback-form__status{
  min-height:20px;
  margin:12px 0 0 !important;
  color:#8a2e2e !important;
  font-size:.88rem;
  font-weight:600;
}

.feedback-turnstile{
  min-height:0;
}

.feedback-honeypot{
  position:absolute !important;
  left:-10000px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

.feedback-success[hidden],
.feedback-form[hidden]{
  display:none;
}

.feedback-success__intro{
  margin-top:12px !important;
}

.feedback-advice{
  margin-top:24px;
  padding:20px;
  border:1px solid #e2d7bd;
  border-radius:12px;
  background:#fbf4e5;
}

.feedback-advice p{
  margin-bottom:16px;
  color:#4f5361;
}

.feedback-advice__cta{
  border-color:#d59d26;
  background:#d59d26;
  color:#18233f;
}

@media (max-width:520px){
  .feedback-dialog{
    width:calc(100% - 20px);
    max-height:calc(100vh - 20px);
    border-radius:14px;
  }

  .feedback-dialog__body{
    padding:22px 20px;
  }

  .feedback-form__actions,
  .feedback-submit,
  .feedback-advice__cta{
    width:100%;
  }
}
