/* =========================
   Greenwalls Lead Form
   Improved vertical rhythm
   ========================= */

.fd-lead-form{
  --fd-bg:#0f2f24;        /* dark green */
  --fd-card:#0b241b;
  --fd-ink:#f3fbf7;
  --fd-muted:rgba(243,251,247,.78);
  --fd-line:rgba(243,251,247,.18);
  --fd-radius:18px;
  --fd-pad:clamp(18px,3vw,28px);
  --fd-shadow:0 14px 40px rgba(0,0,0,.25);

  max-width:760px;
  width:min(760px,92vw);
  margin:0 auto;
  background:var(--fd-bg);
  border-radius:var(--fd-radius);
  padding:var(--fd-pad);
  box-shadow:var(--fd-shadow);
  color:var(--fd-ink);
}

/* --- Rows / layout --- */
.fd-lead-form .fd-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;                 /* horizontal gap */
  margin-bottom:20px;       /* space between rows */
}

.fd-lead-form .fd-col{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.fd-lead-form .fd-col-full{
  grid-column:1 / -1;
}

/* --- Labels (tight to inputs, not floating upward) --- */
.fd-lead-form label{
  display:block;
  margin:0 0 6px;           /* SMALL gap below label */
  font-weight:600;
  font-size:0.95rem;
  line-height:1.25;
  color:var(--fd-ink);
}

/* --- Inputs / selects / textarea --- */
.fd-lead-form input[type="text"],
.fd-lead-form input[type="email"],
.fd-lead-form input[type="tel"],
.fd-lead-form input[type="file"],
.fd-lead-form select,
.fd-lead-form textarea{
  width:100%;
  box-sizing:border-box;
  background:var(--fd-card);
  color:var(--fd-ink);
  border:1px solid var(--fd-line);
  border-radius:14px;
  padding:12px 14px;
  font-size:0.95rem;
  line-height:1.4;
}

/* Remove default top margins some themes inject */
.fd-lead-form input,
.fd-lead-form select,
.fd-lead-form textarea{
  margin-top:0;
}

/* Placeholder text */
.fd-lead-form input::placeholder,
.fd-lead-form textarea::placeholder{
  color:rgba(243,251,247,.55);
}

/* Textarea specifics */
.fd-lead-form textarea{
  min-height:140px;
  resize:vertical;
}

/* File upload help text */
.fd-lead-form .fd-help{
  margin-top:6px;           /* close to field */
  font-size:0.85rem;
  line-height:1.3;
  color:var(--fd-muted);
}

/* --- Validation messages --- */
.fd-lead-form .wpcf7-not-valid-tip{
  margin-top:6px;
  font-size:0.85rem;
  color:#ffd1d1;
}

.fd-lead-form .wpcf7-response-output{
  margin:16px 0 0;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--fd-line);
  color:var(--fd-ink);
}

/* --- Submit button --- */
.fd-lead-form .fd-actions{
  margin-top:8px;
}

.fd-lead-form .fd-submit{
  width:100%;
  border:0;
  border-radius:999px;
  padding:14px 18px;
  font-size:1rem;
  font-weight:700;
  cursor:pointer;
  background:#8dc63f;
  color:#0b241b;
}

.fd-lead-form .fd-submit:hover{
  filter:brightness(1.05);
}

/* --- Honeypot (hidden safely) --- */
.fd-lead-form .fd-hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* --- Mobile --- */
@media (max-width:780px){
  .fd-lead-form .fd-row{
    grid-template-columns:1fr;
    gap:16px;
    margin-bottom:18px;
  }
}

/* ============================================================
   BD Holiday Brochure Form Styles
   Paste into: WP Admin > Appearance > Customize > Additional CSS

   Class is applied via a wrapper div inside the CF7 form body.
   All selectors use .bd-holiday-form (not form.bd-holiday-form).

   Brand colors:
     #2a2a2a  — charcoal (backgrounds, text)
     #8dc63f  — botanical green (accents, button, focus)
   ============================================================ */


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

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


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

.bd-holiday-form .wpcf7-form-control-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.bd-holiday-form .wpcf7-form-control-col {
  flex: 1;
  min-width: 0;
}

.bd-holiday-form .wpcf7-form-control-row-hidden {
  display: none;
}


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

.bd-holiday-form .wpcf7-form-control-title {
  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 ---------- */

.bd-holiday-form input[type="text"],
.bd-holiday-form input[type="email"],
.bd-holiday-form input[type="tel"],
.bd-holiday-form textarea,
.bd-holiday-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;
}

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

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


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

.bd-holiday-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) ---------- */

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

.bd-holiday-form .wpcf7-checkbox .wpcf7-list-item {
  background: #ffffff;
  border-radius: 4px;
  padding: 10px 12px;
  margin: 0;
  box-sizing: border-box;
}

/* Remove the inner box the theme adds to the label element */
.bd-holiday-form .wpcf7-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: center;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.bd-holiday-form .wpcf7-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: #8dc63f;
  margin-right: 8px;
  cursor: pointer;
}

.bd-holiday-form .wpcf7-checkbox .wpcf7-list-item-label {
  color: #2a2a2a;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
}


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

.bd-holiday-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;
}

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


/* ---------- Validation & response messages ---------- */

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

.bd-holiday-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) {
  .bd-holiday-form {
    padding: 24px 16px;
  }

  .bd-holiday-form .wpcf7-form-control-row {
    flex-direction: column;
    gap: 0;
  }

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