/* =================== CONTACT FORM =================== */
.contact-form {
  width: 100%;
  padding: 0px;                /* breath inside the right panel */
  color: #cfcfcf;               /* matches left text */
  font-family: 'Playfair Display', serif;
}

.form-row {
  display: grid;
  gap: 40px;
  margin-bottom: 44px;
}
.form-row.two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

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

/* Labels */
.field label {
  font-size: 0.95em;
  letter-spacing: 0.02em;
  margin-bottom: 0px;
  color: #a6764b;
}

/* Inputs / Textarea â€” minimalist underline */
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #a6764b;
  color: #e9e9e9;
  padding: 10px 0 12px 0;
  font-size: 1.05em;
  outline: none;
  transition: border-color .2s ease, color .2s ease;
}

/* Placeholder subtle */
.field input::placeholder,
.field textarea::placeholder { color: #a89a86; }


/* Focus state */
.field input:focus,
.field textarea:focus {
  border-bottom-color: #d3c4ad;
  color: #cfcfcf;
}

.contact-form .custom-btn {
  margin-top: 10px;
}

/* ---------- Responsiveness ---------- */
@media (max-width: 770px) {
  .contact-form { padding: 0px; }
  .form-row.two-col { grid-template-columns: 1fr; } /* stack pairs */
}

@media (max-width: 480px) {
  .contact-form { padding: 30px; }
  .form-row { gap: 28px; margin-bottom: 28px; }
  .contact-submit { width: 100%; text-align: center; }
}


/* =================== CONTACT SECTION =================== */
.contact-section {
  position: relative;
  padding: 5px 0 80px 0;  /* top right bottom left */
  background-color: #3c3b31;
  --contact-min-h: 600px;
}

.contact-layout {
  display: flex;
  flex-direction: column;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 60px;
}

/* =================== TITLE =================== */
.contact-kicker {
  font-size: 1.8em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F4F3EE;
  margin-bottom: 30px;
  font-family: 'Playfair Display', serif;
}

/* =================== TWO-COLUMN CONTENT =================== */
.contact-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  min-height: var(--contact-min-h);
  align-items: stretch;
}

.contact-left,
.contact-right {
  background: #3c3b31;
  min-height: 0;       /* allow grid to control height */
  height: 100%;
  min-width: 0;        /* allow proper shrinking */

  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.contact-left {
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.contact-left img {
  display: block;
  margin: 0;
  align-self: flex-start;
  height: auto;
  max-height: clamp(440px, 32vh, 480px);
  object-fit: contain;
  width: auto;
  max-width: 100%;
}

.contact-right {
  align-items: flex-start;
}

/* =================== LEFT TOP TEXT BOX =================== */
.contact-left-topbox {
  width: 100%;
  background: #3c3b31;
  color: #F4F3EE;
  padding: 0;
  font-size: clamp(12px, 1.1vw, 15px);
}

.topbox-title {
  margin: 0 0 8px 0;
  font-size: 0.9em;
  letter-spacing: 0.08em;
  line-height: 2;
  font-family: 'Montserrat', sans-serif;
}

.topbox-subtitle {
  margin: 0 0 6px 0;
  font-size: 0.9em;
  letter-spacing: 0.08em;
  line-height: 2;
  font-family: 'Montserrat', sans-serif;
}

.topbox-note {
  margin: 0 0 30px 0;
  font-size: 0.9em;
  letter-spacing: 0.08em;
  line-height: 2;
  font-family: 'Montserrat', sans-serif;
}

/* =================== RESPONSIVE =================== */

/* Tablet stack */
@media (max-width: 770px) {
  .contact-columns {
    grid-template-columns: 1fr;
    gap: 80px;
  }
  .contact-left,
  .contact-right {
    min-height: var(--contact-min-h-sm, 420px);
  }
}

/* Phone full-bleed */
@media (max-width: 480px) {
  .contact-layout {
    --mobile-pad: 30px;
    padding: 0 var(--mobile-pad);
  }
  .contact-left,
  .contact-right {
    width: calc(100% + (2 * var(--mobile-pad)));
    margin-left: calc(-1 * var(--mobile-pad));
    margin-right: calc(-1 * var(--mobile-pad));
    border-radius: 0;
  }
  .contact-left-topbox {
    padding: 20px;
  }
}

/* =================== TEXT SCALING =================== */
@media (max-width: 1200px) {
  .contact-left-topbox { font-size: 1.25vw; }
}

@media (max-width: 1024px) {
  .contact-left-topbox { font-size: 1.25vw; }
}

@media (max-width: 770px) {
  .contact-layout { padding: 0 40px; }
  .contact-left-topbox { font-size: 2.1vw; }
  .contact-kicker { font-size: 2em; }
}

@media (max-width: 480px) {
  .contact-layout {
    --mobile-pad: 30px;
    padding: 0 var(--mobile-pad);
  }

  .contact-columns { gap: 40px; }

  .contact-left,
  .contact-right {
    width: calc(100% + (2 * var(--mobile-pad)));
    margin-left: calc(-1 * var(--mobile-pad));
    margin-right: calc(-1 * var(--mobile-pad));
    border-radius: 0;
  }

  /* Add spacing (padding) around the image container */
  .contact-left {
    padding: 15px;  /* adjust value as needed */
  }

  /* Make the image fill its padded parent (like your map) */
  .contact-left img {
    align-self: stretch;  /* override flex-start */
    width: 100%;
    max-width: 100%;
    height: auto;         /* keep aspect ratio */
    display: block;       /* removes inline-gap quirks */
  }

  .contact-left-topbox {
    font-size: 3.4vw;
    padding: 20px;
  }

  .contact-kicker {
    font-size: 1.9em;
    line-height: 1.25;
    text-align: center;
  }

  .topbox-title,
  .topbox-subtitle,
  .topbox-note { text-align: center; }
}


/* =================== INLINE SUCESS / ERROR MESSAGE =================== */

.form-status { margin-top: 12px; font-size: 0.95em; color: #cfcfcf; }
.form-status.success { color: #c7d7b0; } /* gentle green */
.form-status.error   { color: #e0a199; } /* gentle red */

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; clip-path: inset(50%);
}

/* Layout for submit button + status message */
.form-actions {
  display: flex;
  flex-direction: column; /* stack elements vertically */
  align-items: flex-start; /* or center if you want it centered */
  gap: 35px; /* vertical space between button and message */
}

/* Make sure status doesnâ€™t wrap under the button on narrow screens */
.form-status {
  margin: 0;
  font-size: 0.95em;
  color: #cfcfcf;
  white-space: nowrap;
}

.form-status.success { color: #c7d7b0; } /* soft green */
.form-status.error   { color: #e0a199; } /* soft red */


/* =================== REMOVE AUTOFILL WHITE SPACE =================== */

/* Tell modern browsers we're in a dark UI so built-ins (incl. autofill) adapt */
.contact-form {
  color-scheme: dark;
}

/* Neutralize Chrome/Edge/Safari autofill background for dark themes */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill,
.field select:-webkit-autofill {
  -webkit-text-fill-color: #e9e9e9 !important;   /* your input text color */
  caret-color: #e9e9e9;
  /* repaint the whole input with your dark bg */
  box-shadow: 0 0 0 1000px #3c3b31 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #3c3b31 inset !important;
  transition: background-color 99999s ease-in-out 0s; /* prevents flash */
}

/* Keep your underline color consistent when autofilled */
.field input:-webkit-autofill,
.field textarea:-webkit-autofill {
  border-bottom-color: #a6764b;
}
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill:focus {
  border-bottom-color: #d3c4ad;
}

/* Firefox */
.field input:-moz-autofill,
.field textarea:-moz-autofill {
  box-shadow: 0 0 0 1000px #3c3b31 inset !important;
  -moz-text-fill-color: #e9e9e9 !important;
}


/* Force underline-only inputs on mobile/tablet (and everywhere) */
.contact-right input,
.contact-right textarea,
.contact-right input.form-control,
.contact-right textarea.form-control,
.field input,
.field textarea {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #a6764b !important; /* your underline */
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 10px 0 12px !important; /* keep your spacing consistent */
}

/* Keep focus look consistent */
.contact-right input:focus,
.contact-right textarea:focus,
.field input:focus,
.field textarea:focus {
  border-bottom-color: #d3c4ad !important;
  box-shadow: none !important;
  outline: none !important;
}

/* =================== BUTTON RESPONSIVENESS =================== */

/* === Button visibility switch — MUST be last in the cascade === */
.contact-section .custom-btn { display: inline-block !important; }
.contact-section .mobile-btn { display: none !important; }

@media (max-width: 1024px) {
  .contact-section .custom-btn { display: none !important; }
  .contact-section .mobile-btn { display: inline-block !important; }
}

@media (max-width: 1200px) {
  .contact-section .custom-btn,
  .contact-section .mobile-btn {
    background-color: #3c3b31 !important; /* dark background for smaller screens */
    color: #dccb9b;                       /* keep text readable */
    border-color: #676551;                /* optional – matches your border tone */
    margin-top: 20px;
  }
}