/* Cmajor Works v12 — refined site-contained inquiry form */
.contact-form-shell {
  display: grid;
  grid-template-columns: minmax(275px, max-content) minmax(0, 880px);
  justify-content: space-between;
  gap: clamp(58px, 7vw, 118px);
  padding: clamp(82px, 9vw, 138px) clamp(24px, 6vw, 92px) clamp(96px, 10vw, 152px);
  background:
    radial-gradient(circle at 8% 9%, rgba(52, 88, 230, .055), transparent 25%),
    #f6f5f1;
  border-bottom: 1px solid #d5d2ca;
}

.contact-form-intro {
  position: sticky;
  top: 125px;
  align-self: start;
  max-width: 350px;
  padding-right: clamp(22px, 3vw, 48px);
  border-right: 1px solid #d3d0c7;
}

.contact-form-intro h2 {
  margin-top: 18px;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 490;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.contact-form-intro > p:not(.section-kicker) {
  max-width: 25em;
  margin-top: 24px;
  color: #66645f;
  font-size: 13px;
  line-height: 1.9;
  text-wrap: pretty;
}

.contact-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 38px;
  padding: 13px 0;
  border-top: 1px solid #d3d0c7;
  border-bottom: 1px solid #d3d0c7;
  color: #9a9892;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
}

.contact-flow i {
  width: 28px;
  height: 1px;
  background: #ccc9c0;
}

.is-form .flow-form,
.is-confirm .flow-confirm,
.is-done .flow-done {
  color: #111;
}

.contact-form-main,
.inquiry-form {
  min-width: 0;
}

.contact-form-main {
  width: 100%;
  max-width: 880px;
}

.inquiry-form fieldset {
  margin: 0 0 64px;
  padding: clamp(24px, 3vw, 38px);
  background: rgba(255, 255, 255, .44);
  border: 1px solid #ddd9d0;
}

.inquiry-form legend {
  display: flex;
  align-items: baseline;
  gap: 17px;
  width: calc(100% + clamp(48px, 6vw, 76px));
  margin-left: clamp(-38px, -3vw, -24px);
  margin-bottom: 30px;
  padding: 0 clamp(24px, 3vw, 38px) 17px;
  border-bottom: 1px solid #bcb9b1;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 520;
  letter-spacing: -.035em;
}

.inquiry-form legend span {
  color: #8a8882;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: .16em;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 22px;
}

.field {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.field-full { grid-column: 1 / -1; }

.field > span {
  color: #242424;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.55;
}

.required-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 7px;
  padding: 2px 6px;
  color: #fff;
  background: #e73f55;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  vertical-align: middle;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 15px;
  color: #151515;
  background: rgba(255,255,255,.9);
  border: 1px solid #c9c6bd;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.75;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(24,24,24,.07);
}

.field input::placeholder,
.field textarea::placeholder { color: #aaa7a0; }

.field small {
  color: #87847d;
  font-size: 10px;
  line-height: 1.6;
}

.contact-notice {
  margin-top: -10px;
  padding: clamp(25px, 3vw, 38px);
  background: #eae8e1;
  border: 1px solid #d1cec5;
  border-top: 3px solid #171717;
}

.contact-notice h3 {
  font-size: 17px;
  font-weight: 650;
}

.contact-notice ul {
  margin: 18px 0 26px;
  padding-left: 1.2em;
  color: #625f59;
  font-size: 11px;
  line-height: 1.9;
  list-style: disc;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 13px;
  color: #282828;
  font-size: 12px;
  line-height: 1.65;
  cursor: pointer;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: #111;
}

.form-submit,
.form-back {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  padding: 0 25px;
  border: 1px solid #111;
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}

.form-submit span,
.form-back span {
  flex: 0 0 auto;
}

.desktop-nav .is-current a::after {
  transform: scaleX(1);
}

.form-submit {
  width: min(100%, 430px);
  margin-top: 38px;
  color: #fff;
  background: #111;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: #3458e6;
  border-color: #3458e6;
  transform: translateY(-2px);
  outline: none;
}

.form-back {
  width: 100%;
  color: #111;
  background: transparent;
}

.form-back:hover,
.form-back:focus-visible {
  color: #fff;
  background: #5a5955;
  outline: none;
}

.contact-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-errors {
  margin-bottom: 34px;
  padding: 22px 24px;
  color: #851a2a;
  background: #fff0f2;
  border-left: 4px solid #e73f55;
  font-size: 12px;
  line-height: 1.8;
}

.form-errors h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.form-errors ul {
  padding-left: 1.2em;
  list-style: disc;
}

.confirm-head span,
.contact-complete > span {
  color: #3458e6;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: .16em;
}

.confirm-head h2,
.contact-complete h2 {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.confirm-head p,
.contact-complete p {
  margin-top: 18px;
  color: #66645f;
  font-size: 13px;
  line-height: 1.9;
}

.confirm-list {
  margin-top: 48px;
  border-top: 1px solid #171717;
}

.confirm-list > div {
  display: grid;
  grid-template-columns: minmax(160px, .42fr) minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid #d7d4cc;
}

.confirm-list dt {
  color: #6e6b65;
  font-size: 11px;
  font-weight: 650;
}

.confirm-list dd {
  overflow-wrap: anywhere;
  color: #1e1e1e;
  font-size: 13px;
  line-height: 1.8;
}

.confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.confirm-actions form { min-width: 0; }
.confirm-actions .form-submit { width: 100%; margin: 0; }

.contact-complete {
  min-height: 410px;
  padding: clamp(38px, 6vw, 80px);
  background: #fff;
  border-top: 4px solid #3458e6;
}

.contact-complete .form-submit {
  text-decoration: none;
}

@media (max-width: 900px) {
  .contact-form-shell {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .contact-form-intro {
    position: static;
    max-width: none;
    padding: 0 0 38px;
    border-right: 0;
    border-bottom: 1px solid #d3d0c7;
  }
}

@media (max-width: 760px) {
  .contact-form-shell { gap: 42px; padding: 66px 20px 92px; }
  .contact-form-intro { padding-bottom: 31px; }
  .contact-form-intro h2 {
    font-size: clamp(29px, 9.25vw, 36px);
    letter-spacing: -.06em;
  }
  .contact-flow { margin-top: 28px; }
  .field-grid { grid-template-columns: 1fr; gap: 23px; }
  .field-full { grid-column: auto; }
  .inquiry-form fieldset { margin-bottom: 42px; padding: 25px 18px 28px; }
  .inquiry-form legend {
    width: calc(100% + 36px);
    margin-left: -18px;
    padding-inline: 18px;
  }
  .inquiry-form legend { font-size: 25px; }
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
  .contact-notice { padding: 24px 20px; }
  .form-submit { width: 100%; }
  .confirm-list > div { grid-template-columns: 1fr; gap: 7px; }
  .confirm-actions { grid-template-columns: 1fr; }
  .contact-complete { min-height: 350px; padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .form-submit,
  .form-back { transition: none; }
}
