/* CONTACT page: shared dimensions and typography come from site-components.css. */
body.page-contact{overflow-x:clip}

/* CONTACT owns only the full-width image composition; the canonical HERO owns its height and type scale. */
body.page-contact .detail-hero-grid{isolation:isolate}
body.page-contact .detail-hero-copy{z-index:2;grid-column:1;width:auto;background:transparent}
body.page-contact .detail-hero-media{position:absolute;z-index:0;inset:0;width:100%;height:100%;grid-column:2;grid-row:1}
body.page-contact .detail-hero-media::before{display:none;content:none;background:none}
body.page-contact .detail-hero-media img{object-fit:cover;object-position:right center}
.contact-hero-keep{white-space:nowrap}
body.page-contact #contact-form{scroll-margin-top:128px}

@media (min-width:821px){
  body.page-contact .detail-hero--contact{
    --contact-hero-boundary-shift:60px;
    --contact-hero-boundary-fade-width:60px;
  }
  body.page-contact .detail-hero--contact::before{
    width:calc(var(--hero-copy-width) - var(--contact-hero-boundary-shift));
    background:linear-gradient(
      90deg,
      #fcfcfa 0,
      #fcfcfa calc(100% - var(--contact-hero-boundary-fade-width)),
      rgba(252,252,250,.82) calc(100% - 45px),
      rgba(252,252,250,.48) calc(100% - 30px),
      rgba(252,252,250,.18) calc(100% - 15px),
      rgba(252,252,250,0) 100%
    );
  }
}

.contact-main-section{
  position:relative;
  overflow:hidden;
  padding:92px 0 104px;
  border-top:1px solid #edf2ef;
  background:
    radial-gradient(circle at 91% 8%,rgba(112,173,189,.07),transparent 28%),
    linear-gradient(145deg,#f8faf8 0%,#f4f8f7 52%,#f6f9fa 100%);
}
.contact-form-shell{display:grid;width:min(1240px,calc(100% - 48px));grid-template-columns:minmax(430px,.72fr) minmax(0,1fr);gap:clamp(40px,4vw,56px);align-items:start}
.contact-form-heading{max-width:none;margin:0}
.contact-form-heading .section-kicker{margin-bottom:13px}
.contact-form-heading h2{
  margin:0;
  color:var(--ink);
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(34px,3vw,48px);
  font-weight:500;
  line-height:1.48;
  letter-spacing:.02em;
  word-break:keep-all;
  overflow-wrap:normal;
  text-wrap:balance;
}
.contact-intro-copy{margin:13px 0 0;color:#5f7276;font-size:15px;font-weight:500;line-height:1.9;letter-spacing:.01em;white-space:nowrap}
.contact-response-note{
  display:flex;
  width:fit-content;
  max-width:100%;
  align-items:flex-start;
  gap:12px;
  margin-top:20px;
  padding:12px 16px 12px 14px;
  border-left:2px solid #72a990;
  color:#607276;
  background:rgba(255,255,255,.56);
}
.contact-response-note svg{width:18px;height:18px;flex:0 0 auto;margin-top:4px;fill:none;stroke:#4d8c77;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.contact-response-copy{min-width:0}
.contact-response-copy p{margin:0;font-size:14px;font-weight:500;line-height:1.85;letter-spacing:0;white-space:nowrap}
.contact-response-copy p+p{margin-top:1px}
.response-keep{display:inline-block;white-space:nowrap}

.contact-form-panel{
  width:min(100%,680px);
  justify-self:end;
  padding:44px clamp(30px,4vw,52px) 38px;
  border:1px solid #d9e3df;
  border-radius:10px;
  background:rgba(255,255,253,.96);
  box-shadow:0 12px 34px rgba(39,69,62,.045);
}
.contact-form-grid{display:grid;grid-template-columns:1fr;gap:25px}
.form-field{min-width:0}
.form-field-wide{margin-top:25px}
.field-label{display:flex;align-items:center;gap:9px;margin:0 0 10px;color:#31484d;font-size:14px;font-weight:700;line-height:1.6}
.field-badge{display:inline-flex;min-height:21px;align-items:center;justify-content:center;padding:2px 8px;border:1px solid transparent;border-radius:3px;font-size:11px;font-weight:700;line-height:1.35;letter-spacing:.04em;white-space:nowrap}
.required-badge{border-color:#c5ddd2;color:#34745e;background:#edf6f1}
.optional-badge{border-color:#d9e2df;color:#71807c;background:#f6f8f7}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea{
  width:100%;
  border:1px solid #bdccc7;
  border-radius:6px;
  color:var(--text);
  background:#fff;
  outline:0;
  transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select{height:56px;padding:0 16px}
.contact-form select{padding-right:42px}
.contact-form textarea{min-height:178px;padding:14px 15px;line-height:1.75;resize:vertical}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:#7a898d;opacity:1}
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible{border-color:#589782;box-shadow:0 0 0 3px rgba(75,155,114,.13)}
.contact-form :is(input,select,textarea)[aria-invalid="true"]{border-color:#b65f5f;background:#fffafa;box-shadow:0 0 0 3px rgba(182,95,95,.08)}
.field-error{margin:6px 0 0;color:#9c4444;font-size:12px;font-weight:600;line-height:1.65}
.field-error:empty{display:none}
.contact-consent{margin-top:27px;padding:19px 21px;border:1px solid #e2e9e6;border-radius:7px;background:#f6f9f7}
.privacy-guidance{margin:0 0 12px;color:#607479;font-size:13px;line-height:1.8}
.checkbox{display:flex;align-items:flex-start;gap:11px;color:#43575b;font-size:14px;line-height:1.75}
.checkbox input{width:18px;height:18px;flex:0 0 auto;margin:4px 0 0;accent-color:var(--green)}
.checkbox a{color:#34745e;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.checkbox .field-badge{margin-left:5px;vertical-align:1px}
.contact-submit{width:100%;min-height:54px;margin-top:27px}
.contact-submit:disabled{cursor:wait;opacity:.62;transform:none;box-shadow:none}
.contact-form[aria-busy="true"]{cursor:progress}
.form-status{margin:18px 0 0;padding:13px 15px;border-left:2px solid #5b9c7e;color:#326f5b;background:#f0f7f3;font-size:14px;font-weight:700;line-height:1.75}
.form-status:empty{display:none}
.form-status:focus-visible{outline:2px solid #2386a0;outline-offset:3px}
.reveal-target{opacity:1;translate:0 0;transition:opacity .78s ease,translate .78s cubic-bezier(.2,.65,.25,1)}
.motion-ready .reveal-target:not(.is-revealed){opacity:0;translate:0 22px}
.motion-ready .detail-hero :is(.breadcrumb,.detail-hero-meta,h1,.detail-hero-description,.detail-hero-button){opacity:0;translate:0 22px;transition:opacity .78s ease,translate .78s cubic-bezier(.2,.65,.25,1)}
.motion-ready .detail-hero.is-hero-ready :is(.breadcrumb,.detail-hero-meta,h1,.detail-hero-description,.detail-hero-button){opacity:1;translate:0 0}
.motion-ready .detail-hero.is-hero-ready .detail-hero-meta{transition-delay:.08s}
.motion-ready .detail-hero.is-hero-ready h1{transition-delay:.16s}
.motion-ready .detail-hero.is-hero-ready .detail-hero-description{transition-delay:.27s}
.motion-ready .detail-hero.is-hero-ready .detail-hero-button{transition-delay:.36s}

@media (max-width:1100px){
  body.page-contact #contact-form{scroll-margin-top:350px}
  .contact-main-section{padding:82px 0 96px}
  .contact-form-shell{width:min(760px,calc(100% - 48px));grid-template-columns:1fr;gap:36px}
  .contact-intro-copy{white-space:normal;line-break:strict;text-wrap:pretty;word-break:normal}
  .contact-response-copy p{white-space:normal;line-break:strict;text-wrap:pretty;word-break:normal}
  .contact-form-panel{width:100%;justify-self:stretch}
}

@media (max-width:820px){
  body.page-contact .detail-hero-copy{width:auto;background:#fcfcfa}
  body.page-contact .detail-hero-media{position:relative;inset:auto;height:auto;min-height:0;grid-column:1;grid-row:1;aspect-ratio:16/9}
  body.page-contact .detail-hero-media img{object-position:right center}
  .contact-main-section{padding:76px 0 88px}
}

@media (max-width:680px){
  body.page-contact #contact-form{scroll-margin-top:380px}
  body.page-contact .detail-hero-copy .contact-hero-lead{width:calc(100% + 20px);max-width:none;font-size:12px;font-feature-settings:"palt" 1;letter-spacing:-.06em;white-space:nowrap}
  body.page-contact .detail-hero-media{aspect-ratio:3/2}
  body.page-contact .detail-hero-button{width:fit-content;min-height:49px;padding:11px 22px;gap:11px;font-size:13.5px}
  .contact-main-section{padding:64px 0 72px}
  .contact-form-shell{width:calc(100% - 32px)}
  .contact-form-heading h2{font-size:clamp(31px,8.3vw,38px)}
  .contact-response-note{padding:12px 13px}
  .contact-form-panel{padding:30px 20px 28px}
  .contact-form-grid{grid-template-columns:1fr;gap:22px}
  .form-field-wide{margin-top:22px}
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form select{height:54px}
  .contact-form textarea{min-height:170px}
  .contact-consent{margin-top:24px;padding:17px 16px}
  .privacy-guidance{font-size:14px;line-height:1.85;letter-spacing:-.035em;text-wrap:pretty}
  .contact-submit{min-height:52px;margin-top:24px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal-target,
  .motion-ready .reveal-target:not(.is-revealed),
  .motion-ready .detail-hero :is(.breadcrumb,.detail-hero-meta,h1,.detail-hero-description,.detail-hero-button),
  .contact-form input,
  .contact-form select,
  .contact-form textarea{opacity:1;translate:0 0;transition:none}
}
