/* =====================================================================
   AP Zoho Forms — front-end styling.
   The new forms carry the `.zoho-form` class (and `.apzf-form`), so the
   established `.zoho-form` rules below style them exactly as the previous
   plugin did. Layout (two-columns, input widths, button) is owned here;
   button border/colour is left to the theme (e.g. Elementor button styles).
   ===================================================================== */

/* Accessibility: label kept in the DOM for screen readers but visually hidden
   (used when an imported Zoho field had no visible label — placeholder-only). */
.apzf-form .apzf-label-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.zoho-form .form-label {
    margin-bottom: .5rem;
}

.zoho-form .checkbox-form-item .form-label {
    margin-bottom: 0;
}

.zoho-form .form-item,
.zoho-form .checkbox-form-item {
    margin-bottom: 0.7rem;
}

.zoho-form .two-columns {
    display: flex;
    gap: 0.7rem;
}

.zoho-form .two-columns .form-item {
    flex-grow: 1;
    width: 50%;
}

.zoho-form .submit-button {
    padding: 14px 40px;
}

.zoho-form .zf-instruction {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.zoho-form .checkbox-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.zoho-form-messages.error {
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  color: #58151c;
  background-color: #f9d7da;
  border-left: 0.25rem solid #f1aeb5;
}

.zoho-form-messages.success {
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  color: #0a3622;
  background-color: #d1e7dd;
  border-left: 0.25rem solid #a3cfbb;
}

.zoho-form .error.error-message {
  font-size: 12px;
    font-weight: 600;
    margin: 10px 0 0 0;
}

.url-field-wrapper {
    position: absolute;
    left: -9999px;
}

.zoho-form input:not([type="checkbox"]) {
    width: 100%;
}

.zoho-form textarea {
    vertical-align: top;
}

@media (max-width:767px) {

	.zoho-form .two-columns .form-item {
		width:100%;
	}

  .zoho-form .two-columns {
      display: flex;
      gap: 0;
      flex-direction: column;
  }

}

/* Customisations per site */

.atc-contactform .submit-button,
.atc-rcform .submit-button {
    width: 100%;
}

.zoho-form select {
    padding: 10px 5px;
    width: 100%;
    font-size: 14px;
    border-color: #E3E3E4;
    font-family: "FSMe", Sans-serif;
}

.footer-form .aps-contactform.zoho-form,
.footer-form .aps-contactform.zoho-form .zf-instruction {
    color: white;
}

.footer-form .aps-contactform.zoho-form input,
.footer-form .aps-contactform.zoho-form textarea {
    border: none;
}

.footer-form .apzf-form .form-item label,
.footer-form .zoho-form .form-item label {
    display: none;
}

.trizo-rcform {
    background-color: #f5f5f5;
    padding: 15px;
}
