#contact-dialog {
  width: min(700px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px);
  padding: 0; border: 1px solid #e1d5c3; border-radius: 24px;
  background: var(--cream); color: var(--ink); box-shadow: 0 32px 120px #0005;
  overscroll-behavior: contain;
}
#contact-dialog::backdrop { background: #1415159e; backdrop-filter: blur(10px); }
.contact-shell { position: relative; overflow: hidden; }
.contact-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 38px 0; }
.contact-header img { width: 140px; height: 26px; }
.contact-header .dialog-close { position: static; width: 44px; height: 44px; border-color: #d4c8b6; }
.contact-header .dialog-close:hover { background: var(--champagne); color: var(--ink); }
.contact-view { padding: 30px 48px 38px; }
.contact-view .eyebrow { color: #765c35; font-size: 10px; letter-spacing: .17em; margin-bottom: 14px; }
.contact-view h2 { font-size: clamp(34px, 4.2vw, 46px); letter-spacing: -.045em; line-height: 1.06; max-width: 520px; }
.contact-view h2:focus { outline: none; }
.contact-intro { color: var(--muted); font-size: 16px; margin-top: 18px; max-width: 460px; }
.contact-symbol { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 28px; border-radius: 20px; background: var(--champagne); box-shadow: inset 0 0 0 1px #dfc8a6; }
.contact-symbol .icon { width: 30px; height: 30px; }
.contact-email { width: 100%; justify-content: space-between; text-align: left; margin-top: 32px; padding: 20px 24px; border-radius: 12px; font-size: 17px; }
.contact-email small { display: block; margin-top: 6px; font-size: 12px; font-weight: 450; opacity: .8; }
.contact-call { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 23px 4px 0; font-size: 14px; }
.contact-call > span:last-child { display: flex; align-items: center; gap: 12px; }
.contact-call .icon { width: 18px; height: 18px; }
.contact-call:hover, .contact-bottom a:hover { color: var(--gold); }
.contact-back { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; margin: -8px 0 24px; font-size: 12px; color: var(--muted); }
.contact-back .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.contact-back:hover { color: var(--ink); }
.contact-fields { display: grid; grid-template-columns: 1.2fr 1fr; gap: 23px 18px; margin-top: 28px; }
.contact-field { min-width: 0; }
.contact-field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 9px; }
.contact-field label > span { font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 4px; }
.contact-field input, .contact-field textarea {
  display: block; width: 100%; border: 1px solid #d6cfc3; border-radius: 10px;
  padding: 16px; background: #fffcf7; color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #817b70; opacity: 1; }
.contact-field input:focus, .contact-field textarea:focus { outline: none; border-color: #9a7a4a; box-shadow: 0 0 0 3px #ead7b975; background: #fffdf9; }
.contact-message { grid-column: 1 / -1; }
.contact-field textarea { resize: vertical; min-height: 148px; max-height: 360px; line-height: 1.5; }
.contact-field [aria-invalid="true"] { border-color: #ac5141; }
.contact-field-error { display: block; color: #994334; font-size: 12px; line-height: 1.5; margin-top: 7px; }
.contact-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; }
.contact-privacy { max-width: 265px; font-size: 11px; line-height: 1.65; color: var(--muted); }
.contact-privacy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.contact-submit { flex-shrink: 0; min-height: 54px; border-radius: 10px; gap: 18px; padding: 16px 21px; }
.contact-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.contact-submit .icon { width: 20px; height: 20px; }
.contact-spinner { display: none; width: 19px; height: 19px; border: 2px solid #f1dfc54d; border-top-color: var(--champagne); border-radius: 50%; animation: contact-spin .8s linear infinite; }
#contact-form[aria-busy="true"] .contact-submit .icon { display: none; }
#contact-form[aria-busy="true"] .contact-spinner { display: block; }
.contact-status { padding: 13px 16px; margin-top: 20px; border: 1px solid #e1c6ad; border-radius: 10px; background: #f4e8db; color: #74452d; font-size: 13px; line-height: 1.55; }
.contact-progress:empty { display: none; }
.contact-progress { margin-top: 12px; color: var(--muted); font-size: 12px; }
.contact-honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px 48px; background: #f0e7d9; border-top: 1px solid #e3d7c5; font-size: 11px; }
.contact-bottom > span, .contact-bottom a { display: inline-flex; align-items: center; gap: 8px; }
.contact-bottom i { width: 5px; height: 5px; background: #947648; border-radius: 50%; }
.contact-bottom .icon { width: 15px; height: 15px; }
.contact-success { padding-top: 44px; padding-bottom: 48px; }
.contact-success .button { margin-top: 32px; border-radius: 10px; min-width: 180px; justify-content: space-between; }
.contact-success-mark { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 28px; border-radius: 20px; color: #765c35; background: var(--champagne); box-shadow: inset 0 0 0 1px #dfc8a6; }
.contact-success-mark svg { grid-area: 1 / 1; display: block; }
.contact-paper-plane { width: 44px; height: 44px; opacity: 0; }
.contact-flight-check { width: 32px; height: 32px; }
.contact-success-mark.is-launching .contact-paper-plane { opacity: 1; }
.contact-success-mark.is-launching .contact-flight-check { opacity: 0; }
.contact-success-mark.is-flying .contact-paper-plane { opacity: 0; }
.contact-success-mark.is-flying .contact-flight-check { opacity: 1; transition: opacity .3s .18s; }
/* A manual popover keeps the decorative flight above the modal's clipping. */
.contact-flight-layer { display: none; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: transparent; color: #765c35; pointer-events: none; }
.contact-flight-layer:popover-open { display: block; }
.contact-flight-layer::backdrop { background: transparent; pointer-events: none; }
.contact-flight-guide { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.contact-flight-plane { position: absolute; top: 0; left: 0; width: 44px; height: 44px; overflow: visible; transform-origin: center; filter: drop-shadow(0 2px 3px #14151524); will-change: transform; }
@keyframes contact-spin { to { transform: rotate(360deg); } }
@keyframes contact-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes contact-success-enter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .contact-view:not([hidden]) { animation: contact-enter .24s ease-out both; }
  .contact-success:not([hidden]) { animation-name: contact-success-enter; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-field input, .contact-field textarea, .contact-flight-check { transition: none !important; }
  .contact-spinner { animation: none; }
  .contact-flight-layer:popover-open, .contact-paper-plane { display: none; }
  .contact-success-mark .contact-flight-check { opacity: 1; }
}
@media (max-width: 580px) {
  #contact-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
  .contact-header { padding: 18px 20px 0; }
  .contact-header img { width: 122px; }
  .contact-view { padding: 24px 24px 28px; }
  .contact-view h2 { font-size: 36px; }
  .contact-view .eyebrow { font-size: 9px; }
  .contact-intro { font-size: 15px; margin-top: 14px; }
  .contact-symbol { margin-bottom: 23px; width: 56px; height: 56px; border-radius: 16px; }
  .contact-back { margin-bottom: 20px; }
  .contact-fields { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .contact-field input, .contact-field textarea { padding: 14px; }
  .contact-field textarea { min-height: 132px; }
  .contact-submit-row { flex-direction: column-reverse; align-items: stretch; gap: 16px; margin-top: 22px; }
  .contact-submit { justify-content: space-between; }
  .contact-privacy { max-width: none; }
  .contact-bottom { padding: 18px 24px; font-size: 10px; }
  .contact-call { font-size: 12px; gap: 6px; }
  .contact-call > span:last-child { gap: 7px; }
  .contact-email { margin-top: 26px; }
}
