/* ==========================================================================
   KTS France — form styling
   Scoped to .cform / .jrny-form so nothing else on the site is affected.
   ========================================================================== */

.cform,
.jrny-form {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

/* two columns on desktop, one on mobile */
.cform .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.8rem;
}

@media (max-width: 680px) {
  .cform .row { grid-template-columns: 1fr; }
}

.cform .field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.6rem;
  min-width: 0;
}

.cform label,
.jrny-form label {
  font-family: var(--sans, 'Jost', sans-serif);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7a756d;
  background: none;
  padding: 0;
}

/* the fields themselves: a single hairline, nothing else */
.cform input,
.cform select,
.cform textarea,
.jrny-form input,
.jrny-form textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--sans, 'Jost', sans-serif);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink, #1a1a1a);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line, #e7e3db);
  border-radius: 0;
  padding: .65rem 0;
  transition: border-color .25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.cform select {
  background-image: linear-gradient(45deg, transparent 50%, #7a756d 50%),
                    linear-gradient(135deg, #7a756d 50%, transparent 50%);
  background-position: calc(100% - 13px) calc(50% + 2px),
                       calc(100% - 8px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.8rem;
  cursor: pointer;
}

.cform textarea,
.jrny-form textarea {
  min-height: 130px;
  resize: vertical;
}

.cform input::placeholder,
.cform textarea::placeholder {
  color: #b5afa6;
  font-weight: 300;
}

.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  outline: none;
  border-bottom-color: var(--accent, #0b3d63);
}

.cform input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

/* submit */
.cform .btn,
.jrny-form .btn {
  margin-top: .8rem;
  cursor: pointer;
}

.cform .btn[disabled] {
  opacity: .5;
  cursor: default;
}

/* helper + status text */
.cform .note {
  font-family: var(--sans, 'Jost', sans-serif);
  font-size: .78rem;
  font-weight: 300;
  line-height: 1.75;
  color: #8a857c;
  margin-top: 1.4rem;
  max-width: 60ch;
}

.cform-status {
  font-family: var(--sans, 'Jost', sans-serif);
  font-size: .9rem;
  font-weight: 300;
  margin-top: 1.1rem;
  padding: .7rem 0;
  color: #1c6b4a;
}

.cform-status.err {
  color: #8c2f2f;
}

/* honeypot stays invisible whatever the page does */
.cform input[name="_honey"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 0;
  opacity: 0;
}
