.contact-page {
  --muted: #5b6778;
  --gutter: clamp(22px, 4.8vw, 76px);
  -webkit-font-smoothing: antialiased;
}

.contact-page .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #ffffff14;
}

.contact-page .skip-link:focus { z-index: 20; }
.contact-page .header-inner { min-height: 88px; }
.contact-page .brand img { width: 198px; }
.contact-page .main-nav a { font-size: .875rem; }
.contact-page .button { border-radius: 6px; }
.contact-page .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; padding-block: 58px 50px; }
.contact-page .footer-brand img { width: 210px; }
.contact-page .site-footer { font-size: .875rem; }

.contact-main {
  padding-block: clamp(56px, 6vw, 88px) clamp(64px, 7vw, 104px);
  background: linear-gradient(180deg, #faf7f1, #fff);
}

.contact-heading { max-width: 960px; margin-inline: auto; text-align: center; }

.contact-heading h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.contact-heading p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr);
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(36px, 4.5vw, 64px);
}

.contact-details {
  padding: clamp(26px, 3vw, 40px);
  border-radius: 14px;
  color: #fff;
  background: var(--navy);
}

.contact-details dl { display: grid; gap: 27px; margin: 0; }
.contact-details dt { display: flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 650; color: #e8b466; }
.contact-details dd { margin: 8px 0 0; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.65; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-details :focus-visible { outline-color: var(--gold); }

.inquiry-panel {
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid #e5dfd5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px #13294b06;
}

.inquiry-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 28px;
}

.inquiry-heading h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 650; letter-spacing: -.03em; }
.inquiry-heading p { margin: 0; font-size: .8125rem; color: var(--muted); }
.inquiry-heading span, .form-field label span { color: #9b6a25; }

.inquiry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 20px; }
.form-field { min-width: 0; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 600; line-height: 1.4; }

.form-field :is(input:not([type="hidden"]), select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cbd3dd;
  border-radius: 6px;
  color: var(--navy);
  background: #fcfcfb;
  font: inherit;
  font-size: .9375rem;
  line-height: 1.45;
}

.form-field textarea { resize: vertical; }
.form-field :is(input, select, textarea):focus-visible { border-color: #9b6a25; outline: 2px solid #e8b46680; outline-offset: 2px; }
.form-field .model-note { margin: 8px 0 0; overflow-wrap: anywhere; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.inquiry-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-privacy { margin: 24px 0 20px; font-size: .8125rem; color: var(--muted); line-height: 1.7; }
.inquiry-privacy a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.inquiry-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.inquiry-actions button:disabled { opacity: .65; cursor: wait; }
.inquiry-status { margin: 20px 0 0; padding: 14px 16px; border-radius: 6px; background: #f2f5f8; font-size: .9rem; line-height: 1.6; }
.inquiry-status[data-state="error"] { color: #82352c; background: #fff1ed; }
.inquiry-status[data-state="success"] { color: #23633d; background: #eef7ef; }

@media (max-width: 1020px) {
  .contact-page .header-inner { min-height: 72px; }
  .contact-page .brand img { width: 174px; }
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .contact-page .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .contact-details dl, .inquiry-fields { grid-template-columns: minmax(0, 1fr); }
  .contact-heading p { margin-top: 18px; }
  .inquiry-panel { padding: 24px 20px; }
  .inquiry-actions .button { width: 100%; }
}

@media (max-width: 500px) {
  .contact-page .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 42px; }
}
