/* ============================================================
   BD Holiday Brochure Form — scoped under .bdhf-form
   All authored classes use the bdhf- prefix to avoid collisions
   with theme / Contact Form 7 global .wpcf7-* rules.

   CF7-generated classes (.wpcf7-checkbox, .wpcf7-list-item,
   .wpcf7-not-valid-tip, .wpcf7-response-output) cannot be
   renamed, so they are scoped under .bdhf-form to isolate them.

   Brand colors:
     #2a2a2a  — charcoal
     #8dc63f  — botanical green
   ============================================================ */


/* ---------- Form wrapper ---------- */

.bdhf-form {
  background-color: #2a2a2a;
  padding: 40px;
  border-radius: 6px;
  color: #ffffff;
}


/* ---------- Row layout ---------- */

.bdhf-form .bdhf-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.bdhf-form .bdhf-col {
  flex: 1;
  min-width: 0;
}

.bdhf-form .bdhf-row-hidden {
  display: none;
}


/* ---------- Labels ---------- */

.bdhf-form .bdhf-label {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}


/* ---------- Text inputs, email, phone, textarea, select ---------- */

.bdhf-form input[type="text"],
.bdhf-form input[type="email"],
.bdhf-form input[type="tel"],
.bdhf-form textarea,
.bdhf-form select {
  width: 100%;
  background: #ffffff;
  color: #2a2a2a;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.bdhf-form input[type="text"]:focus,
.bdhf-form input[type="email"]:focus,
.bdhf-form input[type="tel"]:focus,
.bdhf-form textarea:focus,
.bdhf-form select:focus {
  outline: none;
  border-color: #8dc63f;
}

.bdhf-form textarea {
  min-height: 120px;
  resize: vertical;
}


/* ---------- Select dropdowns (branch, current-client) ---------- */

.bdhf-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%232a2a2a' d='M6 7L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}


/* ---------- Checkboxes (services) ---------- */
/* This theme HIDES the native checkbox and fakes one with :before (the box)
   and :after (the outline ring). So we override those pseudo-elements directly,
   all scoped under .bdhf-form so no other form on the site is affected. */

.bdhf-form .wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

/* The single white card */
.bdhf-form .wpcf7-checkbox .wpcf7-list-item {
  background: #ffffff;
  border-radius: 4px;
  padding: 10px 12px;
  margin: 0;
  flex-basis: auto;       /* cancel theme's calc() flex-basis */
  box-sizing: border-box;
}

/* Flatten the theme's inner label box so there's ONE clean card, not two */
.bdhf-form .wpcf7-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
}

/* Kill the thin outline ring (the theme's :after element) */
.bdhf-form .wpcf7-checkbox input[type="checkbox"] + span:after {
  display: none !important;
}

/* Recolor the fake checkbox to BD green when checked (theme used #857a18) */
.bdhf-form .wpcf7-checkbox input[type="checkbox"]:checked + span:before {
  background-color: #8dc63f !important;
  border-color: #8dc63f !important;
}

/* Let long labels wrap cleanly inside the card */
.bdhf-form .wpcf7-checkbox .wpcf7-list-item-label {
  display: inline;
  color: #2a2a2a;
  font-size: 13px;
  line-height: 1.3 !important;     /* theme forces line-height:1, too cramped */
  white-space: normal !important;
  word-break: break-word;
  min-width: 0;
}


/* ---------- Submit button ---------- */

.bdhf-form input[type="submit"] {
  background-color: #8dc63f;
  color: #2a2a2a;
  border: 2px solid #8dc63f;
  border-radius: 4px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bdhf-form input[type="submit"]:hover {
  background-color: #ffffff;
  color: #2a2a2a;
  border-color: #ffffff;
}


/* ---------- Validation & response messages ---------- */
/* .wpcf7-not-valid-tip / .wpcf7-response-output are CF7-generated. */

.bdhf-form .wpcf7-not-valid-tip {
  color: #ff7070;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.bdhf-form .wpcf7-response-output {
  border: 2px solid #8dc63f;
  background-color: rgba(141, 198, 63, 0.12);
  color: #ffffff;
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 14px;
}


/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .bdhf-form {
    padding: 24px 16px;
  }

  .bdhf-form .bdhf-row {
    flex-direction: column;
    gap: 0;
  }

  .bdhf-form .wpcf7-checkbox {
    grid-template-columns: repeat(2, 1fr);
  }
}