/* Contact page: idea brief form. Same tokens as cart/checkout/account. */

body#contact {
  background: var(--tk-paper);
  color: var(--tk-ink);
  font-family: Manrope, Arial, sans-serif;
}

body#contact :is(#header, #wrapper, #footer) {
  box-shadow: none;
}

body#contact :is(#left-column, #right-column) {
  display: none;
}

body#contact #wrapper {
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
}

body#contact #wrapper > .container {
  width: min(1800px, calc(100% - clamp(24px, 4vw, 80px)));
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

body#contact #wrapper > .container > .row {
  margin: 0;
  display: block;
}

body#contact #content-wrapper {
  width: 100%;
  max-width: none;
  padding: 0;
  float: none;
}

body#contact #main {
  padding-bottom: clamp(70px, 8vw, 130px);
}

body#contact #main .page-content {
  margin-bottom: 0;
}

.tk-contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  padding: 0;
  background: transparent;
}

.tk-contact__intro {
  position: sticky;
  top: 24px;
  max-width: 560px;
}

.tk-contact__eyebrow {
  margin: 0 0 18px;
  color: var(--tk-mint-text, #1f6f60);
  font: 700 11px 'Space Mono', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tk-contact__title {
  margin: 0 0 22px;
  color: var(--tk-ink);
  font-size: clamp(40px, 5.2vw, 78px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.07em;
}

.tk-contact__lead {
  margin: 0 0 34px;
  color: var(--tk-muted);
  font-size: 16px;
  line-height: 1.65;
}

.tk-contact__steps {
  margin: 0 0 34px;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--tk-line);
  list-style: none;
}

.tk-contact__steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--tk-line);
}

.tk-contact__step-num {
  grid-row: 1 / span 2;
  color: var(--tk-mint-text, #1f6f60);
  font: 700 12px/1.6 'Space Mono', monospace;
}

.tk-contact__steps strong {
  color: var(--tk-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.tk-contact__steps span:not(.tk-contact__step-num) {
  color: var(--tk-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tk-contact__direct {
  display: grid;
  gap: 4px;
  color: var(--tk-muted);
  font-size: 13px;
}

.tk-contact__direct a {
  color: var(--tk-ink);
  font-size: 17px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.tk-contact__direct a:hover {
  color: var(--tk-mint-text, #1f6f60);
}

/* ---------- Form card ---------- */
.tk-brief {
  padding: clamp(24px, 3.2vw, 48px);
  border: 1px solid var(--tk-line);
  border-radius: var(--tk-radius);
  background: var(--tk-paper);
}

.tk-brief form {
  display: grid;
  gap: 22px;
}

.tk-brief__legend {
  margin: 0;
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-brief__group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.tk-brief__label {
  display: block;
  margin: 0 0 9px;
  padding: 0;
  text-align: left;
  color: var(--tk-ink);
  font: 700 11px/1.35 'Space Mono', monospace;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.tk-brief__hint {
  margin: -3px 0 10px;
  color: var(--tk-muted);
  font-size: 12px;
  line-height: 1.5;
}

.tk-brief__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tk-topic {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.tk-topic input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tk-topic span {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
  border: 1px solid var(--tk-line);
  border-radius: var(--tk-radius-pill);
  background: #fff;
  color: var(--tk-ink);
  font-size: 13px;
  font-weight: 700;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.tk-topic:hover span {
  border-color: var(--tk-ink);
}

.tk-topic input:checked + span {
  border-color: var(--tk-ink);
  background: var(--tk-ink);
  color: var(--tk-paper);
}

.tk-topic input:focus-visible + span {
  outline: 2px solid var(--tk-mint-deep);
  outline-offset: 2px;
}

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

.tk-brief__grid[hidden] {
  display: none;
}

.tk-brief__field {
  min-width: 0;
}

.tk-brief .form-control {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--tk-line);
  border-radius: 12px;
  background: #fff;
  color: var(--tk-ink);
  font: 500 14px Manrope, sans-serif;
  box-shadow: none;
}

.tk-brief select.form-control {
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--tk-muted) 50%), linear-gradient(135deg, var(--tk-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.tk-brief textarea.form-control {
  min-height: 170px;
  padding: 14px 16px;
  line-height: 1.6;
  resize: vertical;
}

.tk-brief .form-control:focus {
  border-color: var(--tk-mint-deep);
  outline: 2px solid color-mix(in srgb, var(--tk-mint) 45%, transparent);
  outline-offset: 1px;
}

.tk-brief__field.-invalid .form-control {
  border-color: #c0392b;
}

.tk-brief__error {
  margin: 7px 0 0;
  color: #c0392b;
  font-size: 12px;
  font-weight: 600;
}

.tk-brief__errors {
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, #c0392b 35%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, #c0392b 8%, transparent);
  color: #c0392b;
  font-size: 13px;
}

.tk-brief__errors ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* File attachment */
.tk-file {
  position: relative;
  display: flex;
  min-height: 52px;
  padding: 6px 16px 6px 6px;
  align-items: center;
  gap: 14px;
  margin: 0;
  border: 1px dashed rgba(17, 19, 17, .3);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.tk-file:hover {
  border-color: var(--tk-ink);
}

.tk-file__input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.tk-file__button {
  display: inline-flex;
  min-height: 40px;
  padding: 0 14px;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--tk-off);
  color: var(--tk-ink);
  font-size: 12px;
  font-weight: 800;
}

.tk-file__button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tk-file__name {
  min-width: 0;
  overflow: hidden;
  color: var(--tk-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-file__name.-chosen {
  color: var(--tk-ink);
  font-weight: 700;
}

.tk-file__input:focus-visible ~ .tk-file__button {
  outline: 2px solid var(--tk-mint-deep);
  outline-offset: 2px;
}

.tk-brief__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding-top: 6px;
}

.tk-brief__submit {
  min-height: 56px;
  padding: 0 28px;
  font-size: 13px;
  cursor: pointer;
}

.tk-brief__privacy {
  margin: 0;
  flex: 1 1 220px;
  color: var(--tk-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Success */
.tk-brief__success {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(8px, 2vw, 24px) 0;
}

.tk-brief__success-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--tk-mint);
}

.tk-brief__success-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--tk-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tk-brief__success-title {
  margin: 0;
  color: var(--tk-ink);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.05;
}

.tk-brief__success p {
  max-width: 480px;
  margin: 0 0 8px;
  color: var(--tk-muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .tk-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-contact__intro {
    position: static;
    max-width: none;
  }

  .tk-contact__steps {
    margin-bottom: 24px;
  }
}

@media (max-width: 640px) {
  body#contact #wrapper > .container {
    width: calc(100% - 24px);
  }

  .tk-brief {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .tk-brief__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-brief__submit {
    width: 100%;
    justify-content: center;
  }
}
