/*
 * Bellin House Portraits — refined contact form (Conform-backed).
 * Pulls the mirrored Contact Form 7 block into one contained, centered card:
 * contact details on the left, form on the right, on a warm cream ground that
 * matches the site's serif type and muted gold/stone palette. Scoped to the
 * contact section only.
 */
:root {
  --bhp-gold: #c9ab81;
  --bhp-gold-dark: #b28f57;
  --bhp-ink: #525252;
  --bhp-muted: #6f6a63;
  --bhp-line: #e3ddd3;
}

/* Section wrapper (used where the form is injected standalone, e.g. Stationery) */
.bhp-contact-section { padding: 64px 24px; }

/* ---- The card: center + contain the whole contact block ---- */
.vc_row:has(.vc_cta3-container) {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  background: #fbf9f5;
  border: 1px solid #ebe4d8;
  border-radius: 6px;
  box-shadow: 0 26px 60px -28px rgba(90, 74, 48, 0.28);
  padding: 3rem 3.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.vc_row:has(.vc_cta3-container) > .wpb_column { box-sizing: border-box; }

@media (min-width: 769px) {
  .vc_row:has(.vc_cta3-container) > .wpb_column:first-child {
    flex: 0 0 40%;
    max-width: 40%;
    padding-right: 2.5rem;
  }
  .vc_row:has(.vc_cta3-container) > .wpb_column:nth-child(2) {
    flex: 0 0 60%;
    max-width: 60%;
    padding-left: 2.75rem;
    border-left: 1px solid #ece5d9;
  }
}
@media (max-width: 768px) {
  .vc_row:has(.vc_cta3-container) {
    padding: 2rem 1.5rem;
    max-width: 560px;
  }
  .vc_row:has(.vc_cta3-container) > .wpb_column {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .vc_row:has(.vc_cta3-container) > .wpb_column:first-child { margin-bottom: 1.75rem; }
}

/* Neutralize the theme's grey form-column fill and stray spacer blocks */
.vc_custom_1618698121644,
.vc_row:has(.vc_cta3-container) .vc_col-has-fill .vc_column-inner { background: transparent !important; }
.vc_row:has(.vc_cta3-container) .vc_empty_space { height: 0 !important; }

/* ---- Left column: "Get In Touch" + contact details ---- */
.vc_cta3-container { padding: 0; }
.vc_general.vc_cta3.vc_cta3-style-classic {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.vc_cta3-content-header h4 {
  font-family: "EB Garamond", serif !important;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  font-size: 23px !important;
  white-space: nowrap;
  margin: 0 0 1.25rem !important;
}
.vc_cta3-content p {
  font-family: "Alegreya Sans", sans-serif;
  color: var(--bhp-muted);
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
}
.vc_cta3-content a {
  color: var(--bhp-gold-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 171, 129, 0.45);
  transition: border-color 0.2s ease;
}
.vc_cta3-content a:hover { border-bottom-color: var(--bhp-gold-dark); }

/* ---- Right column: the form fields ---- */
.wpcf7 { max-width: none; }
.wpcf7-form p { margin: 0 0 1.1rem; }
.wpcf7-form p:last-of-type { margin-bottom: 0; }
.wpcf7-form label {
  display: block;
  font-family: "Alegreya Sans", sans-serif;
  color: var(--bhp-muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.wpcf7-form .wpcf7-form-control-wrap { display: block; margin-top: 0.4rem; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100% !important;
  box-sizing: border-box;
  border: 1px solid var(--bhp-line) !important;
  border-radius: 2px !important;
  background: #ffffff !important;
  padding: 0.8rem 1rem !important;
  font-family: "Alegreya Sans", sans-serif !important;
  font-size: 16px !important;
  color: var(--bhp-ink) !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wpcf7-form textarea { height: 132px !important; min-height: 132px; resize: vertical; }
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
  outline: none !important;
  border-color: var(--bhp-gold) !important;
  box-shadow: 0 0 0 3px rgba(201, 171, 129, 0.16) !important;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: #a8a29a; }

/* ---- Submit button ---- */
.wpcf7-form .wpcf7-submit {
  display: inline-block;
  cursor: pointer;
  font-family: "Open Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  line-height: 1;
  color: #fff !important;
  background: var(--bhp-gold) !important;
  border: 1px solid var(--bhp-gold) !important;
  padding: 1rem 2.6rem !important;
  border-radius: 2px;
  margin-top: 0.35rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.wpcf7-form .wpcf7-submit .eltdf-btn-text { color: #fff; }
.wpcf7-form .wpcf7-submit::before,
.wpcf7-form .wpcf7-submit::after { display: none !important; }
.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form .wpcf7-submit:focus {
  outline: none;
  background: var(--bhp-gold-dark) !important;
  border-color: var(--bhp-gold-dark) !important;
  color: #fff !important;
}
.wpcf7-form .wpcf7-submit:disabled { opacity: 0.55; cursor: default; }

/* ---- Status message (classes set by conform-contact.js) ---- */
.wpcf7-form .wpcf7-response-output {
  margin: 1.1rem 0 0 !important;
  padding: 0.8rem 1.05rem !important;
  border: 1px solid transparent !important;
  border-radius: 2px;
  font-family: "Alegreya Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
}
.wpcf7-form.sent .wpcf7-response-output {
  background: #f2f6ef;
  border-color: #cfdcc0 !important;
  color: #45663f !important;
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
  background: #fbf1ef;
  border-color: #e6c9c5 !important;
  color: #94382f !important;
}
