/* Contact page: the studio's details beside an enquiry form, then what happens after you get in touch.
   Loaded after css/site.css, which holds the banner, section heads, reveals and footer. */

:root { --plaster-line: #dcd6ce; }

/* Underlined text links */
.ct-link {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: color .3s ease, background-size .6s var(--ease-out);
}
.ct-link:hover { color: var(--olive); }

/* ---------- Enquiry ---------- */
.ct-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 56px;
  align-items: start;
}
.ct-aside { grid-column: 1 / 6; }
.ct-form-wrap {
  grid-column: 7 / 13;
  padding: clamp(28px, 3.4vw, 48px);
  background: var(--plaster);
}

.ct-intro {
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  max-width: 30rem;
  font-family: var(--serif);
  font-size: clamp(1.125rem, .5vw + .9rem, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.ct-details {
  max-width: 30rem;
  margin: clamp(40px, 4.4vw, 60px) 0 0;
  border-bottom: 1px solid var(--line);
}
.ct-details > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 16px;
  padding: 18px 0;
}
.ct-details dt {
  padding-top: 3px;
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.ct-details dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}
.ct-details address { font-style: normal; }
.ct-social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Form ---------- */
.ct-form { display: grid; gap: 22px; }

.ct-choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.ct-choice legend,
.ct-field label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font: 500 0.71875rem/1.4 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
}
.ct-field label span {
  letter-spacing: 0;
  text-transform: none;
  opacity: .8;
}

/* Choice chips: real radio buttons, drawn as pills */
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { position: relative; }
.ct-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.ct-chip span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #cdc5ba;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--ink);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.ct-chip:hover span { border-color: var(--olive); }
.ct-chip input:checked + span { background: var(--olive); border-color: var(--olive); color: #fff; }
.ct-chip input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 3px; }

.ct-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d3cbc1;
  border-radius: 0;
  background: var(--paper);
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  appearance: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.ct-field textarea { min-height: 150px; resize: vertical; }
.ct-field select {
  padding-right: 42px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236f6862' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
  cursor: pointer;
}
.ct-field ::placeholder { color: #a39b93; }
.ct-field input:hover,
.ct-field select:hover,
.ct-field textarea:hover { border-color: #b9b0a5; }
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(79, 90, 58, .16);
}
/* Only after the visitor has tried: a missing or malformed answer is marked */
.ct-field input:user-invalid,
.ct-field textarea:user-invalid,
.ct-field [aria-invalid="true"] { border-color: #a5603c; }
/* The send button while the enquiry is on its way */
.ct-send[aria-busy="true"] { opacity: .6; cursor: progress; }
.ct-status.is-error { border-left-color: #a5603c; background: rgba(165, 96, 60, .1); }

.ct-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 4px;
}
.ct-send { gap: 14px; padding: 15px 26px; }
.ct-send svg {
  width: 26px;
  height: 10px;
  transition: transform .6s var(--ease-out);
}
.ct-send:hover svg,
.ct-send:focus-visible svg { transform: translateX(6px); }
.ct-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--stone);
}
.ct-status {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--olive);
  background: rgba(79, 90, 58, .1);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- What happens next ---------- */
.ct-next { background: var(--plaster); }
.ct-next .ruled::after { background: var(--plaster-line); }
.ct-next .section-intro .ct-link { color: var(--olive); }

.ct-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-step { padding-top: 28px; }
.ct-step-num {
  display: block;
  font: 500 0.75rem/1.4 var(--sans);
  letter-spacing: .14em;
  color: var(--olive);
  font-variant-numeric: tabular-nums;
}
.ct-step-title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.ct-step-text {
  margin: 12px 0 0;
  max-width: 32ch;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ct-aside,
  .ct-form-wrap { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .ct-steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .ct-row { grid-template-columns: minmax(0, 1fr); }
  .ct-form-wrap { padding: 24px 18px; }
  .ct-details > div { grid-template-columns: 80px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ct-link,
  .ct-chip span,
  .ct-field input,
  .ct-field select,
  .ct-field textarea,
  .ct-send svg { transition: none; }
}
