/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 40px clamp(32px, 6vw, 96px);
}

.contact__info .lead {
  margin-top: 16px;
}

.quick {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.quick li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.quick li:first-child {
  border-top: 1px solid var(--line);
}

.quick span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quick a {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.quick a:hover {
  color: var(--accent);
}

.contact__actions {
  margin-top: 30px;
}

.contact__form {
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 40px 80px -50px rgba(90, 45, 20, 0.45);
}

.cform__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.locs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.loc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid rgba(36, 26, 18, 0.07);
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.loc:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -34px rgba(90, 45, 20, 0.45);
}

.loc.is-hidden {
  display: none;
}

.loc__kind {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.loc h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}

.loc address {
  flex: 1;
  font-style: normal;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.loc__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.loc__links a {
  color: var(--ink);
  word-break: break-word;
}

.loc__links a:hover {
  color: var(--accent);
}

.loc--dark {
  background: var(--dark);
  border-color: transparent;
}

.loc--dark h3,
.loc--dark .loc__links a {
  color: #FAF7F1;
}

.loc--dark address {
  color: rgba(250, 247, 241, 0.72);
}

.loc--dark .loc__links {
  border-color: rgba(250, 247, 241, 0.14);
}

.loc--dark .link-arrow {
  color: #FAF7F1;
}

.map {
  height: clamp(320px, 40vw, 460px);
  background: var(--bg-alt);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

@media (max-width: 1060px) {
  .locs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 600px) {
  .locs,
  .cform__row {
    grid-template-columns: 1fr;
  }
}

/* ===== Get in touch (redesign) - contact cards on the left, a cleaner form card
   on the right. Scoped to .contact so the Site Visit / Enquire drawers keep their look ===== */
.contact {
  align-items: stretch;
}

.contact__info {
  display: flex;
  flex-direction: column;
}

/* contact cards: icon badge, label above value */
.contact .quick {
  gap: 12px;
  margin-top: 32px;
}

.contact .quick li,
.contact .quick li:first-child {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(26, 20, 16, 0.08);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 18px 36px -30px rgba(90, 45, 20, 0.45);
  transition: transform 0.35s var(--ease, ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.contact .quick li:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 89, 34, 0.35);
  box-shadow: 0 22px 40px -28px rgba(241, 89, 34, 0.45);
}

.contact .quick__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(241, 89, 34, 0.1);
  color: var(--accent);
  transition: background 0.35s ease, color 0.35s ease;
}

.contact .quick li:hover .quick__ic {
  background: var(--accent);
  color: #FFFFFF;
}

.contact .quick__ic svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact .quick__ic--wa svg {
  fill: currentColor;
  stroke: none;
}

.contact .quick__txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.contact .quick__txt > span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact .quick__txt a {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
}

/* the whole card is clickable */
.contact .quick__txt a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.contact .quick li:hover .quick__txt a {
  color: var(--accent);
}

.contact__actions {
  margin-top: 28px;
}

.contact .contact__visit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
}

/* form card */
.contact__form {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(26, 20, 16, 0.06);
  border-radius: 24px;
}

.contact__form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #F6A57F);
}

.contact__form .sv-title {
  font-size: clamp(26px, 2.4vw, 32px);
}

.contact__form .sv-sub {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact__form .sv-required {
  margin: 6px 0 22px;
}

.contact__form .cform__row {
  gap: 0 16px;
}

.contact__form .sv-field {
  margin-top: 14px;
}

.contact__form .sv-field input,
.contact__form .sv-field select,
.contact__form .sv-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #EDE3DA;
  border-radius: 12px;
  background: #FCF8F5;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact__form .sv-field select {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6A5E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.contact__form .sv-field textarea {
  min-height: 96px;
  resize: vertical;
}

.contact__form .sv-field input:focus,
.contact__form .sv-field select:focus,
.contact__form .sv-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(241, 89, 34, 0.12);
}

/* captcha: image, refresh and the code on one row */
.contact__form .cform__captcha {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 16px;
  margin-top: 14px;
}

.contact__form .cform__captcha .sv-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.contact__form .cform__captcha .sv-captcha-row img {
  height: 50px !important;
  padding: 4px 8px;
  border: 1px solid #EDE3DA;
  border-radius: 12px;
  background: #FFFFFF;
}

.contact__form .cform__captcha .sv-field {
  margin-top: 0;
}

.contact__form .sv-consent {
  margin-top: 20px;
}

.contact__form .sv-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  letter-spacing: 0.14em;
}

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

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

  .contact__form .cform__captcha .sv-field {
    margin-top: 12px;
  }

  .contact .quick__txt a {
    font-size: 18px;
  }
}

/* the older ".quick span" label style (uppercase, spaced) must not reach the value */
.contact .quick__txt {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}

/* an unchosen dropdown reads like the other placeholders */
.contact__form .sv-field select:invalid {
  color: rgb(140, 122, 110);
}

.contact__form .sv-field select option {
  color: var(--ink);
}

/* desktop: "Book a site visit" sits on the same line as the form's Submit button -
   pushed to the bottom of the column, lifted by the form card's bottom padding + border */
.contact .contact__visit {
  min-height: 54px;
  padding-top: 0;
  padding-bottom: 0;
}

@media (min-width: 901px) {
  .contact__actions {
    margin-top: auto;
    padding-top: 28px;
    padding-bottom: calc(clamp(26px, 3.4vw, 44px) + 1px);
  }
}
