/* ==========================================================================
   MARK One – Contact / Order pages (same form, same layout). Builds on style.css (tokens, header, footer).
   Fluid layout (not the 1920px scaled design): the form mirrors the WordPress version.
   ========================================================================== */
body.ct-page { --bg: #dfdfdf; background: var(--bg); }

@layer components {
  .ct { background: var(--bg); padding: clamp(104px, 22vw, 150px) var(--pad) clamp(56px, 10vw, 96px); }
  .ct__head { text-align: center; }
  .ct__title { font-size: clamp(28px, 6.6vw, 48px); line-height: 1.1; letter-spacing: -.035em; font-weight: 400; text-wrap: balance; }
  .ct__rule { width: 50px; height: 1px; margin: clamp(16px, 4vw, 24px) auto clamp(14px, 3.4vw, 20px); background: #000; border: 0; }
  .ct__lead { font-size: clamp(15px, 4vw, 19px); line-height: 1.35; letter-spacing: -.02em; color: #000; max-width: 42em; margin: 0 auto; text-wrap: balance; }

  .form-container { width: min(1430px, 100%); margin: clamp(40px, 9vw, 92px) auto 0; display: grid; gap: clamp(20px, 4vw, 30px); }
  .form-row { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 4vw, 30px) 20px; }
  .form-group { display: grid; gap: 8px; align-content: start; min-width: 0; }
  .form-group label { font-size: 16px; line-height: 1.2; color: #000; }

  .form-container input[type="text"], .form-container input[type="email"], .form-container input[type="tel"], .form-container textarea {
    width: 100%; font: inherit; font-size: 16px; letter-spacing: -.01em; color: #000; background: #e7e7e7;
    border: 1px solid #111; border-radius: 16px; padding: 0 30px; height: 50px; appearance: none; -webkit-appearance: none;
  }
  .form-container textarea { height: auto; min-height: 176px; padding: 20px 30px; resize: vertical; line-height: 1.35; }
  .form-container ::placeholder { color: #000; opacity: 1; }
  .form-container input:focus-visible, .form-container textarea:focus-visible { outline: 2px solid #1a73ff; outline-offset: 2px; }
  .form-container :is(input, textarea):user-invalid { border-color: #c4161c; }

  .form-accept { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.4; color: #6f6f6f; padding: 6px 0 0 8px; }
  .form-accept a { color: #000; }
  .form-accept a:hover { text-decoration: underline; }
  .form-accept input { width: 20px; height: 20px; margin: 0; border-radius: 4px; accent-color: #333; }

  .form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
  .form-submit button { font: inherit; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #6f6f6f; padding: 11px 72px; border-radius: 0; transition: background .2s; }
  .form-submit button:hover { background: #4a4a4a; }
  .form-submit button:disabled { opacity: .6; cursor: progress; }
  .form-status { font-size: 15px; line-height: 1.3; margin: 0; }
  .form-status[data-state="ok"] { color: #0b6b2f; }
  .form-status[data-state="err"] { color: #c4161c; }
  .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  .ct-page .foot { padding-top: 0; }
}

@layer desktop {
  @media (min-width: 700px) {
    .form-row { grid-template-columns: 1fr 1fr; }
    .form-row.full-width { grid-template-columns: 1fr; }
    .form-accept { padding-left: 16px; }
  }
}
