/* Case-study closing contact block: "Let's talk." and the quick enquiry form.
   Colours follow the page's --accent and --cs-* tokens; a few --cf-* tokens
   let a page restyle the button, chips and success badge. */

.cs-contact {
  position: relative;
  overflow: clip;
  padding: 120px var(--gutter);
  background-color: var(--cs-bg);
  background-image: radial-gradient(var(--cf-dots, rgb(17 17 17 / 9%)) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}

.cs-contact::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(closest-side, var(--cf-glow, rgb(59 116 232 / 16%)), transparent);
  pointer-events: none;
}

/* Some pages wash the dot pattern out towards the copy
   (--cf-wash-a/b: the page background at 85% and 40%). */
.cs-contact--wash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cs-bg) 0%, var(--cf-wash-a) 40%, var(--cf-wash-b) 100%);
  pointer-events: none;
}

.cs-contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.cs-contact .cs-kicker { margin-bottom: 20px; }
.cs-contact__title { max-width: 560px; margin-bottom: 18px; font-weight: 600; font-size: clamp(26px, 2.4vw, 40px); line-height: 1.18; letter-spacing: -1px; text-wrap: balance; }
.cs-contact__lead { max-width: 480px; margin-bottom: clamp(32px, 3vw, 48px); font-size: 17px; line-height: 1.6; color: var(--cs-muted); }
.cs-contact__big { margin-bottom: clamp(36px, 3.4vw, 56px); font-weight: 700; font-size: clamp(56px, 8.4vw, 148px); line-height: .92; letter-spacing: -.04em; color: var(--cf-big, inherit); }
.cs-contact__big span { color: var(--accent); }
.cs-contact__facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0; }
.cs-contact__facts dt { margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--cs-faint); }
.cs-contact__facts dd { margin: 0; font-weight: 600; font-size: 18px; }
.cs-contact__facts a { padding-bottom: 2px; border-bottom: 3px solid var(--accent); }
.cs-contact__facts a:hover { color: var(--accent); }

/* ---------- form card ---------- */

.cs-form-card {
  padding: clamp(32px, 3.4vw, 56px);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 50px 100px -40px var(--cf-shadow, rgb(28 36 51 / 22%)), 0 0 0 1px rgb(17 17 17 / 5%);
}
.cs-form { display: flex; flex-direction: column; gap: 28px; }
.cs-form.is-sent { display: none; }
.cs-form__title { margin-bottom: 6px; font-weight: 600; font-size: clamp(24px, 2vw, 32px); letter-spacing: -.8px; }
.cs-form__sub { font-size: 15px; color: var(--cs-muted); }
.cs-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }

.cs-field { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1.5px solid var(--cs-line); transition: border-color .2s ease; }
.cs-field:focus-within { border-color: var(--cs-ink); }

.cs-field label,
.cs-chips legend { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--cs-faint); }

.cs-field input,
.cs-field select,
.cs-field textarea { width: 100%; padding: 4px 0; border: 0; outline: none; background: transparent; font-size: 17px; color: var(--cs-ink); }
.cs-field textarea { resize: none; line-height: 1.5; }

/* Phone country selector (forms.css skin): full width on the underlined field;
   the search box inside the list keeps the library's icon gutters. */
.cs-field .iti { display: block; width: 100%; }

@media (max-width: 720px) {
  /* 40px rows, so the country button is an easy tap. */
  .cs-field input { min-height: 40px; }
}
.cs-field .iti .iti__search-input {
  padding: 12px calc(var(--iti-spacer-horizontal) * 2 + var(--iti-clear-icon-size)) 12px calc(var(--iti-spacer-horizontal) * 2 + var(--iti-globe-icon-size));
  font-size: 15px;
}

.cs-chips { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; }
.cs-chips legend { margin-bottom: 12px; padding: 0; }
.cs-chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-chip { position: relative; cursor: pointer; }
.cs-chip input { position: absolute; opacity: 0; pointer-events: none; }

.cs-chip span {
  display: block;
  padding: 10px 18px;
  border: 1px solid var(--cs-line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 500;
  font-size: 14px;
  transition: all .2s ease;
}
.cs-chip input:checked + span { border-color: var(--cf-chip-on-bd, var(--cf-btn, var(--cs-ink))); background: var(--cf-chip-on, var(--cf-btn, var(--cs-ink))); color: var(--cf-chip-on-fg, var(--white)); }
.cs-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.cs-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cs-form__note { max-width: 220px; font-size: 13px; line-height: 1.5; color: var(--cs-faint); }
.cs-form .form-status { margin-top: -12px; }



/* ---------- sent state ---------- */

.cs-sent { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px 0; }
.cs-sent[hidden] { display: none; }

.cs-sent__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cf-sent, var(--accent));
  color: var(--cf-sent-fg, var(--white));
  font-size: 26px;
}
.cs-sent__title { font-weight: 600; font-size: 30px; letter-spacing: -.8px; }
.cs-sent p { max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--cs-muted); }
.cs-sent button { padding: 0; border: 0; background: none; font-weight: 500; font-size: 15px; text-decoration: underline; cursor: pointer; }

@media (max-width: 1100px) {
  .cs-contact { padding-block: 88px; }
}

@media (max-width: 720px) {
  .cs-contact { padding-block: 64px; }
  .cs-form__note { max-width: none; }
}

@media (max-width: 400px) {
  .cs-chip span { padding: 10px 14px; }
}
