* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 48px 16px 64px;
  background: #f2f5f0;
  color: #263228;
  font: 16px/1.5 system-ui, sans-serif;
}
.consult-form-card {
  max-width: 576px;
  margin-inline: auto;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgb(38 50 40 / 13%);
}
h1, h2 { font: 400 30px/1.25 Georgia, serif; margin: 4px 0 24px; }
h2 { font-size: 24px; margin-bottom: 12px; }
p { margin: 0 0 24px; }
.field { margin-bottom: 24px; }
label { display: block; margin-bottom: 6px; font-size: 14px; }
input, select, textarea, button {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 5px 12px;
  background: #fff;
  color: inherit;
  font: inherit;
}
input::placeholder, textarea::placeholder, select:invalid { color: #676f68; }
select option { color: #263228; }
textarea { min-height: 134px; resize: vertical; }
.phone-field { position: relative; }
.phone-field span { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.phone-field input { padding-left: 42px; }
input:hover, select:hover, textarea:hover { border-color: #495749; }
:focus-visible { outline: 2px solid #495749; outline-offset: 2px; }
button { border-color: #495749; background: #495749; color: #fff; cursor: pointer; }
button:enabled:hover { background: #394639; }
button:disabled { opacity: .7; cursor: default; }
a { color: #495749; }
#consultation-error { margin: 12px 0 0; color: #8a302b; }
#consultation-error:empty { margin: 0; }
.consultation-confirmed {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.consultation-confirmed .consult-form-card {
  width: 100%;
  padding: 40px 24px;
}
#consultation-success { text-align: center; }
.confirmation-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border: 1px solid #679267;
  border-radius: 50%;
  background: #ebf2eb;
  color: #495749;
}
#confirmation-title {
  max-width: 21ch;
  margin: 0 auto 14px;
  text-wrap: balance;
}
#consultation-success p {
  max-width: 36ch;
  margin: 0 auto 26px;
  text-wrap: balance;
}
.confirmation-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 6px;
  background: #495749;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.confirmation-return:hover { background: #394639; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  body { padding: 24px 12px 40px; }
  .consult-form-card { padding: 20px; }
  input, select, button { min-height: 44px; }
}
