/* contact-form – styling ported from the old Contact Form 7 look */

.contact-form-block__heading { margin: var(--ag-sp-30) 0 var(--ag-sp-50); }

.ag-form { display: grid; gap: var(--ag-gap); font-size: var(--ag-fs-medium); }
.ag-form label {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: #2f261c;
}
.ag-form input[type="text"],
.ag-form input[type="email"],
.ag-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  appearance: none;
  border: 1px solid #d9d4cc;
  background: #fff;
  color: #2f261c;
  border-radius: 18px;
  padding: 16px 18px;
  font-family: var(--ag-font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ag-form textarea { min-height: 180px; resize: vertical; }
.ag-form input:focus, .ag-form textarea:focus {
  outline: none;
  border-color: rgba(178, 92, 84, 1);
  box-shadow: 0 0 0 4px rgba(178, 92, 84, .12);
}
.ag-form .is-error { border-color: #8e483e; box-shadow: 0 0 0 4px rgba(142, 72, 62, .1); }
.ag-form__check { display: inline-flex !important; align-items: flex-start; gap: 10px; color: #5f564b !important; }
.ag-form__check input { margin-top: 3px; accent-color: rgba(178, 92, 84, 1); }
.ag-form__check a { color: rgba(178, 92, 84, 1); text-decoration: none; }
.ag-form__check a:hover { color: #8e483e; }
.ag-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-tip { display: block; margin-top: 8px; font-size: 14px; color: #8e483e; }
.ag-form__actions { margin-top: 10px; }
.ag-form button[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: rgba(178, 92, 84, 1);
  color: #fff;
  padding: 14px 22px;
  font-family: var(--ag-font);
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(178, 92, 84, .25);
  transition: background .2s ease, transform .2s ease;
}
.ag-form button[type="submit"]:hover { background: #8e483e; transform: translateY(-1px); }
.ag-form__response {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}
.ag-form__response--ok { border: 1px solid #bfd7c1; background: #edf7ee; color: #2e5a34; }
.ag-form__response--error { border: 1px solid #e6c2bd; background: #fbefed; color: #7a2f27; }
@media (max-width: 767px) { .ag-form button[type="submit"] { width: 100%; } }

/* ---------- Dark modal ---------- */
.form-modal {
  width: min(640px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  overflow: visible;
}
.form-modal[open] { animation: modalIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.form-modal::backdrop { background: rgba(20, 14, 13, .72); backdrop-filter: blur(6px); }
.form-modal__box {
  position: relative;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 22px;
  background: radial-gradient(500px 300px at 100% 0%, rgba(var(--ag-primary-rgb), .35), transparent 70%), #241e1c;
  color: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55);
}
.form-modal__close {
  position: absolute; top: 16px; right: 16px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font-size: 1rem; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.form-modal__close:hover { background: #fff; color: var(--ag-text); transform: rotate(90deg); }
.form-modal__kicker { display: inline-flex; gap: .45rem; align-items: center; margin: 0 0 .8rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-rose); }
.form-modal__title { color: #fff; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; margin: 0 0 .4rem; }
.form-modal__intro { color: rgba(255, 255, 255, .7); font-size: .95rem; margin: 0 0 1.6rem; }

.form-modal .ag-form label { color: rgba(255, 255, 255, .85); }
.form-modal .ag-form input[type="text"],
.form-modal .ag-form input[type="email"],
.form-modal .ag-form textarea {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}
.form-modal .ag-form textarea { min-height: 140px; }
.form-modal .ag-form input:focus, .form-modal .ag-form textarea:focus { border-color: var(--ag-rose); box-shadow: 0 0 0 4px rgba(227, 159, 152, .2); background: rgba(255, 255, 255, .1); }
.form-modal .ag-form__check { color: rgba(255, 255, 255, .75) !important; }
.form-modal .ag-form__check a { color: var(--ag-rose); }
.form-modal .form-tip { color: #f3b1a9; }
.form-modal .ag-form .is-error { border-color: #f3b1a9; }
.form-modal .ag-form button[type="submit"] { width: 100%; padding: 16px 22px; font-size: 1rem; }
.form-modal .ag-form input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #3a3230 inset; }
