/* Cmajor Works v11 — site-contained inquiry form */
.contact-form-shell {
  display: grid;
  grid-template-columns: minmax(230px, .48fr) minmax(0, 1.52fr);
  gap: clamp(54px, 8vw, 130px);
  padding: clamp(80px, 9vw, 140px) clamp(24px, 6vw, 92px);
  background: #f6f5f1;
}

.contact-form-intro {
  position: sticky;
  top: 125px;
  align-self: start;
}

.contact-form-intro h2 {
  margin-top: 18px;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 490;
  letter-spacing: -.055em;
}

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

.contact-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  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;
}

.inquiry-form fieldset {
  margin: 0 0 64px;
  padding: 0;
  border: 0;
}

.inquiry-form legend {
  display: flex;
  align-items: baseline;
  gap: 17px;
  width: 100%;
  margin-bottom: 28px;
  padding: 0 0 16px;
  border-bottom: 1px solid #171717;
  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;
}

.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,.72);
  border: 1px solid #d1cec5;
  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: -8px;
  padding: clamp(25px, 3vw, 38px);
  background: #eae8e1;
  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 {
  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;
}

.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; }
}

@media (max-width: 760px) {
  .contact-form-shell { padding: 70px 20px 90px; }
  .contact-form-intro h2 { font-size: 36px; }
  .contact-flow { margin-top: 28px; }
  .field-grid { grid-template-columns: 1fr; gap: 23px; }
  .field-full { grid-column: auto; }
  .inquiry-form fieldset { margin-bottom: 52px; }
  .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; }
}
