/* FORM-01: simple, optional OEM detail sections. Keep this page scoped. */
.ftk-page-oem-form {
  --oem-bg: #f6efe6;
  --oem-ink: #2f221b;
  --oem-muted: #6a5748;
  --oem-accent: #8a542d;
  --oem-line: #d8c7b4;
  background: var(--oem-bg) !important;
}

.ftk-page-oem-form .oemx-modern {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px);
}

.ftk-page-oem-form .oemx-header--wide {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.ftk-page-oem-form .oemx-header h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.2;
}

.ftk-page-oem-form .oemx-header-note,
.ftk-page-oem-form .oemx-detail-note,
.ftk-page-oem-form .oemx-contact > p,
.ftk-page-oem-form .oemx-form-embed .ftk-form-helper {
  color: var(--oem-muted);
  font-size: 16px;
  line-height: 1.8;
}

.ftk-page-oem-form .oemx-detail-intro {
  color: var(--oem-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.ftk-page-oem-form .oemx-detail-group {
  border-bottom: 1px solid var(--oem-line);
  border-top: 1px solid var(--oem-line);
  margin-top: 32px;
  padding: 0 4px;
}

.ftk-page-oem-form .oemx-detail-group > summary {
  color: var(--oem-ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  min-height: 52px;
  padding: 10px 0;
}

.ftk-page-oem-form .oemx-detail-group > summary:focus-visible {
  outline: 3px solid #bd7d40;
  outline-offset: 3px;
}

.ftk-page-oem-form .oemx-detail-group[open] > summary {
  color: var(--oem-accent);
}

.ftk-page-oem-form .oemx-detail-note {
  margin: 6px 0 20px;
}

.ftk-page-oem-form .oemx-layout,
.ftk-page-oem-form .oemx-content {
  display: block !important;
}

.ftk-page-oem-form .oemx-rail {
  display: none !important;
}

.ftk-page-oem-form .oemx-question {
  border-top: 1px solid var(--oem-line);
  margin: 0;
  padding: 0;
}

.ftk-page-oem-form .oemx-question:last-of-type {
  border-bottom: 1px solid var(--oem-line);
}

.ftk-page-oem-form .oemx-question summary {
  align-items: center;
  color: var(--oem-ink);
  cursor: pointer;
  display: flex;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  min-height: 52px;
  padding: 10px 4px;
}

.ftk-page-oem-form .oemx-question summary:focus-visible,
.ftk-page-oem-form .oemx-ai-preference label:focus-within,
.ftk-page-oem-form .oemx-form-unavailable a:focus-visible {
  outline: 3px solid #bd7d40;
  outline-offset: 3px;
}

.ftk-page-oem-form .oemx-question[open] summary {
  color: var(--oem-accent);
}

.ftk-page-oem-form .oemx-question > .oemx-choices,
.ftk-page-oem-form .oemx-question > textarea[data-oem-free-text] {
  margin-left: 20px;
  margin-right: 4px;
}

.ftk-page-oem-form .oemx-question > .oemx-choices {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 12px;
}

.ftk-page-oem-form .oemx-question .oemx-choices label,
.ftk-page-oem-form .oemx-ai-preference .oemx-choices label {
  align-items: center;
  background: transparent;
  border: 1px solid var(--oem-line);
  border-radius: 2px;
  box-shadow: none;
  color: var(--oem-ink);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 400;
  gap: 10px;
  line-height: 1.5;
  min-height: 48px;
  padding: 10px 12px;
}

.ftk-page-oem-form .oemx-question .oemx-choices label:has(input:checked),
.ftk-page-oem-form .oemx-ai-preference .oemx-choices label:has(input:checked) {
  background: #ead9c7;
  border-color: var(--oem-accent);
  color: var(--oem-ink);
}

.ftk-page-oem-form .oemx-question textarea[data-oem-free-text] {
  box-sizing: border-box;
  display: block;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 96px;
  padding: 10px 12px;
  width: calc(100% - 24px);
}

.ftk-page-oem-form .oemx-question textarea[data-oem-free-text][hidden] {
  display: none !important;
}

.ftk-page-oem-form .oemx-question textarea[data-oem-free-text]:focus,
.ftk-page-oem-form .oemx-form-embed input:focus,
.ftk-page-oem-form .oemx-form-embed textarea:focus {
  border-color: var(--oem-accent);
  box-shadow: 0 0 0 3px rgba(138, 84, 45, 0.2);
  outline: none;
}

.ftk-page-oem-form .oemx-ai-preference {
  border-bottom: 1px solid var(--oem-line);
  border-top: 1px solid var(--oem-line);
  margin: 28px 0 0;
  padding: 24px 4px;
}

.ftk-page-oem-form .oemx-ai-preference h2,
.ftk-page-oem-form .oemx-contact h2 {
  color: var(--oem-ink);
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.ftk-page-oem-form .oemx-ai-preference p {
  color: var(--oem-muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 8px;
}

.ftk-page-oem-form .oemx-ai-preference .oemx-choices {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.ftk-page-oem-form .oemx-confirmation {
  border-bottom: 1px solid var(--oem-line);
  border-top: 1px solid var(--oem-line);
  margin: 28px 0 0;
  padding: 0 4px;
}

.ftk-page-oem-form .oemx-confirmation > summary {
  color: var(--oem-ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  min-height: 52px;
  padding: 10px 0;
}

.ftk-page-oem-form .oemx-confirmation > summary:focus-visible {
  outline: 3px solid #bd7d40;
  outline-offset: 3px;
}

.ftk-page-oem-form .oemx-confirmation > p {
  color: var(--oem-muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 20px;
  white-space: pre-wrap;
}

.ftk-page-oem-form .oemx-contact {
  border-top: 0;
  padding: 32px 4px 0;
}

.ftk-page-oem-form .oemx-form-embed .wpforms-field-label {
  font-size: 16px;
}

.ftk-page-oem-form .oemx-form-embed input:not([type='radio']):not([type='checkbox']),
.ftk-page-oem-form .oemx-form-embed textarea {
  border-radius: 2px;
  font-size: 16px;
  min-height: 48px;
}

.ftk-page-oem-form .oemx-form-embed textarea {
  min-height: 128px;
}

.ftk-page-oem-form div.wpforms-container-full .wpforms-form button[type='submit'],
.ftk-page-oem-form div.wpforms-container-full .wpforms-form input[type='submit'] {
  background: #6c3f20;
  border-radius: 2px;
  font-size: 16px;
  min-height: 52px;
}

.ftk-page-oem-form div.wpforms-container-full .wpforms-form button[type='submit']:hover,
.ftk-page-oem-form div.wpforms-container-full .wpforms-form button[type='submit']:focus-visible {
  background: #533019;
}

.ftk-page-oem-form .oemx-form-unavailable {
  border: 1px solid var(--oem-line);
  color: var(--oem-ink);
  padding: 18px;
}

.ftk-page-oem-form .oemx-form-unavailable p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 8px;
}

.ftk-page-oem-form .oemx-form-unavailable p:last-child {
  margin-bottom: 0;
}

.ftk-page-oem-form .oemx-form-unavailable a {
  color: var(--oem-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .ftk-page-oem-form .oemx-header h1 span {
    display: block;
  }

  .ftk-page-oem-form .oemx-question > .oemx-choices {
    grid-template-columns: 1fr;
  }

  .ftk-page-oem-form .oemx-question > .oemx-choices,
  .ftk-page-oem-form .oemx-question > textarea[data-oem-free-text] {
    margin-left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ftk-page-oem-form * {
    scroll-behavior: auto;
    transition: none !important;
  }
}
