/* ==========================================================================
   Sody — contact page
   Implements "Sody Contact.dc.html". The canvas artboard was a single fixed
   width; the media queries below are the responsive behaviour it implied.
   ========================================================================== */

.contact {
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 80px);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

/* --- Left column: the pitch ----------------------------------------------- */

.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 16px 0 0;
  max-width: 16ch;
  text-wrap: balance;
}

.contact__lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-72);
  margin: 18px 0 0;
  max-width: 40ch;
  text-wrap: pretty;
}

.points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.points__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
}

.points__check {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--clay-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.recap {
  margin-top: 32px;
  padding: 22px;
  border-radius: var(--radius-soft);
  background: var(--sand);
}

.recap__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-80);
}

.recap__text {
  font-size: 16px;
  line-height: 1.55;
  margin-top: 10px;
  font-weight: 500;
}

.contact__links {
  margin-top: 24px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-70);
}

/* --- Right column: the form card ------------------------------------------ */

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: var(--shadow-card);
}

.form {
  display: grid;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field__label {
  font-size: 14px;
  font-weight: 700;
}

.field__control {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-field);
  background: var(--cream);
  border: 1px solid var(--ink-14);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field__control:hover {
  border-color: rgba(36, 22, 16, 0.24);
}

.field__control:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(201, 120, 78, 0.18);
}

.field__control:focus-visible {
  outline: none;
}

/* Native validation styling, but only once the visitor has tried to submit. */
.form.is-validated .field__control:invalid {
  border-color: #b3452c;
}

textarea.field__control {
  resize: vertical;
  min-height: 108px;
}

select.field__control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23241610' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.form__submit {
  padding: 19px;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 17.5px;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.form__submit:hover:not(:disabled) {
  background: #33211a;
}

.form__submit:active:not(:disabled) {
  transform: translateY(1px);
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form__small {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-50);
}

.form__error {
  margin: 0;
  padding: 13px 16px;
  border-radius: var(--radius-field);
  background: #fdeceb;
  color: #8d3521;
  font-size: 14.5px;
  line-height: 1.45;
}

/* --- Success state -------------------------------------------------------- */

.sent {
  padding: 56px 0;
  text-align: center;
}

.sent__check {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--sand);
  color: var(--clay-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.sent__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.025em;
  margin: 22px 0 12px;
}

.sent__body {
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  max-width: 32ch;
  color: var(--ink-72);
}

.sent__back {
  margin-top: 26px;
}

/* --- Responsive ----------------------------------------------------------- */

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

  .contact__title {
    font-size: clamp(34px, 7vw, 46px);
    max-width: 20ch;
  }
}

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

  .site-header__end {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .sent {
    padding: 36px 0;
  }

  .sent__title {
    font-size: 28px;
  }
}
