/* CONTACT — letter first, inquiry form below. */
.contact-section {
  background: #f5f6f7;
  color: #1b2731;
  padding-block: 110px 120px;
}

.contact-section-heading {
  margin-bottom: 62px;
}

.contact-section-heading .eyebrow {
  margin-bottom: 18px;
}

.contact-section-heading h2 {
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 550;
  letter-spacing: -.055em;
}

.contact-letter,
.contact-inquiry {
  width: min(100%, 920px);
  margin-inline: auto;
}

.contact-letter {
  padding: 44px 0 48px;
  border-top: 1px solid #aebac3;
  border-bottom: 1px solid #ced6dc;
}

.contact-letter-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.contact-letter-heading h3 {
  font-size: 29px;
  font-weight: 550;
  letter-spacing: -.04em;
}

.contact-letter-heading > span {
  color: #7b8994;
  font-size: 14px;
}

.contact-letter-body {
  max-width: 850px;
  font-size: 18px;
  color: #596772;
  line-height: 1.95;
  letter-spacing: -.025em;
}

.contact-letter-body p + p {
  margin-top: 24px;
}

.contact-letter-body .contact-letter-emphasis {
  padding-block: 8px;
  color: #344b5d;
}

.contact-letter-emphasis strong {
  font-size: 23px;
  font-weight: 550;
  line-height: 1.7;
  display: inline-block;
  margin-bottom: 7px;
}

.contact-letter-signature {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 38px;
}

.contact-letter-signature > span {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.035em;
}

.contact-letter-signature small {
  font-size: 14px;
  color: #7f8c96;
}

.contact-inquiry {
  margin-top: 66px;
}

.contact-inquiry-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 38px;
}

.contact-inquiry-heading .eyebrow {
  margin-bottom: 13px;
  font-size: 12px;
}

.contact-inquiry-heading h3 {
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -.04em;
}

.contact-inquiry-form {
  width: 100%;
}

.contact-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-field {
  display: block;
  min-width: 0;
  margin-bottom: 29px;
}

.contact-field > span:first-child {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #425765;
  margin-bottom: 7px;
}

.contact-field small {
  color: #879aa7;
  font-size: 14px;
  margin-left: 3px;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 1px solid #bac7d0;
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
  font-size: 16px;
  line-height: 1.6;
  color: #263d4e;
  outline-offset: 5px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  font-size: 16px;
  color: #929fa9;
  opacity: 1;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  border-bottom-color: #4c6c83;
}

.contact-field textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-field select {
  appearance: none;
  padding-right: 34px;
  color: #738793;
}

.contact-select-wrap {
  position: relative;
  display: block;
}

.contact-select-wrap::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  right: 12px;
  top: 23px;
  border-right: 1px solid #718b9c;
  border-bottom: 1px solid #718b9c;
  transform: rotate(45deg);
  pointer-events: none;
}

.contact-form-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  margin-top: 37px;
}

.contact-form-bottom > p {
  font-size: 14px;
  line-height: 1.8;
  color: #83949f;
}

.contact-form-bottom .button {
  min-width: 182px;
  min-height: 54px;
  font-size: 16px;
}

.contact-form-status {
  padding: 18px 22px;
  margin-top: 24px;
  border-left: 2px solid #6f8fa5;
  background: #e5edf2;
  color: #4d6a7d;
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 960px) {
  .contact-section { padding-block: 80px 90px; }
  .contact-section-heading { margin-bottom: 45px; }
  .contact-letter { padding-top: 32px; }
  .contact-letter-body { font-size: 17px; }
  .contact-fields-row { gap: 28px; }
}

@media (max-width: 640px) {
  .contact-section { padding-block: 66px 72px; }
  .contact-section-heading { margin-bottom: 34px; }
  .contact-section-heading h2 { font-size: 36px; }
  .contact-letter { padding-block: 27px 34px; }
  .contact-letter-heading { display: block; margin-bottom: 27px; }
  .contact-letter-heading h3 { font-size: 25px; }
  .contact-letter-heading > span { display: block; margin-top: 10px; }
  .contact-letter-body { font-size: 16px; line-height: 1.95; }
  .contact-letter-body p + p { margin-top: 23px; }
  .contact-letter-emphasis strong { font-size: 22px; margin-bottom: 9px; }
  .contact-letter-signature { margin-top: 30px; }
  .contact-letter-signature > span { font-size: 21px; }
  .contact-inquiry { margin-top: 44px; }
  .contact-inquiry-heading { display: block; margin-bottom: 30px; }
  .contact-inquiry-heading h3 { font-size: 28px; }
  .contact-fields-row { grid-template-columns: 1fr; gap: 0; }
  .contact-field { margin-bottom: 25px; }
  .contact-field > span:first-child { font-size: 14px; }
  .contact-field input, .contact-field textarea, .contact-field select { padding-block: 12px; }
  .contact-field textarea { min-height: 150px; }
  .contact-select-wrap::after { top: 20px; }
  .contact-form-bottom { flex-direction: column; align-items: stretch; gap: 23px; margin-top: 30px; }
  .contact-form-bottom .button { width: 100%; min-height: 56px; }
  .contact-form-status { padding: 16px 18px; }
}

/* Signed letter: title + name, autograph signed right beside the name */
.contact-letter-signature { flex-direction: row; align-items: center; justify-content: flex-end; gap: 0; margin-top: 44px; }
.contact-letter-signer { display: flex; align-items: baseline; gap: 12px; }
.contact-letter-signer > span { font-size: 23px; font-weight: 600; letter-spacing: -.035em; }
.contact-letter-autograph { display: block; width: 150px; height: auto; margin: -18px 0 -10px -14px; transform: rotate(-5deg); mix-blend-mode: multiply; pointer-events: none; }
@media (max-width: 640px) {
  .contact-letter-autograph { width: 128px; margin-left: -12px; }
  .contact-letter-signer > span { font-size: 21px; }
}

/* Consent + submission states */
.contact-botcheck { display: none !important; }
.contact-consent { margin-top: 8px; }
.contact-consent-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.6; cursor: pointer; }
.contact-consent-check input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; accent-color: #1d2a36; }
.contact-consent-check small { color: #7f8c96; font-size: 13px; }
.contact-consent-detail { margin: 10px 0 0 28px; font-size: 13.5px; color: #5d6f7c; }
.contact-consent-detail summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.contact-consent-detail dl { margin: 12px 0 0; padding: 16px 18px; background: #eef2f5; border-radius: 4px; display: grid; gap: 8px; line-height: 1.7; }
.contact-consent-detail dl > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
.contact-consent-detail dt { font-weight: 600; color: #3f505c; }
.contact-consent-detail dd { margin: 0; }
.contact-form-bottom .button:disabled { opacity: .6; cursor: progress; }
.contact-form-status.is-error { border-left-color: #b4534a; background: #f6e9e7; color: #8a3b33; }
@media (max-width: 640px) {
  .contact-consent-detail { margin-left: 0; }
  .contact-consent-detail dl > div { grid-template-columns: 1fr; gap: 0; }
}
