/* =========================================================
   Trade Scale Digital — contact form
   Homepage enquiry form using existing TSD button style.
   ========================================================= */

.contact-section {
  background:
    radial-gradient(circle at top left, rgba(226, 24, 91, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fff7fa 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.contact-copy h2 {
  max-width: 620px;
}

.contact-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.contact-points div {
  background: #ffffff;
  border: 2px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  padding: 18px;
}

.contact-points strong {
  display: block;
  margin-bottom: 5px;
  color: var(--black);
  font-weight: 900;
}

.contact-points span,
.contact-points a {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.contact-points a {
  color: var(--pink);
}

.contact-form-card {
  background: #ffffff;
  border: 2px solid var(--black);
  box-shadow: 10px 10px 0 var(--black);
  padding: clamp(24px, 4vw, 34px);
}

.contact-form-card h3 {
  color: var(--black);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 0.95;
  margin-bottom: 10px;
}

.form-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}

.tsd-contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tsd-contact-form label span,
.check-row span {
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tsd-contact-form input,
.tsd-contact-form select,
.tsd-contact-form textarea {
  width: 100%;
  border: 2px solid var(--black);
  border-radius: 0;
  background: #ffffff;
  color: var(--charcoal);
  font: inherit;
  font-weight: 700;
  padding: 14px 14px;
  outline: none;
  box-shadow: 4px 4px 0 rgba(5, 5, 5, 0.12);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tsd-contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.tsd-contact-form input:focus,
.tsd-contact-form select:focus,
.tsd-contact-form textarea:focus {
  border-color: var(--pink);
  box-shadow: 4px 4px 0 rgba(226, 24, 91, 0.22);
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(226, 24, 91, 0.08);
  border: 1px solid rgba(226, 24, 91, 0.24);
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--pink);
  box-shadow: none;
  flex: 0 0 auto;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}

.form-actions .btn {
  min-height: 52px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .contact-form-card {
    box-shadow: 7px 7px 0 var(--black);
    padding: 22px;
  }

  .form-row.two-cols {
    grid-template-columns: 1fr;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* Real submission states and anti-spam field */
.form-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 2px solid var(--black);
  font-weight: 800;
  line-height: 1.5;
}

.form-alert-error {
  background: #fff0f3;
  color: #8f1238;
  box-shadow: 4px 4px 0 rgba(5, 5, 5, 0.14);
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.thank-you-section {
  min-height: calc(100vh - 170px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(226, 24, 91, 0.14), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #fff7fa 100%);
}

.thank-you-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 58px);
  background: #ffffff;
  border: 2px solid var(--black);
  box-shadow: 12px 12px 0 var(--black);
  text-align: center;
}

.thank-you-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 2px solid var(--black);
  background: var(--pink);
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 6px 6px 0 var(--black);
}

.thank-you-card h1 {
  margin-bottom: 16px;
  color: var(--black);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
}

.thank-you-card p {
  max-width: 620px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.thank-you-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

@media (max-width: 620px) {
  .thank-you-card {
    box-shadow: 7px 7px 0 var(--black);
  }

  .thank-you-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
