.contact-modal-open { overflow: hidden; }

.contact-dialog [hidden],
.privacy-dialog [hidden] {
  display: none !important;
}

.contact-dialog {
  width: min(960px, calc(100vw - 40px));
  max-height: min(860px, calc(100vh - 40px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  background: #fbfaf6;
  color: #102019;
  box-shadow: 0 45px 120px rgba(0,0,0,.42);
}
.contact-dialog::backdrop {
  background: rgba(7,17,15,.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  min-height: 640px;
}
.contact-close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7,17,15,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  color: #07110f;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.contact-intro {
  padding: 62px 44px;
  background:
    radial-gradient(circle at 15% 85%, rgba(185,244,95,.18), transparent 34%),
    #07110f;
  color: white;
}
.contact-kicker {
  margin: 0 0 18px;
  color: #b9f45f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.contact-intro h2 {
  margin: 0;
  max-width: 320px;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: -.055em;
}
.contact-intro > p:not(.contact-kicker) {
  margin: 26px 0 0;
  color: rgba(255,255,255,.63);
  font-size: 16px;
  line-height: 1.65;
}
.contact-intro strong { color: white; }
.contact-assurance { margin-top: 42px; display: grid; gap: 13px; }
.contact-assurance span {
  position: relative;
  padding-left: 22px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}
.contact-assurance span::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #b9f45f;
  font-weight: 900;
}
.contact-form { padding: 54px 54px 44px; display: grid; align-content: center; gap: 18px; }
.contact-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-field { display: grid; gap: 8px; }
.contact-field > span { font-size: 13px; font-weight: 800; }
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(7,17,15,.16);
  border-radius: 12px;
  outline: none;
  background: white;
  color: #102019;
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-field input,
.contact-field select { min-height: 48px; padding: 0 14px; }
.contact-field textarea { min-height: 125px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #82b833;
  box-shadow: 0 0 0 4px rgba(185,244,95,.22);
}
.contact-field small { justify-self: end; color: #7d8982; font-size: 11px; }
.contact-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: #68766f;
  font-size: 12px;
  line-height: 1.5;
}
.contact-consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #75a92d; }
.contact-consent a { color: #395425; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.contact-feedback { min-height: 19px; color: #5e6e65; font-size: 13px; }
.contact-feedback.is-error { color: #a52f2f; }
.contact-submit {
  width: 100%;
  min-height: 54px;
  padding: 10px 11px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 999px;
  background: #07110f;
  color: white;
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.contact-submit:hover { transform: translateY(-1px); }
.contact-submit:disabled { cursor: wait; opacity: .62; transform: none; }
.contact-submit-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b9f45f;
  color: #07110f;
}
.contact-honeypot {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.contact-success {
  grid-column: 2;
  align-self: center;
  padding: 60px;
  text-align: center;
}
.contact-success-visual {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding: 48px 42px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7,17,15,.17) 5%, rgba(7,17,15,.9) 100%),
    url("/assets/contact-success-bg.webp") center / cover no-repeat;
  color: white;
}
.contact-success-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(185,244,95,.16), transparent 38%),
    rgba(7,17,15,.08);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.contact-success-visual > div {
  position: relative;
  z-index: 1;
}
.contact-success-visual span {
  display: inline-block;
  margin-bottom: 16px;
  color: #b9f45f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.contact-success-visual h3 {
  margin: 0;
  font-size: 43px;
  line-height: 1;
  letter-spacing: -.05em;
}
.contact-success-visual p {
  margin: 18px 0 0;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  line-height: 1.6;
}
.contact-success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b9f45f;
  color: #07110f;
  font-size: 25px;
  font-weight: 900;
}
.contact-success h3 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.contact-success p { max-width: 430px; margin: 15px auto 26px; color: #68766f; line-height: 1.6; }
.contact-success button {
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: #07110f;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 760px) {
  .contact-dialog { width: calc(100vw - 22px); max-height: calc(100vh - 22px); border-radius: 20px; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-intro { padding: 52px 28px 34px; }
  .contact-intro h2 { max-width: 420px; font-size: 42px; }
  .contact-intro > p:not(.contact-kicker) { margin-top: 18px; }
  .contact-assurance { display: none; }
  .contact-form { padding: 30px 24px 28px; }
  .contact-field-row { grid-template-columns: 1fr; }
  .contact-success-visual {
    grid-column: 1;
    min-height: 235px;
    padding: 32px 26px;
    background-position: center 64%;
  }
  .contact-success-visual h3 { font-size: 36px; }
  .contact-success-visual p { max-width: 420px; margin-top: 12px; }
  .contact-success { grid-column: 1; padding: 48px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit,
  .contact-field input,
  .contact-field select,
  .contact-field textarea { transition: none; }
}

.privacy-dialog {
  width: min(880px, calc(100vw - 40px));
  max-height: min(880px, calc(100vh - 40px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #fbfaf6;
  color: #102019;
  box-shadow: 0 45px 120px rgba(0,0,0,.46);
}
.privacy-dialog::backdrop {
  background: rgba(7,17,15,.74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.privacy-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(880px, calc(100vh - 40px));
}
.privacy-header {
  position: relative;
  padding: 38px 78px 30px 42px;
  background:
    radial-gradient(circle at 86% 16%, rgba(185,244,95,.2), transparent 30%),
    #07110f;
  color: white;
}
.privacy-kicker {
  margin: 0 0 10px;
  color: #b9f45f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.privacy-header h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -.05em;
}
.privacy-header > div > p:last-child {
  margin: 13px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 12px;
}
.privacy-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.privacy-content {
  padding: 30px 42px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #91bf4b transparent;
}
.privacy-draft-notice {
  margin-bottom: 14px;
  padding: 17px 19px;
  border: 1px solid rgba(130,184,51,.28);
  border-radius: 14px;
  background: rgba(185,244,95,.13);
  color: #526159;
  font-size: 13px;
  line-height: 1.55;
}
.privacy-draft-notice strong { color: #102019; }
.privacy-content section {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(7,17,15,.1);
}
.privacy-content section:last-child { border-bottom: 0; }
.privacy-number {
  padding-top: 3px;
  color: #75a92d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.privacy-content h3 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -.02em;
}
.privacy-content p {
  margin: 7px 0 0;
  color: #647169;
  font-size: 14px;
  line-height: 1.65;
}
.privacy-content a {
  color: #395425;
  font-weight: 800;
  text-underline-offset: 2px;
}
.privacy-footer {
  padding: 18px 42px 22px;
  border-top: 1px solid rgba(7,17,15,.1);
  background: #fbfaf6;
}
.privacy-footer button {
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: #b9f45f;
  color: #07110f;
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 760px) {
  .privacy-dialog {
    width: calc(100vw - 22px);
    max-height: calc(100vh - 22px);
    border-radius: 20px;
  }
  .privacy-panel { max-height: calc(100vh - 22px); }
  .privacy-header { padding: 34px 64px 26px 24px; }
  .privacy-header h2 { font-size: 38px; }
  .privacy-close { top: 16px; right: 16px; }
  .privacy-content { padding: 22px 24px 12px; }
  .privacy-content section { grid-template-columns: 30px 1fr; gap: 8px; }
  .privacy-footer { padding: 15px 24px 19px; }
  .privacy-footer button { width: 100%; }
}
