/* ======================================
   CONTACT FORM 7 – FINAL COMPACT VERSION
   ====================================== */

/* Kill ALL CF7 default spacing */
.wpcf7 form p {
  margin: 0 !important;
  padding: 0 !important;
}

/* Main wrapper */
.cf7-form {
  max-width: 1000px;
}

/* Rows */
.cf7-form .cf7-row {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

/* Columns */
.cf7-form .cf7-col {
  flex: 1;
}

/* Full width rows */
.cf7-form .cf7-full {
  flex-direction: column;
  margin-bottom: 16px;
}

/* === LABEL (–1px) === */
.cf7-form label {
  display: block;
  margin-bottom: -1px !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* === INPUTS / SELECT / TEXTAREA (–1px) === */
.cf7-form input:not([type="submit"]),
.cf7-form select,
.cf7-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-top: -1px !important;
  margin-bottom: 0 !important;
  font-size: 15px;
  border: 1px solid #d8d5d2;
  background: #faf9f7;
  border-radius: 2px;
  box-sizing: border-box;
}

/* Textarea height */
.cf7-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* Focus state */
.cf7-form input:focus,
.cf7-form select:focus,
.cf7-form textarea:focus {
  outline: none;
  border-color: #1f2937;
}

/* Kill wrapper spacing that adds invisible height */
.cf7-form .wpcf7-form-control-wrap {
  display: block;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Validation text (no layout jump) */
.wpcf7-not-valid-tip {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.2;
  color: #c0392b;
}

/* Submit button */
.cf7-form input[type="submit"] {
  margin-top: 24px;
  padding: 14px 32px;
  background: #1f2937;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cf7-form input[type="submit"]:hover {
  background: #000000;
}

/* Response message */
.wpcf7-response-output {
  margin-top: 16px !important;
  padding: 10px 12px;
}

/* Mobile */
@media (max-width: 768px) {
  .cf7-form .cf7-row {
    flex-direction: column;
    gap: 12px;
  }
}


/* Hide Astra header button only on Riverstone page */

.page-id-3288 .ast-header-button-1,
.page-id-3288 .ast-custom-button {
    display: none !important;
}
