/* Asteric Corporate Account Opening Form styles */
.acf-wrap {
  max-width: 860px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.4;
}
.acf-form * { box-sizing: border-box; }

.acf-cash-note {
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: #a3211f;
  margin: 0 0 8px;
}

/* ---------- Header ---------- */
.acf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 14px;
  border-bottom: 3px solid #1c3f94;
}
.acf-logo { height: 56px; width: auto; }
.acf-header-mid { flex: 1; text-align: center; }
.acf-header-title { font-size: 19px; font-weight: 800; color: #1a1a1a; letter-spacing: .5px; }
.acf-header-sub { font-size: 11px; font-weight: 700; color: #444; margin-top: 4px; }
.acf-header-note { font-size: 11px; font-style: italic; color: #555; margin-top: 2px; }
.acf-photo-box {
  width: 130px;
  min-height: 85px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10.5px;
  color: #555;
  padding: 6px;
}
.acf-photo-box input[type="file"] { display: block; margin-top: 6px; font-size: 10px; width: 100%; }

/* ---------- Panel ---------- */
.acf-panel {
  border: 1px solid #333;
  border-top: none;
  padding: 18px 20px 24px;
}

/* Blue section bands (mirrors the PDF's solid blue section headers) */
.acf-band {
  background: #1c3f94;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 8px 14px;
  margin: 26px 0 16px;
  border-radius: 2px;
}
.acf-subheading {
  font-weight: 700;
  font-size: 13.5px;
  color: #1c3f94;
  margin: 14px 0 8px;
}
.acf-subhead-plain {
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
  margin: 18px 0 6px;
}
.acf-declaration {
  font-size: 12.5px;
  color: #333;
  background: #f7f8fb;
  border: 1px solid #dfe3ee;
  padding: 12px 14px;
  border-radius: 3px;
  margin: 18px 0;
}
.acf-source-note {
  font-size: 11.5px;
  color: #886400;
  background: #fff8e6;
  border: 1px solid #f0dfa0;
  padding: 8px 10px;
  border-radius: 3px;
  margin: -4px 0 16px;
}

/* Signatory card grouping */
.acf-signatory-card {
  border: 1px solid #c7d0e8;
  border-radius: 4px;
  padding: 14px 16px 6px;
  margin-bottom: 18px;
  background: #fafbff;
}

/* ---------- Field groups (shared with individual form look) ---------- */
.af-field { margin-bottom: 14px; }
.af-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.af-field input[type="text"],
.af-field input[type="email"],
.af-field input[type="tel"],
.af-field input[type="number"],
.af-field input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #555;
  border-radius: 2px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.af-field input[type="file"] {
  width: 100%;
  padding: 6px;
  border: 1px solid #999;
  border-radius: 2px;
  font-size: 13px;
  background: #fff;
}
.af-field input:focus { outline: 2px solid #1c3f94; outline-offset: 1px; }

.af-grid { display: grid; gap: 14px; margin-bottom: 4px; }
.af-grid-2 { grid-template-columns: 1fr 1fr; }
.af-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.af-row.af-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #ccc;
}
.af-row.af-wrap-row { align-items: flex-start; }
.af-label {
  font-weight: 700;
  font-size: 13px;
  color: #222;
  margin-right: 4px;
  min-width: 100%;
}
@media (min-width: 640px) {
  .af-label { min-width: auto; }
}
.af-radio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
}
.af-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #1c3f94;
  cursor: pointer;
}
.af-others-input {
  flex: 1;
  min-width: 160px;
  padding: 6px 8px;
  border: 1px solid #999;
  border-radius: 2px;
  font-size: 13.5px;
  font-family: inherit;
}
.af-others-input:disabled { background: #f2f2f2; color: #999; }

/* ---------- Document checklist ---------- */
.af-checklist { margin-bottom: 6px; }
.af-checklist-item {
  padding: 8px 0;
  border-bottom: 1px dotted #ccc;
}
.af-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.af-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #1c3f94;
  flex-shrink: 0;
}

/* ---------- Terms box (Dealing Mandate / Deed of Indemnity) ---------- */
.af-terms-box {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #999;
  padding: 14px 16px;
  font-size: 12.5px;
  background: #fbfbfb;
  border-radius: 3px;
  margin-bottom: 14px;
}
.af-terms-box p { margin: 0 0 10px; }
.af-terms-list { margin: 0 0 12px; padding-left: 18px; }
.af-terms-list > li { margin-bottom: 10px; }
.af-terms-list ol { margin: 6px 0 0; padding-left: 20px; }
.af-terms-subhead {
  font-size: 13.5px;
  font-weight: 700;
  color: #1c3f94;
  margin: 16px 0 8px;
}

.af-checkbox-field { margin-top: 4px; margin-bottom: 14px; }

/* ---------- Honeypot ---------- */
.af-honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; }

/* ---------- Submit ---------- */
.af-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.af-submit-btn {
  background: #1c3f94;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s ease;
}
.af-submit-btn:hover { background: #16307a; }
.af-submit-btn:disabled { background: #8b98bf; cursor: not-allowed; }

.af-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #c7d0e8;
  border-top-color: #1c3f94;
  border-radius: 50%;
  animation: acf-spin .8s linear infinite;
}
@keyframes acf-spin { to { transform: rotate(360deg); } }

.af-form-message {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13.5px;
  display: none;
}
.af-form-message.af-success { display: block; background: #e6f4ea; color: #1e6b34; border: 1px solid #b6ddc3; }
.af-form-message.af-error { display: block; background: #fdeaea; color: #a3211f; border: 1px solid #f2c1c0; }

.af-note { font-size: 12.5px; color: #333; margin: 6px 0 14px; }

/* ---------- Footer ---------- */
.af-footer {
  text-align: center;
  font-size: 11.5px;
  color: #555;
  padding: 14px 10px 4px;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .af-grid-2, .af-grid-3 { grid-template-columns: 1fr; }
  .acf-header { flex-direction: column; text-align: center; }
  .acf-photo-box { width: 100%; }
}
