
/* Ensure the visible dropzone contents do not block clicks.
   The real clickable element is the invisible file input that
   sits on top of the dropzone. */
.a4m-file-dropzone-inner,
.a4m-file-dropzone-inner * {
    pointer-events: none;
}


/* =========================================================
   TEMPLATE ENGINE (v2.9.138) - Public/Slug page background
   ========================================================= */
.a4m-tally-public-form-wrapper{
  position: relative;
  min-height: 100vh;
  padding: var(--a4m-page-padding-y, 24px) 12px;
  background-color: var(--a4m-page-bg-color, transparent);
  background-image: var(--a4m-page-bg-image, none), var(--a4m-page-bg-gradient, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.a4m-tally-public-form-wrapper::before{
  content:'';
  position:absolute;
  inset:0;
  background: var(--a4m-page-overlay, transparent);
  pointer-events:none;
  z-index:0;
}
.a4m-tally-public-form-wrapper > *{
  position: relative;
  z-index: 1;
}

/* =========================================================
   FINAL FIX — Prevent ANY flash of hidden fields on load
   ========================================================= */
.a4m-tally-form:not(.a4m-init-complete) .a4m-tally-field {
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: none !important;
}

/* =========================================================
   Normal Tally Style Animation (after init-complete)
   ========================================================= */

/* These were already in your CSS — we keep them */
.a4m-tally-form .a4m-tally-field {
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* When JS finishes logic evaluation */
.a4m-tally-form.a4m-ready .a4m-tally-field {
    opacity: 1;
}

/* =========================================================
   MAIN FORM LAYOUT
   ========================================================= */

.a4m-tally-form-wrapper {
  max-width: var(--a4m-frame-width, 720px);
  margin: 0 auto 32px;
}

.a4m-tally-form {
  background: var(--a4m-frame-bg, #ffffff);
  border-radius: var(--a4m-frame-radius, 18px);
  padding: var(--a4m-frame-padding, 24px 24px 20px);
  border: 1px solid var(--a4m-frame-border, #e5e7eb);
  box-shadow: var(--a4m-frame-shadow, 0 12px 24px rgba(15, 23, 42, 0.06));
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.a4m-tally-form:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  transform: translateY(-2px);
}

/* =========================================================
   PRESET: Document (plain page)
   - removes outer card frame
   - fields become simple stacked inputs (Tally-like)
   ========================================================= */
.a4m-tally-form-wrapper.a4m-preset-document {
  max-width: var(--a4m-frame-width, 100%);
}
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-form {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  transition: none;
}
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-form:hover {
  box-shadow: none;
  transform: none;
}
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-field {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  margin-bottom: 18px;
}
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-field:hover {
  box-shadow: none;
  transform: none;
}
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-description {
  margin-bottom: 22px;
  color: #111827;
  font-size: 16px;
}
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-label {
  margin-bottom: 8px;
  font-size: 16px;
}

.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-input-wrap input[type="text"],
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-input-wrap input[type="email"],
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-input-wrap input[type="number"],
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-input-wrap input[type="date"],
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-input-wrap input[type="datetime-local"],
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-input-wrap input[type="tel"],
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-input-wrap input[type="url"],
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-input-wrap textarea,
.a4m-tally-form-wrapper.a4m-preset-document .a4m-tally-input-wrap select {
  font-size: 16px;
  padding: 14px 14px;
  border-radius: 12px;
}



/* =========================================================
   PRESET: Inspector (audit)
   - iAuditor / inspection style
   ========================================================= */
.a4m-tally-public-form-wrapper.a4m-preset-inspector{
  background: #f3f4f6 !important;
  padding: 22px 12px !important;
}
.a4m-tally-public-form-wrapper.a4m-preset-inspector::before{background: transparent !important;}

.a4m-tally-form-wrapper.a4m-preset-inspector{
  max-width: var(--a4m-frame-width, 980px);
}
.a4m-tally-form-wrapper.a4m-preset-inspector .a4m-tally-form{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  border-radius: 16px;
}
.a4m-tally-form-wrapper.a4m-preset-inspector .a4m-tally-title{
  font-size: 22px;
  margin-bottom: 10px;
}
.a4m-tally-form-wrapper.a4m-preset-inspector .a4m-tally-description{
  color: #374151;
  font-size: 15px;
}
.a4m-tally-form-wrapper.a4m-preset-inspector .a4m-tally-field{
  border-color: #e5e7eb;
  background: #ffffff;
}
.a4m-tally-form-wrapper.a4m-preset-inspector .a4m-tally-label{
  font-weight: 600;
}
.a4m-tally-form-wrapper.a4m-preset-inspector .a4m-tally-static{
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 14px;
}

/* =========================================================
   PRESET: Plain White (no frame)
   - forces a clean white page
   - removes outer card frame + field cards
   ========================================================= */
.a4m-tally-public-form-wrapper.a4m-preset-plain_white{
  background: #ffffff !important;
  padding: 0 !important;
}
.a4m-tally-public-form-wrapper.a4m-preset-plain_white::before{background: transparent !important;}

.a4m-tally-form-wrapper.a4m-preset-plain_white .a4m-tally-form{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  transition: none;
}
.a4m-tally-form-wrapper.a4m-preset-plain_white .a4m-tally-form:hover{box-shadow:none;transform:none;}

.a4m-tally-form-wrapper.a4m-preset-plain_white .a4m-tally-field{
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  margin-bottom: 18px;
}
.a4m-tally-form-wrapper.a4m-preset-plain_white .a4m-tally-field:hover{box-shadow:none;transform:none;}

/* =========================
   Step navigation (wizard)
========================= */
.a4m-form-step.a4m-step-hidden{display:none !important;}
.a4m-step-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:18px;
}
.a4m-step-nav[data-layout="spread"]{ justify-content:space-between; }
.a4m-step-nav[data-layout="left"]{ justify-content:flex-start; }
.a4m-step-nav[data-layout="right"]{ justify-content:flex-end; }
.a4m-step-nav[data-layout="center"]{ justify-content:center; }

.a4m-step-nav button{
  border:0;
  border-radius:999px;
  padding:12px 20px;
  cursor:pointer;
}
.a4m-step-nav .a4m-step-progress{
  font-size:13px;
  opacity:0.75;
  min-width:64px;
  text-align:center;
}
.a4m-step-nav.a4m-hide-progress .a4m-step-progress{display:none;}

/* If layout is "spread" but Back is hidden (first visible step), keep Next aligned nicely */
.a4m-step-nav.a4m-no-back[data-layout="spread"]{ justify-content:flex-end; }
.a4m-step-nav button.a4m-disabled,
.a4m-step-nav button:disabled{
  opacity:0.5;
  cursor:not-allowed;
}

.a4m-step-nav .a4m-wizard-back{
  background: transparent;
  border: 1px solid rgba(0,0,0,0.18);
}

/* Optional step titles (when using Step / Page Break) */
.a4m-step-title{margin:0 0 14px 0;padding:0 0 10px 0;border-bottom:1px solid rgba(0,0,0,0.08);}
.a4m-step-title-text{display:block;font-weight:600;font-size:16px;line-height:1.2;}

.a4m-tally-form-wrapper.a4m-preset-plain_white .a4m-tally-description{
  margin-bottom: 22px;
  color: #111827;
  font-size: 16px;
}
.a4m-tally-form-wrapper.a4m-preset-plain_white .a4m-tally-label{
  margin-bottom: 8px;
  font-size: 16px;
}


.a4m-tally-description {
  margin-bottom: 18px;
  color: #4b5563;
  font-size: 14px;
}

/* =========================================================
   FIELDS
   ========================================================= */

.a4m-tally-field {
  margin-bottom: var(--a4m-field-gap, 14px);
  padding: var(--a4m-card-padding, 10px 12px);
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  background: var(--a4m-card-bg, linear-gradient(180deg, #f9fafb, #f3f4f6));
  position: relative;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.a4m-tally-field:hover {
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.a4m-tally-field.a4m-tally-hidden {
  display: none;
}

.a4m-tally-label {
  display: block;
  margin-bottom: 6px;
  color: var(--a4m-label-color, #111827);
  font-family: var(--a4m-font-family, inherit);
  font-size: var(--a4m-font-size, 14px);
  font-weight: var(--a4m-font-weight, 600);
  font-style: var(--a4m-font-style, normal);
}

.a4m-required {
  color: var(--a4m-required-color, #ef4444);
  margin-left: 4px;
}

/* =========================================================
   INPUTS
   ========================================================= */

.a4m-tally-input-wrap input[type="text"],
.a4m-tally-input-wrap input[type="email"],
.a4m-tally-input-wrap input[type="number"],
.a4m-tally-input-wrap input[type="date"],
.a4m-tally-input-wrap input[type="datetime-local"],
.a4m-tally-input-wrap textarea,
.a4m-tally-input-wrap select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
/* Keep all single-line inputs the same height (fixes iOS/Safari date field being shorter before selection) */
:root{
  --a4m-input-height: 44px;
}
.a4m-tally-input-wrap input[type="text"],
.a4m-tally-input-wrap input[type="email"],
.a4m-tally-input-wrap input[type="number"],
.a4m-tally-input-wrap input[type="date"],
.a4m-tally-input-wrap input[type="datetime-local"],
.a4m-tally-input-wrap input[type="tel"],
.a4m-tally-input-wrap input[type="url"],
.a4m-tally-input-wrap select{
  min-height: var(--a4m-input-height, 44px);
  height: var(--a4m-input-height, 44px);
  line-height: calc(var(--a4m-input-height, 44px) - 2px);
  display: block;
}

/* Locked date field (still submits value) */
.a4m-tally-input-wrap input[type="date"].a4m-date-locked{
  pointer-events: none;
  background: #f9fafb;
  color: #111827;
}

}

/* iOS/Safari date inputs can overflow on small screens if box-sizing isn't border-box.
   Also give a bit of right padding so the picker indicator doesn't overlap text. */
.a4m-tally-input-wrap input[type="date"],
.a4m-tally-input-wrap input[type="datetime-local"] {
  /* Make date inputs look/behave like normal text inputs on mobile.
     Safari (iOS) tends to render date inputs as a centered “button-like” control.
     These rules keep it aligned and sized like other fields. */
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  padding-right: 12px;
}

/* Safari-specific inner parts for date inputs */
.a4m-tally-input-wrap input[type="date"]::-webkit-date-and-time-value,
.a4m-tally-input-wrap input[type="datetime-local"]::-webkit-date-and-time-value,
.a4m-tally-input-wrap input[type="date"]::-webkit-datetime-edit,
.a4m-tally-input-wrap input[type="datetime-local"]::-webkit-datetime-edit {
  text-align: left;
}

/* Ensure the date text doesn’t appear vertically off on iOS */
.a4m-tally-input-wrap input[type="date"],
.a4m-tally-input-wrap input[type="datetime-local"] {
  line-height: normal;
}

.a4m-tally-input-wrap input:focus,
.a4m-tally-input-wrap textarea:focus,
.a4m-tally-input-wrap select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px #4f46e5;
  outline: none;
}

/* =========================================================
   OPTIONS (RADIO / CHECKBOX / BUTTONS)
   ========================================================= */

.a4m-tally-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--a4m-btn-gap, 6px);
}

.a4m-tally-options-list label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: var(--a4m-btn-height, 38px);
  border-radius: var(--a4m-btn-radius, 10px);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.a4m-tally-options-list label:hover {
  border-color: #4f46e5;
  box-shadow: 0 3px 6px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.a4m-tally-options-list input[type="radio"],
.a4m-tally-options-list input[type="checkbox"] {
  accent-color: #4f46e5;
}

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.a4m-tally-form button[type="submit"] {
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  margin-top: 10px;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.a4m-tally-form button[type="submit"]:hover {
  background: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
}

/* =========================================================
   LOGIC STATES
   ========================================================= */

.a4m-tally-disabled {
  opacity: 0.6;
}

.a4m-tally-readonly {
  position: relative;
}

.a4m-tally-readonly::after {
  content: "readonly";
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 10px;
  text-transform: uppercase;
  color: #9ca3af;
}

/* Thick border used by hide-box */
.a4m-tally-hide-box {
  border: 3px solid #f97373;
  background: #fef2f2;
}

.a4m-tally-anim-show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.a4m-tally-anim-hide {
  opacity: 0;
  transform: translateY(-4px);
}

/* =========================================================
   VALIDATION
   ========================================================= */

.a4m-error-field {
  border-radius: 14px;
  box-shadow: 0 0 0 1px #fca5a5;
}

.a4m-error-field .a4m-tally-input-wrap input,
.a4m-error-field .a4m-tally-input-wrap textarea,
.a4m-error-field .a4m-tally-input-wrap select {
  border-color: #fca5a5;
}

.a4m-error-msg {
  margin-top: 6px;
  font-size: 12px;
  color: #b91c1c;
}


/* Static content card */
.a4m-tally-field-static .a4m-static-content {
  padding: 18px 22px;
  border-radius: 14px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}

.a4m-tally-field-static .a4m-static-content p {
  margin: 0 0 8px;
}


/* =========================================================
   FILE UPLOAD PROGRESS - v2.7.0 compact UI
   ========================================================= */
/* Upload progress bar */
.a4m-upload-progress {
  display: block;
  width: 100%;
  max-width: 450px;
  height: 14px;
  border-radius: 7px;
  background: #e5e7eb;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.a4m-upload-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transition: width 0.2s linear;
}

.a4m-upload-percent {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  z-index: 10;
  pointer-events: none;
}


/* === Fancy file upload UI (A4M-style) === */
.a4m-file-upload-ui {
  position: relative;
}

.a4m-file-dropzone {
  position: relative;
  border: 2px dashed rgba(148, 163, 184, 0.9);
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.a4m-file-drop-inner {
  text-align: center;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
}

.a4m-file-arrow {
  font-size: 26px;
  margin-bottom: 8px;
}

.a4m-file-text {
  font-weight: 500;
}

.a4m-file-preview-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.a4m-file-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.12),
    0 4px 10px rgba(15, 23, 42, 0.08);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.a4m-file-thumb {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
  overflow: hidden;
  flex-shrink: 0;
}

.a4m-file-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.a4m-file-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  word-break: break-all;
}

.a4m-file-remove {
  border: 1px solid #f97373;
  background: #fef2f2;
  color: #b91c1c;
  min-width: 70px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  padding: 0 10px;
  cursor: pointer;
}

.a4m-file-remove:focus {
  outline: 2px solid rgba(248, 113, 113, 0.6);
  outline-offset: 2px;
}

/* Invisible real file input over the whole dropzone */
.a4m-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* After a file is selected, let clicks reach the preview + remove button */
.a4m-file-input.a4m-has-file {
  pointer-events: none;
}

/* Slightly smaller on very small screens */
@media (max-width: 480px) {
  .a4m-file-card {
    max-width: 100%;
    padding: 12px 14px;
  }
  .a4m-file-thumb {
    width: 64px;
    height: 64px;
  }
  .a4m-file-name {
    font-size: 14px;
  }
}

/* Submit Button Frontend Defaults */
.a4m-tally-submit-btn{transition:all .2s ease;}


/* Inline file upload rules */
.a4m-file-hint {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

.a4m-file-hint-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.a4m-file-hint-item {
  white-space: nowrap;
}


/* Force file rules to always stay on ONE line */
.a4m-file-hint-inline {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 14px;
  white-space: nowrap;
  overflow-x: auto;
}

.a4m-file-hint-item {
  white-space: nowrap;
  flex-shrink: 0;
}


/* Screenshot-style file rules bar */
.a4m-file-hint-inline {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 22px;
  white-space: nowrap;
  overflow-x: auto;
  padding: 12px 16px;
  background: #f3f4f6;
  border-radius: 12px;
  font-size: 14px;
  color: #6b7280;
}

.a4m-file-hint-item {
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}


/* Compact one-line file rules bar */
.a4m-file-hint-inline {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 12px;
  white-space: nowrap;
  overflow-x: auto;
  padding: 6px 10px;
  background: #f5f6f8;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
  color: #7a7f87;
}

.a4m-file-hint-item {
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}


/* Ultra-compact one-line file rules bar */
.a4m-file-hint-inline {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 8px;
  white-space: nowrap;
  overflow-x: auto;
  padding: 4px 8px;
  background: #f5f7fa;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.1;
  color: #7a8088;
}

.a4m-file-hint-item {
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}


/* Frontend form status + password lock */
.a4m-form-status-bar--frontend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.a4m-form-status-text--protected {
  font-weight: 600;
}

.a4m-form-status-lock {
  font-size: 14px;
}

.a4m-tally-form-wrapper--locked .a4m-tally-form-locked {
  max-width: 420px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.a4m-tally-lock-message {
  margin-bottom: 10px;
}

.a4m-tally-password-input {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
}

.a4m-tally-password-button {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.a4m-tally-lock-error {
  color: #b91c1c;
  margin-top: 6px;
}


/* --- Professional Password Lock UI --- */
.a4m-tally-lock-card {
  max-width: 420px;
  margin: 60px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  text-align: center;
}

.a4m-tally-lock-card .a4m-tally-lock-message {
  font-size: 16px;
  margin-bottom: 18px;
  color: #222;
}

.a4m-tally-password-input--modern {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  font-size: 15px;
  outline: none;
}

.a4m-tally-password-input--modern:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.a4m-tally-password-button--modern {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #2563eb);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a4m-tally-password-button--modern:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.a4m-tally-lock-error {
  margin-top: 12px;
  background: #fee2e2;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* === Button Select frontend styling === */
.a4m-tally-field[data-a4m-type="buttons"] .a4m-tally-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.a4m-tally-field[data-a4m-type="buttons"] .a4m-tally-options-list label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-height: 32px;
}

.a4m-tally-field[data-a4m-type="buttons"] .a4m-tally-options-list input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.a4m-tally-field[data-a4m-type="buttons"] .a4m-tally-options-list label span {
  display: inline-block;
  line-height: 1.2;
}

.a4m-tally-field[data-a4m-type="buttons"] .a4m-tally-options-list label.a4m-btn-active {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
}

/* === Fallback Button Size & Shape Frontend Fix === */
.a4m-btn-sm { font-size:13px; padding:4px 10px; }
.a4m-btn-md { font-size:15px; padding:7px 16px; }
.a4m-btn-lg { font-size:17px; padding:10px 20px; }

.a4m-btn-square { border-radius:4px; }
.a4m-btn-rounded { border-radius:12px; }
.a4m-btn-pill { border-radius:999px; }


.a4m-btn-size-sm span {
  font-size: 13px;
  padding: 6px 12px;
}
.a4m-btn-size-md span {
  font-size: 15px;
  padding: 10px 18px;
}
.a4m-btn-size-lg span {
  font-size: 18px;
  padding: 14px 24px;
}

.a4m-btn-shape-square span {
  border-radius: 4px;
}
.a4m-btn-shape-rounded span {
  border-radius: 12px;
}
.a4m-btn-shape-pill span {
  border-radius: 999px;
}

/* === Button Select Shape (FORCED FIX) === */
.a4m-tally-options-list label.a4m-btn-shape-square,
.a4m-tally-options-list label.a4m-btn-shape-square span {
  border-radius: 4px !important;
}

.a4m-tally-options-list label.a4m-btn-shape-rounded,
.a4m-tally-options-list label.a4m-btn-shape-rounded span {
  border-radius: 12px !important;
}

.a4m-tally-options-list label.a4m-btn-shape-pill,
.a4m-tally-options-list label.a4m-btn-shape-pill span {
  border-radius: 999px !important;
}
/* === Button Select Size (REMAPPED SCALE) === */
.a4m-btn-size-sm span {   /* Extra Small */
  font-size: 11px !important;
  padding: 4px 8px !important;
}

.a4m-btn-size-md span {   /* Small */
  font-size: 13px !important;
  padding: 6px 12px !important;
}

.a4m-btn-size-lg span {   /* Medium */
  font-size: 15px !important;
  padding: 10px 18px !important;
}

.a4m-btn-size-xl span {  /* Large */
  font-size: 18px !important;
  padding: 14px 24px !important;
}

/* TinyMCE image alignment fixes */
.a4m-static-content img.alignleft{float:left;margin-right:15px;}
.a4m-static-content img.alignright{float:right;margin-left:15px;}
.a4m-static-content img.aligncenter{display:block;margin-left:auto;margin-right:auto;}
.a4m-static-content img{max-width:100%;height:auto;}


/* =========================================================
   PUBLIC FORM WRAPPER & STATIC CONTENT ALIGNMENT
   ========================================================= */

/* Center the public slug form nicely in the theme content area */
.a4m-tally-public-form-wrapper {
  max-width: 720px;
  margin: 0 auto 40px;
}

/* Make the injected form title look neat & centred */
.a4m-tally-form-title {
  margin: 0 0 16px;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
}

/* Ensure static content fields render consistently on slug & posts */
.a4m-tally-field-static .a4m-static-content {
  text-align: center;
}

.a4m-tally-field-static .a4m-static-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* ---------------------------------------------------------------------
 * Form Templates (v2.9.122)
 * -------------------------------------------------------------------*/
.a4m-tally-form-wrapper,
.a4m-tally-lock-card {
  background: var(--a4m-tpl-bg, transparent);
  max-width: var(--a4m-tpl-width, 720px);
  border-radius: var(--a4m-tpl-radius, 12px);
  padding: var(--a4m-tpl-padding, 18px);
  margin: 0 auto;
  font-family: var(--a4m-font-family, inherit);
  font-size: var(--a4m-font-size, inherit);
  font-weight: var(--a4m-font-weight, inherit);
  font-style: var(--a4m-font-style, normal);
}

/* Shadow toggle */
.a4m-tally-form-wrapper,
.a4m-tally-lock-card {
  box-shadow: calc(var(--a4m-tpl-shadow, 1) * 0px) 0px calc(var(--a4m-tpl-shadow, 1) * 18px) rgba(0,0,0,0.08);
}

/* Field styling */
.a4m-tally-form-wrapper .a4m-field-label,
.a4m-tally-form-wrapper label,
.a4m-tally-form-wrapper .a4m-label {
  color: var(--a4m-label-color, inherit);
}

.a4m-tally-form-wrapper input[type="text"],
.a4m-tally-form-wrapper input[type="email"],
.a4m-tally-form-wrapper input[type="number"],
.a4m-tally-form-wrapper input[type="date"],
.a4m-tally-form-wrapper input[type="datetime-local"],
.a4m-tally-form-wrapper input[type="tel"],
.a4m-tally-form-wrapper input[type="url"],
.a4m-tally-form-wrapper textarea,
.a4m-tally-form-wrapper select,
.a4m-tally-form-wrapper .a4m-input,
.a4m-tally-form-wrapper .a4m-textarea,
.a4m-tally-form-wrapper .a4m-select {
  background: var(--a4m-field-bg, #ffffff);
  border-color: var(--a4m-field-border, #e5e7eb);
  color: inherit;
}
.a4m-tally-form-wrapper.a4m-template-plain {
  background: transparent;
}

/* Coloured background */
.a4m-tally-form-wrapper.a4m-template-coloured {
  background: var(--a4m-form-bg, #f5f7fb);
  padding: 24px;
  border-radius: 12px;
}

/* Card / Sectioned layout */
.a4m-tally-form-wrapper.a4m-template-card .a4m-tally-field {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  margin-bottom: 16px;
}

/* Compact / Minimal */
.a4m-tally-form-wrapper.a4m-template-compact .a4m-tally-field {
  margin-bottom: 8px;
}
.a4m-tally-form-wrapper.a4m-template-compact .a4m-tally-label {
  display: block;
  margin-bottom: 6px;
  color: var(--a4m-label-color, #111827);
  font-family: var(--a4m-font-family, inherit);
  font-size: var(--a4m-font-size, 14px);
  font-weight: var(--a4m-font-weight, 600);
  font-style: var(--a4m-font-style, normal);
}

/* Side-by-side (2 columns on desktop) */
.a4m-tally-form-wrapper.a4m-template-side-by-side .a4m-form-inner {
  width: 100%;
}

@media (min-width: 768px) {
  .a4m-tally-form-wrapper.a4m-template-side-by-side .a4m-form-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  /* Full-width elements */
  .a4m-tally-form-wrapper.a4m-template-side-by-side .a4m-tally-description,
  .a4m-tally-form-wrapper.a4m-template-side-by-side .a4m-tally-submit-btn,
  .a4m-tally-form-wrapper.a4m-template-side-by-side .a4m-tally-field[data-a4m-type="file_upload"],
  .a4m-tally-form-wrapper.a4m-template-side-by-side .a4m-tally-field[data-a4m-type="static"] {
    grid-column: 1 / -1;
  }
}


/* Template styling (variables set inline on wrapper) */
.a4m-tally-form-wrapper {
  max-width: var(--a4m-tpl-width, 100%);
}
.a4m-template-card .a4m-tally-form-wrapper,
.a4m-template-card.a4m-tally-form-wrapper,
.a4m-template-card.a4m-tally-lock-card {
  background: #fff;
  border-radius: var(--a4m-tpl-radius, 12px);
  padding: var(--a4m-tpl-padding, 18px);
  box-shadow: calc(var(--a4m-tpl-shadow, 1) * 0px) calc(var(--a4m-tpl-shadow, 1) * 2px) calc(var(--a4m-tpl-shadow, 1) * 18px) rgba(0,0,0,0.08);
}
.a4m-template-colored .a4m-tally-form-wrapper,
.a4m-template-colored.a4m-tally-form-wrapper,
.a4m-template-colored.a4m-tally-lock-card {
  background: var(--a4m-tpl-bg, #f6f7f7);
  border-radius: var(--a4m-tpl-radius, 12px);
  padding: var(--a4m-tpl-padding, 18px);
}
.a4m-template-full .a4m-tally-form-wrapper,
.a4m-template-full.a4m-tally-form-wrapper,
.a4m-template-full.a4m-tally-lock-card {
  max-width: 100%;
}


/* Divider between questions (uses --a4m-divider: 0|1) */
.a4m-tally-field::after{
  content:'';
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: calc(-1 * (var(--a4m-field-gap, 14px) / 2));
  height:1px;
  background: rgba(15, 23, 42, calc(var(--a4m-divider, 0) * 0.10));
  pointer-events:none;
}
.a4m-tally-field:last-child::after{ display:none; }


/* Internal Smart Captcha (honeypot) */
.a4m-captcha-hp{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;}


/* Visible Captcha Field */
.a4m-tally-field-captcha .a4m-captcha-box{
  display:inline-block;
  padding:10px 14px;
  border:1px solid rgba(0,0,0,0.12);
  border-radius:12px;
  font-weight:700;
  letter-spacing:2px;
  margin-bottom:10px;
  user-select:none;
}
.a4m-tally-field-captcha .a4m-captcha-input{
  width:100%;
}


/* Inline form errors (no wp_die) */
.a4m-form-errors{background:#fdecea;border:1px solid #f5c2c7;padding:12px;margin:0 0 16px 0;border-radius:8px;}
.a4m-form-errors .a4m-error{color:#842029;font-size:14px;line-height:1.4;margin:0 0 6px 0;}
.a4m-form-errors .a4m-error:last-child{margin-bottom:0;}

/* Back-compat / new markup helpers */
.a4m-form-errors .a4m-form-error-item{color:#842029;font-size:14px;line-height:1.4;margin:0 0 6px 0;}
.a4m-form-errors .a4m-form-error-item:last-child{margin-bottom:0;}
.a4m-field-error{color:#842029;font-size:13px;line-height:1.4;margin-top:8px;}


/* --- A4M extra field types --- */
.a4m-rating { 
  display:flex; gap:6px; flex-wrap:wrap; 
  --a4m-star-color:#f5c518; 
  --a4m-star-off:#cfcfcf;
  --a4m-star-size:22px; 
}
.a4m-rating-star { cursor:pointer; font-size:var(--a4m-star-size); line-height:1; position:relative; }
.a4m-rating-star input { position:absolute; opacity:0; pointer-events:none; }
.a4m-rating-star span[aria-hidden="true"] { display:inline-block; color:var(--a4m-star-off) !important; transition:transform .08s ease; }
.a4m-rating-star.is-on span[aria-hidden="true"] { color:var(--a4m-star-color) !important; }
.a4m-rating-star input:checked + span { transform: scale(1.08); }
.a4m-emoji-options { display:flex; gap:10px; flex-wrap:wrap; }
.a4m-emoji-option { display:flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid rgba(0,0,0,.15); border-radius:10px; cursor:pointer; }
.a4m-emoji-option input { margin:0; }
.a4m-emoji { font-size:20px; }

.a4m-linear-labels { display:flex; justify-content:space-between; font-size:12px; opacity:.8; margin-bottom:6px; }
.a4m-linear-options { display:flex; flex-wrap:wrap; gap:6px; }
.a4m-linear-option { display:inline-flex; align-items:center; gap:6px; padding:6px 8px; border:1px solid rgba(0,0,0,.15); border-radius:10px; cursor:pointer; }

.a4m-matrix { width:100%; border-collapse:collapse; }
.a4m-matrix th, .a4m-matrix td { border:1px solid rgba(0,0,0,.12); padding:8px; text-align:center; }
.a4m-matrix th { text-align:left; }
.a4m-tally-muted { font-size:12px; opacity:.7; }


/* Emoji rating: hide option labels when configured */
.a4m-emoji-no-labels .a4m-option-text{display:none;}

/* Matrix required validation: highlight missing rows inline */
.a4m-matrix-row-missing th,
.a4m-matrix-row-missing td {
  box-shadow: inset 0 0 0 2px rgba(220, 0, 0, 0.45);
}


/* Number field formatting + preset buttons */
.a4m-number-wrap{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.a4m-number-affix{opacity:.85}
.a4m-number-input{min-width:160px}
.a4m-number-buttons{display:flex;gap:8px;flex-wrap:wrap}
.a4m-number-btn{cursor:pointer}
.a4m-number-btn.is-selected{outline:2px solid rgba(0,0,0,.25)}

/* ------------------------------
   Submit button loading UI
-------------------------------*/
.a4m-tally-submit-btn.a4m-disabled,
.a4m-tally-submit-btn:disabled{
  opacity:.75;
  cursor: not-allowed;
}

.a4m-tally-submit-btn.a4m-is-loading{
  cursor: progress;
}

.a4m-tally-submit-btn .a4m-submit-spinner{
  display:inline-block;
  width:1em;
  height:1em;
  border:2px solid currentColor;
  border-right-color: transparent;
  border-radius:50%;
  animation:a4mSpin .8s linear infinite;
  margin-right:8px;
  vertical-align:middle;
}

.a4m-tally-submit-btn.a4m-loading-icon-only .a4m-submit-spinner{
  margin-right:0;
}

.a4m-tally-submit-btn .a4m-submit-dots{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-right:8px;
  vertical-align:middle;
}
.a4m-tally-submit-btn.a4m-loading-icon-only .a4m-submit-dots{
  margin-right:0;
}
.a4m-tally-submit-btn .a4m-submit-dots span{
  display:inline-block;
  width:0.25em;
  height:0.25em;
  border-radius:50%;
  background: currentColor;
  opacity:0.35;
  animation:a4mDotPulse 1s infinite ease-in-out;
}
.a4m-tally-submit-btn .a4m-submit-dots span:nth-child(2){animation-delay:0.15s;}
.a4m-tally-submit-btn .a4m-submit-dots span:nth-child(3){animation-delay:0.3s;}

/* Alternative loading icons */
.a4m-tally-submit-btn .a4m-submit-ring{
  display:inline-block;
  width:1em;
  height:1em;
  border:2px solid currentColor;
  border-color: currentColor transparent currentColor transparent;
  border-radius:50%;
  animation:a4mSpin .9s linear infinite;
  margin-right:8px;
  vertical-align:middle;
}

.a4m-tally-submit-btn.a4m-loading-icon-only .a4m-submit-ring{
  margin-right:0;
}

.a4m-tally-submit-btn .a4m-submit-pulse{
  display:inline-block;
  width:0.95em;
  height:0.95em;
  border-radius:50%;
  background: currentColor;
  opacity:0.55;
  animation:a4mPulse 1s infinite ease-in-out;
  margin-right:8px;
  vertical-align:middle;
}

.a4m-tally-submit-btn.a4m-loading-icon-only .a4m-submit-pulse{
  margin-right:0;
}

.a4m-tally-submit-btn .a4m-submit-bars{
  display:inline-flex;
  align-items:flex-end;
  gap:3px;
  margin-right:8px;
  vertical-align:middle;
}
.a4m-tally-submit-btn.a4m-loading-icon-only .a4m-submit-bars{
  margin-right:0;
}
.a4m-tally-submit-btn .a4m-submit-bars span{
  display:inline-block;
  width:0.18em;
  height:1em;
  background: currentColor;
  opacity:0.6;
  border-radius:2px;
  animation:a4mBars 1s infinite ease-in-out;
}
.a4m-tally-submit-btn .a4m-submit-bars span:nth-child(2){animation-delay:0.12s;}
.a4m-tally-submit-btn .a4m-submit-bars span:nth-child(3){animation-delay:0.24s;}
.a4m-tally-submit-btn .a4m-submit-bars span:nth-child(4){animation-delay:0.36s;}

.a4m-tally-submit-btn .a4m-submit-wave{
  display:inline-flex;
  align-items:flex-end;
  gap:3px;
  margin-right:8px;
  vertical-align:middle;
}
.a4m-tally-submit-btn.a4m-loading-icon-only .a4m-submit-wave{
  margin-right:0;
}
.a4m-tally-submit-btn .a4m-submit-wave span{
  display:inline-block;
  width:0.16em;
  height:0.9em;
  background: currentColor;
  opacity:0.55;
  border-radius:2px;
  animation:a4mWave 1s infinite ease-in-out;
}
.a4m-tally-submit-btn .a4m-submit-wave span:nth-child(2){animation-delay:0.1s;}
.a4m-tally-submit-btn .a4m-submit-wave span:nth-child(3){animation-delay:0.2s;}
.a4m-tally-submit-btn .a4m-submit-wave span:nth-child(4){animation-delay:0.3s;}
.a4m-tally-submit-btn .a4m-submit-wave span:nth-child(5){animation-delay:0.4s;}

.a4m-tally-submit-btn .a4m-submit-sr{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

@keyframes a4mSpin{
  to{transform:rotate(360deg);}
}

@keyframes a4mDotPulse{
  0%, 100%{opacity:0.35; transform:translateY(0);}
  50%{opacity:1; transform:translateY(-1px);}
}

@keyframes a4mPulse{
  0%, 100%{transform:scale(0.85); opacity:0.45;}
  50%{transform:scale(1.1); opacity:1;}
}

@keyframes a4mBars{
  0%, 100%{transform:scaleY(0.35); opacity:0.35;}
  50%{transform:scaleY(1); opacity:1;}
}

@keyframes a4mWave{
  0%, 100%{transform:scaleY(0.4); opacity:0.35;}
  50%{transform:scaleY(1); opacity:1;}
}



/* ------------------------------
   Submit progress overlay (center screen)
-------------------------------*/
#a4m-submit-overlay.a4m-submit-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999999;
  background: rgba(255,255,255,0.75);
}

/* Backdrop styles */
#a4m-submit-overlay.a4m-backdrop-light{ background: rgba(255,255,255,0.75); }
#a4m-submit-overlay.a4m-backdrop-dim{ background: rgba(0,0,0,0.35); }
#a4m-submit-overlay.a4m-backdrop-none{ background: transparent; }

#a4m-submit-overlay.a4m-submit-overlay.is-visible{
  display: flex;
}

body.a4m-submit-overlay-open{
  cursor: progress;
}

#a4m-submit-overlay .a4m-submit-overlay-card{
  max-width: 520px;
  width: 100%;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(0,0,0,0.14);
  border: 1px solid rgba(0,0,0,0.08);
}

/* Card style options */
#a4m-submit-overlay.a4m-card-pill .a4m-submit-overlay-card{
  width: auto;
  border-radius: 999px;
}

#a4m-submit-overlay.a4m-card-none .a4m-submit-overlay-card{
  width: auto;
  max-width: 9999px;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Card styles */
#a4m-submit-overlay.a4m-card-card .a4m-submit-overlay-card{ /* default */ }
#a4m-submit-overlay.a4m-card-pill .a4m-submit-overlay-card{
  max-width: 520px;
  width: auto;
  border-radius: 999px;
}
#a4m-submit-overlay.a4m-card-pill .a4m-submit-overlay-inner{
  padding: 18px 22px;
}

#a4m-submit-overlay.a4m-card-none .a4m-submit-overlay-card{
  max-width: none;
  width: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}
#a4m-submit-overlay.a4m-card-none .a4m-submit-overlay-inner{
  padding: 0;
}
#a4m-submit-overlay.a4m-card-none .a4m-submit-overlay-content{
  background: rgba(255,255,255,0.92);
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
}

#a4m-submit-overlay .a4m-submit-overlay-inner{
  padding: 22px 20px;
}

#a4m-submit-overlay.a4m-card-pill .a4m-submit-overlay-inner{
  padding: 16px 18px;
}

#a4m-submit-overlay.a4m-card-none .a4m-submit-overlay-inner{
  padding: 0;
}

#a4m-submit-overlay .a4m-submit-overlay-content{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-size: 16px;
  line-height: 1.3;
  color: #111;
}

/* When card is none, show a pill for legibility */
#a4m-submit-overlay.a4m-card-none .a4m-submit-overlay-content{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  padding: 14px 18px;
  border-radius: 999px;
}

#a4m-submit-overlay .a4m-submit-spinner{
  width: 28px;
  height: 28px;
  border-width: 3px;
  margin-right: 0;
}

/* Overlay icon sizing */
#a4m-submit-overlay.a4m-size-sm .a4m-submit-spinner,
#a4m-submit-overlay.a4m-size-sm .a4m-submit-ring{ width: 22px; height: 22px; border-width: 3px; }
#a4m-submit-overlay.a4m-size-md .a4m-submit-spinner,
#a4m-submit-overlay.a4m-size-md .a4m-submit-ring{ width: 28px; height: 28px; border-width: 3px; }
#a4m-submit-overlay.a4m-size-lg .a4m-submit-spinner,
#a4m-submit-overlay.a4m-size-lg .a4m-submit-ring{ width: 36px; height: 36px; border-width: 4px; }

#a4m-submit-overlay.a4m-size-sm .a4m-submit-dots span{ width: 5px; height: 5px; }
#a4m-submit-overlay.a4m-size-md .a4m-submit-dots span{ width: 6px; height: 6px; }
#a4m-submit-overlay.a4m-size-lg .a4m-submit-dots span{ width: 8px; height: 8px; }

#a4m-submit-overlay.a4m-size-sm .a4m-submit-bars span{ width: 4px; height: 16px; }
#a4m-submit-overlay.a4m-size-md .a4m-submit-bars span{ width: 4px; height: 20px; }
#a4m-submit-overlay.a4m-size-lg .a4m-submit-bars span{ width: 5px; height: 26px; }

#a4m-submit-overlay.a4m-size-sm .a4m-submit-wave span{ width: 3px; height: 16px; }
#a4m-submit-overlay.a4m-size-md .a4m-submit-wave span{ width: 4px; height: 20px; }
#a4m-submit-overlay.a4m-size-lg .a4m-submit-wave span{ width: 5px; height: 26px; }

#a4m-submit-overlay.a4m-size-sm .a4m-submit-pulse{ width: 20px; height: 20px; }
#a4m-submit-overlay.a4m-size-md .a4m-submit-pulse{ width: 26px; height: 26px; }
#a4m-submit-overlay.a4m-size-lg .a4m-submit-pulse{ width: 34px; height: 34px; }

#a4m-submit-overlay .a4m-submit-dots{
  margin-right: 0;
}

#a4m-submit-overlay .a4m-submit-dots span{
  width: 6px;
  height: 6px;
}

/* -------------------------------------
   Other option (custom answer)
--------------------------------------*/
.a4m-other-wrap{
  display: none;
  margin-top: 10px;
}

.a4m-other-wrap .a4m-other-input{
  width: 100%;
  box-sizing: border-box;
}

