/* Fix CF7 injected p tag */
.form-row p {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0;
}

@media (min-width: 768px) {
  .form-row p {
    flex-direction: row;
    gap: 16px;
  }
}

.form-col {
  flex: 1;
  min-width: 0;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .form-col {
    margin-bottom: 0;
  }
}

.form-col-full {
  width: 100%;
  margin-bottom: 16px;
}

.form-col .wpcf7-form-control-wrap,
.form-col-full .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.name-input,
.address-input,
.email-input,
.phone-input,
.subject,
.message-input {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #e6c194;
  font-size: 14px;
  box-sizing: border-box;
  margin-top: 4px;
}

@media (min-width: 640px) {
  .name-input,
  .address-input,
  .email-input,
  .phone-input,
  .subject,
  .message-input {
    padding: 9px 12px;
    font-size: 15px;
  }
}

@media (min-width: 1280px) {
  .name-input,
  .address-input,
  .email-input,
  .phone-input,
  .subject,
  .message-input {
    padding: 10px 14px;
    font-size: 16px;
  }
}

.message-input {
  min-height: 120px;
  resize: vertical;
}

@media (min-width: 1280px) {
  .message-input {
    min-height: 150px;
  }
}

.contact-btn,
.volunteer-btn {
  background: #e6c194;
  color: black;
  padding: 10px 20px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .contact-btn,
  .volunteer-btn {
    width: 50%;
    font-size: 15px;
  }
}

@media (min-width: 1280px) {
  .contact-btn,
  .volunteer-btn {
    width: 30%;
    font-size: 16px;
    padding: 12px 28px;
  }
}

.contact-btn:hover,
.volunteer-btn:hover {
  background: #ad9764;
}

.form-col-full p {
  margin: 0;
}

.field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'AlegreyaSC', serif;
  color: #e6c194;
}

.field-label2 {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'AlegreyaSC', serif;
  color: black;
}

@media (min-width: 1280px) {
  .field-label {
    font-size: 16px;
  }

  .field-label2 {
    font-size: 16px;
  }
}

/* Hide CF7 br tags */
.form-col br,
.form-col-full br {
  display: none;
}

/* Checkbox grid */
.checkbox-input {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
}

@media (min-width: 640px) {
  .checkbox-input {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (min-width: 768px) {
  .checkbox-input {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Each checkbox item */
.checkbox-input .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0;
  cursor: pointer;
}

@media (min-width: 1280px) {
  .checkbox-input .wpcf7-list-item {
    gap: 10px;
    padding: 12px 16px;
  }
}

.checkbox-input .wpcf7-list-item-label {
  color: white;
  font-size: 14px;
}

@media (min-width: 1280px) {
  .checkbox-input .wpcf7-list-item-label {
    font-size: 16px;
  }
}

.checkbox-input .wpcf7-list-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #e6c194;
  flex-shrink: 0;
  cursor: pointer;
}

@media (min-width: 1280px) {
  .checkbox-input .wpcf7-list-item input[type="checkbox"] {
    width: 30px;
    height: 30px;
  }
}

.checkbox-input .wpcf7-list-item:hover {
  background: rgba(230, 193, 148, 0.1);
}

.form-row .form-col-full p {
  display: flex;
  flex-direction: column;
  margin: 0;
  gap: 0;
}

.wpcf7-acceptance .wpcf7-list-item label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

@media (min-width: 1280px) {
  .wpcf7-acceptance .wpcf7-list-item label {
    padding: 12px 16px;
  }
}

.wpcf7-acceptance .wpcf7-list-item label:hover {
  background: rgba(230, 193, 148, 0.1);
}

.wpcf7-acceptance .wpcf7-list-item-label {
  color: white;
  font-size: 14px;
}

@media (min-width: 1280px) {
  .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 16px;
  }
}

.wpcf7-acceptance .wpcf7-list-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #e6c194;
  flex-shrink: 0;
  cursor: pointer;
}

@media (min-width: 1280px) {
  .wpcf7-acceptance .wpcf7-list-item input[type="checkbox"] {
    width: 30px;
    height: 30px;
  }
}

.wpcf7-acceptance {
  margin-bottom: 0;
}

.form-row:has(.wpcf7-acceptance) {
  margin-bottom: 4px;
}

.form-row {
  margin-bottom: 24px;
}

/* Hide br tags inside form-row p that sit outside .form-col */
.form-row p > br {
  display: none;
}

/* Hide the leading br inside each label in contact form */
.form-col > br:first-child,
.form-col-full > br:first-child {
  display: none;
}
