.request-modal[hidden]{display:none}

.request-modal{
  position:fixed;
  z-index:10000;
  inset:0;
  display:grid;
  place-items:center;
  padding:24px;
}

.request-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(17,17,17,.62);
}

.request-modal__dialog{
  position:relative;
  width:min(100%,560px);
  max-height:calc(100dvh - 48px);
  overflow:auto;
  border-radius:var(--radius-container);
  box-shadow:0 20px 48px rgba(0,0,0,.22);
}

.request-modal__form.form{
  min-height:auto!important;
  height:auto!important;
  padding:36px;
  border:1px solid rgba(17,17,17,.1);
}

.request-modal [data-request-situation-field][hidden]{display:none}
.request-modal textarea.field{display:block;min-height:84px;resize:vertical}

.request-modal__heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.request-modal__heading .form__heading{flex:1}

.request-modal__close{
  position:static;
  display:grid;
  flex:0 0 40px;
  width:40px;
  height:40px;
  place-items:center;
  border:1px solid #b7b6b0;
  border-radius:var(--radius-control);
  background:#f0efe9;
  color:#111;
  cursor:pointer;
  font-size:26px;
  line-height:1;
  transition:border-color 160ms ease-out,color 160ms ease-out,background-color 160ms ease-out;
}

.request-modal__close:hover{
  border-color:var(--brand-red);
  background:#fff;
  color:var(--brand-red);
}

.request-modal__close:focus-visible{
  outline:2px solid var(--brand-red);
  outline-offset:3px;
}

.uriskon-request-form .field:focus,
.uriskon-request-form .field:focus-visible{
  outline:0;
  outline-offset:0;
  border-bottom-color:var(--brand-red);
  box-shadow:0 1px 0 var(--brand-red);
}

.uriskon-request-form select.field{
  box-sizing:border-box;
  height:49px;
  min-height:48px;
  padding-top:0;
  padding-bottom:0;
  line-height:normal;
  cursor:pointer;
  font:inherit;
  color:var(--black);
}

.uriskon-request-form select.field:has(option:checked[value=""]){color:#7e7d76}

.uriskon-request-form .submit{
  position:relative;
  justify-content:center;
  padding-right:52px;
  padding-left:52px;
  text-align:center;
}

.uriskon-request-form .submit img{
  position:absolute;
  right:20px;
}

.request-modal__form .form__status:empty{
  display:none;
}

.request-modal-open{overflow:hidden}

.service-quiz__card .uriskon-request-form.form{
  min-height:0;
  padding:30px 32px;
  border:0;
  background:#f5f3ee;
  box-shadow:none;
}

.service-quiz__card .uriskon-request-form .form__heading h3 span{color:var(--brand-red)}

@media (max-width:640px){
  .request-modal{align-items:end;padding:12px}
  .request-modal__dialog{max-height:calc(100dvh - 24px)}
  .request-modal__form.form{padding:28px 22px}
  .service-quiz__card .uriskon-request-form.form{padding:24px 20px}
}

@media (prefers-reduced-motion:reduce){
  .request-modal__close{transition:none}
}
