/* ===== Contact — Section 2: Intro + enquiry form ===== */
.section2 {
  background: var(--light);
  color: var(--ink);
  padding: clamp(60px, 8vw, 110px) 0;
}

.section2__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.section2__intro { position: sticky; top: 120px; }

.section2__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 6.4vw, 100px);
  line-height: 0.95;
  margin-bottom: 26px;
}
.section2__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.section2__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.section2__title .line:nth-child(2) > span { transition-delay: 0.12s; }
.section2.is-visible .section2__title .line > span { transform: none; }

.section2__text {
  max-width: 360px;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.6;
  color: #2a2a30;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease) 0.35s, transform 0.9s var(--ease) 0.35s;
}
.section2.is-visible .section2__text { opacity: 1; transform: none; }

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

.field {
  display: grid;
  gap: 8px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.section2.is-visible .field { opacity: 1; transform: none; }
.section2.is-visible .field:nth-child(1) { transition-delay: 0.15s; }
.section2.is-visible .field:nth-child(2) { transition-delay: 0.22s; }
.section2.is-visible .field:nth-child(3) { transition-delay: 0.29s; }
.section2.is-visible .field:nth-child(4) { transition-delay: 0.36s; }
.section2.is-visible .field:nth-child(5) { transition-delay: 0.43s; }
.section2.is-visible .field:nth-child(6) { transition-delay: 0.5s; }
.section2.is-visible .field:nth-child(7) { transition-delay: 0.57s; }

.field label { font-size: 14px; font-weight: 500; }
.field label span { color: #8a8a90; font-weight: 400; }

.field__control { position: relative; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(20, 20, 22, 0.55);
  border-radius: 2px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; padding-right: 44px; cursor: pointer; }
.field__chevron {
  position: absolute;
  right: 14px; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.3s var(--ease);
}
.field select:focus + .field__chevron { transform: translateY(-50%) rotate(180deg); }

/* animated focus line under each control */
.field__control::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.field__control:focus-within::after { transform: scaleX(1); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: rgba(255, 255, 255, 0.6); }

/* validation */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #d93636; }
.field__error { font-size: 13px; color: #d93636; min-height: 0; display: none; }
.field.is-invalid .field__error { display: block; animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.form__submit {
  width: 100%;
  justify-content: center;
  padding: 17px 22px;
  background: var(--ink);
  color: var(--white);
  border-radius: 2px;
}
.form__submit::before { background: var(--blue); }
.form__submit[disabled] { opacity: 0.7; cursor: wait; }

/* ----- Success state ----- */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
  border: 1px solid rgba(20, 20, 22, 0.15);
  background: rgba(255, 255, 255, 0.5);
}
.form-success.is-shown { display: block; animation: successIn 0.8s var(--ease) both; }
.form-success svg { width: 72px; height: 72px; margin: 0 auto 20px; color: var(--green); }
.form-success circle, .form-success path { stroke-dasharray: 160; stroke-dashoffset: 160; }
.form-success.is-shown circle { animation: drawStroke 0.8s var(--ease) 0.2s forwards; }
.form-success.is-shown path { animation: drawStroke 0.6s var(--ease) 0.8s forwards; }
.form-success h3 { font-family: var(--font-display); font-weight: 400; font-size: 40px; margin-bottom: 8px; }
.form-success p { color: #4a4a50; }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes successIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .section2__grid { grid-template-columns: 1fr; }
  .section2__intro { position: static; }
}

/* ----- Sending: honeypot, status message ----- */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: none; font-size: 14px; padding: 12px 14px; border-left: 3px solid #d93636; background: rgba(217, 54, 54, 0.08); color: #a32020; }
.form__status.is-shown { display: block; animation: successIn 0.4s var(--ease) both; }
