/*-----  */

/* ── CHACELAW CF7 FORM ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Jost:wght@300;400;500;600&display=swap');

.cf7-chacelaw {
  --gold: #b8975a;
  --gold-light: #d4b07a;
  --ink: #1a1a1a;
  --cream: #faf8f4;
  --cream-dark: #f2ede3;
  --border: #d6cfc2;
  --border-light: #e8e2d8;
  --muted: #7a7060;
  --section-bg: #f7f3ec;
  --accent: #2c3e2d;
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

/* Intro banner */
.cf7-chacelaw .cf7-intro {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  background: var(--section-bg);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 40px;
}

/* Section wrapper */
.cf7-chacelaw .cf7-section {
  margin-bottom: 48px;
}

/* Section header */
.cf7-chacelaw .cf7-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.cf7-chacelaw .cf7-section-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cf7-chacelaw .cf7-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Grid rows */
.cf7-chacelaw .cf7-row {
  display: grid;
  gap: 18px 24px;
  margin-bottom: 18px;
}
.cf7-chacelaw .cf7-col-1 { grid-template-columns: 1fr; }
.cf7-chacelaw .cf7-col-2 { grid-template-columns: 1fr 1fr; }
.cf7-chacelaw .cf7-col-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Fields */
.cf7-chacelaw .cf7-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cf7-chacelaw .cf7-field > label {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  margin-bottom: 0 !important;
}

.cf7-chacelaw .cf7-field abbr {
  color: var(--gold);
  text-decoration: none;
  margin-left: 2px;
}

.cf7-chacelaw .wpcf7-form-control:not([type="radio"]):not([type="submit"]) {
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 8px 2px !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 14px !important;
  /*color: var(--ink) !important;*/
  box-shadow: none !important;
  width: 100% !important;
  outline: none !important;
  transition: border-color 0.2s !important;
}

.cf7-chacelaw .wpcf7-form-control:not([type="radio"]):not([type="submit"]):focus {
  border-bottom-color: var(--gold) !important;
}

/* Yes/No radio buttons */
.cf7-chacelaw .cf7-yn .wpcf7-radio {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cf7-chacelaw .cf7-yn .wpcf7-list-item {
  margin: 0 !important;
}

.cf7-chacelaw .cf7-yn .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px !important;
  color: var(--ink) !important;
  cursor: pointer;
  padding: 6px 16px !important;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  transition: all 0.15s;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
}

.cf7-chacelaw .cf7-yn .wpcf7-list-item input[type="radio"] {
  display: none;
}

.cf7-chacelaw .cf7-yn .wpcf7-list-item:has(input:checked) label {
  border-color: var(--gold);
  background: var(--cream-dark);
  color: var(--gold);
  font-weight: 600 !important;
}

/* Table label */
.cf7-chacelaw .cf7-table-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 10px;
}

/* Table wrapper for horizontal scroll on mobile */
.cf7-chacelaw .cf7-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}

/* Tables */
.cf7-chacelaw .cf7-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cf7-chacelaw .cf7-table thead tr {
  background: var(--accent);
}

.cf7-chacelaw .cf7-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.cf7-chacelaw .cf7-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.cf7-chacelaw .cf7-table tbody tr:hover {
  background: var(--section-bg);
}

.cf7-chacelaw .cf7-table tbody td {
  padding: 0;
}

.cf7-chacelaw .cf7-table tbody td .wpcf7-form-control {
  border-bottom: none !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
}

.cf7-chacelaw .cf7-table tbody td .wpcf7-form-control:focus {
  background: #fefcf7 !important;
}

/* Submit button */
.cf7-chacelaw .cf7-submit-row {
  margin-top: 40px;
  text-align: right;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.cf7-chacelaw .wpcf7-submit {
  font-family: 'Jost', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: var(--accent) !important;
  border: none !important;
  padding: 14px 40px !important;
  cursor: pointer !important;
  border-radius: 2px !important;
  transition: background 0.2s !important;
}

.cf7-chacelaw .wpcf7-submit:hover {
  background: var(--gold) !important;
}

/* Validation */
.cf7-chacelaw .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #c0392b;
  margin-top: 3px;
}

.cf7-chacelaw .wpcf7-response-output {
  border-color: var(--gold) !important;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  margin-top: 20px !important;
  padding: 12px 18px !important;
  border-radius: 2px !important;
}

/* Responsive */
@media (max-width: 640px) {
  .cf7-chacelaw .cf7-col-2,
  .cf7-chacelaw .cf7-col-3 {
    grid-template-columns: 1fr;
  }
}