:root {
  --bg: #ece5d3;
  --surface: #f8f4e8;
  --ink: #21281e;
  --muted: #5b6355;
  --accent: #9c6b2e;
  --accent-dark: #7c551f;
  --line: #d6cbae;
  --error: #b3432b;
}

* {
  box-sizing: border-box;
}

.contact-page-body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
}

.contact-page-body .headercontainer,
.contact-page-body .navbar,
.contact-page-body .offcanvas,
.contact-page-body .contact-sec,
.contact-page-body .sticky-btn-group,
.contact-page-body #enquiry-modal,
.contact-page-body #disclaimer-modal {
  display: none !important;
}

.contact-page-main {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.wrap {
  width: 100%;
  max-width: 440px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.home-link svg {
  width: 16px;
  height: 16px;
}

.home-link:hover {
  color: var(--accent);
}

.card {
  position: relative;
  background: var(--surface);
  padding: 40px 32px 32px;
}

.card::before,
.card::after,
.card .bl,
.card .br {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}

.card::before {
  top: -1px;
  left: -1px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.card::after {
  top: -1px;
  right: -1px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.card .bl {
  bottom: -1px;
  left: -1px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.card .br {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.eyebrow-mark {
  width: 34px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 18px;
}

.contact-page-body h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.sub {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 34ch;
}

.banner {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: #f6e9e4;
  border: 1px solid var(--error);
  border-radius: 3px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.banner.show {
  display: flex;
}

.banner svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--error);
}

.banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--error);
}

#contact-page-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.row {
  display: flex;
  gap: 12px;
}

.row > .field {
  flex: 1;
  min-width: 0;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field select,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}

.field select:focus,
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 107, 46, 0.18);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%235B6355'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
  cursor: pointer;
}

.title-field {
  max-width: 104px;
  flex: 0 0 104px;
}

.phone-field {
  display: flex;
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 3px 0 0 3px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.phone-field input {
  border-radius: 0 3px 3px 0;
}

.err {
  display: none;
  color: var(--error);
  font-size: 12.5px;
  margin-top: 6px;
  line-height: 1.35;
}

.field.invalid select,
.field.invalid input,
.field.invalid .phone-prefix {
  border-color: var(--error);
}

.field.invalid .phone-prefix {
  border-right: none;
}

.field.invalid .err,
.err.show {
  display: block;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 4px;
}

.consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.consent label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  cursor: pointer;
}

.consent a {
  color: var(--ink);
}

.consent-err {
  margin-left: 26px;
}

.captcha-box {
  display: flex;
  justify-content: flex-start;
}

.captcha-box .g-recaptcha {
  transform-origin: left top;
}

button.contact-submit,
button[type="submit"].contact-submit {
  margin-top: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 3px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  width: 100%;
}

button.contact-submit:hover {
  background: var(--accent-dark);
}

button.contact-submit:active {
  transform: translateY(1px);
}

button.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.foot-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-page-body #pageloader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(236, 229, 211, 0.72);
  align-items: center;
  justify-content: center;
}

.contact-page-body #pageloader.is-visible {
  display: flex;
}

.contact-page-body #pageloader img {
  width: 48px;
  height: 48px;
}

@media (max-width: 380px) {
  .card {
    padding: 32px 20px 24px;
  }

  .contact-page-body h1 {
    font-size: 24px;
  }

  .title-field {
    max-width: 92px;
    flex-basis: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .field select,
  .field input,
  button.contact-submit {
    transition: none;
  }
}
