/*
Theme Name: Hello Elementor Child
Description: Hello Elementor child theme with the AML Client Portal page template.
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Add site-wide custom CSS below. Portal styles live in assets/css/aml-client-portal.css. */
/* AML Client Portal: standalone, scoped, responsive form styles. */
body.aml-portal-page {
  margin: 0;
  padding: 0;
  background: #eef3f7;
}

#aml-client-portal,
#aml-client-portal *,
#aml-client-portal *::before,
#aml-client-portal *::after {
  box-sizing: border-box;
}

#aml-client-portal {
  --aml-text: #163448;
  --aml-muted: #6d8090;
  --aml-blue: #1b4054;
  --aml-accent: #287a85;
  --aml-border: #d9e3ea;
  --aml-soft: #f7fafc;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  padding: 44px 28px 64px;
  background: radial-gradient(ellipse at 12% 0%, #e0eef0 0, transparent 650px), #eef3f7;
  color: var(--aml-text);
  font-family: Lato, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  counter-reset: aml-section;
  -webkit-font-smoothing: antialiased;
}

#aml-client-portal input,
#aml-client-portal select,
#aml-client-portal textarea,
#aml-client-portal button {
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
}

#aml-client-portal .aml-header,
#aml-client-portal .aml-form-wrap {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

#aml-client-portal .aml-header {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 36px;
  border: 1px solid #dce7ed;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 32px rgb(27 64 84 / 4%);
}

#aml-client-portal .aml-brand {
  display: flex;
  min-height: 155px;
  align-items: center;
  justify-content: center;
  padding-right: 28px;
  border-right: 1px solid var(--aml-border);
}

#aml-client-portal .aml-logo {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0;
  object-fit: contain;
}

#aml-client-portal .aml-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--aml-accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

#aml-client-portal .aml-eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aml-accent);
  content: "";
}

#aml-client-portal .aml-page-title {
  margin: 0 0 18px;
  padding: 0;
  color: var(--aml-text);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -1.1px;
}

#aml-client-portal .aml-page-title span {
  display: block;
  margin-top: 5px;
  color: var(--aml-muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

#aml-client-portal .aml-info-box {
  padding: 14px 16px;
  border: 1px solid #dcebee;
  border-radius: 12px;
  background: #f1f8f9;
  color: #46616f;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#aml-client-portal .aml-form-guide {
  margin: 24px 4px 16px;
  color: var(--aml-muted);
  font-size: 13px;
}

#aml-client-portal .aml-form {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

#aml-client-portal .aml-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  min-width: 0;
  margin: 0;
  padding: 30px 32px 32px;
  border: 1px solid var(--aml-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 24px rgb(27 64 84 / 3%);
  counter-increment: aml-section;
}

#aml-client-portal .aml-section-title {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 14px;
  margin: 0 0 2px;
  padding: 0 0 22px;
  border-bottom: 1px solid #e8eef2;
  color: var(--aml-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.25px;
}

#aml-client-portal .aml-section-title::before {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--aml-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  content: counter(aml-section, decimal-leading-zero);
}

#aml-client-portal .aml-sub-title {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--aml-border);
  color: var(--aml-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

#aml-client-portal .aml-field {
  width: 100%;
  min-width: 0;
  margin: 0;
}

#aml-client-portal .aml-field-wide {
  grid-column: 1 / -1;
}

#aml-client-portal .aml-label {
  display: block;
  margin: 0 0 9px;
  padding: 0;
  color: #294658;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

#aml-client-portal .required {
  margin-left: 2px;
  color: #c35143;
}

#aml-client-portal input[type="text"],
#aml-client-portal input[type="email"],
#aml-client-portal input[type="tel"],
#aml-client-portal input[type="number"],
#aml-client-portal input[type="date"],
#aml-client-portal select,
#aml-client-portal textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--aml-border);
  border-radius: 11px;
  background: #fbfdfe;
  color: var(--aml-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: none;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
  color-scheme: light;
}

#aml-client-portal input[readonly] {
  background: var(--aml-soft);
}

#aml-client-portal textarea {
  min-height: 120px;
  resize: vertical;
}

#aml-client-portal select {
  height: 52px;
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Cpath d='M2 3l7 7 7-7' fill='none' stroke='%236d8090' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 17px center;
  background-size: 14px 10px;
}

#aml-client-portal input::placeholder,
#aml-client-portal textarea::placeholder {
  color: #8799a6;
  opacity: 1;
}

#aml-client-portal input:hover,
#aml-client-portal select:hover,
#aml-client-portal textarea:hover {
  border-color: #b3c7d2;
}

#aml-client-portal input:focus,
#aml-client-portal select:focus,
#aml-client-portal textarea:focus {
  border-color: var(--aml-accent);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgb(40 122 133 / 11%);
}

#aml-client-portal .aml-radio-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

#aml-client-portal .aml-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 104px;
  min-height: 48px;
  margin: 0;
  padding: 11px 17px;
  border: 1px solid var(--aml-border);
  border-radius: 10px;
  background: #fbfdfe;
  color: #385266;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s, background-color .18s;
}

#aml-client-portal .aml-radio:has(input:checked) {
  border-color: var(--aml-accent);
  background: #edf7f8;
  color: var(--aml-blue);
}

#aml-client-portal .aml-radio input,
#aml-client-portal .aml-checkbox input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: var(--aml-accent);
  cursor: pointer;
}

#aml-client-portal .aml-checkbox {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e3ebf0;
  border-radius: 11px;
  background: var(--aml-soft);
  color: #40596b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}

#aml-client-portal .aml-checkbox input {
  margin-top: 3px;
}

#aml-client-portal .aml-file-box {
  position: relative;
  width: 100%;
  height: 78px;
  border: 1px dashed #b9cdd7;
  border-radius: 12px;
  background: #f8fbfd;
  transition: border-color .18s, background-color .18s;
}

#aml-client-portal .aml-file-box:hover,
#aml-client-portal .aml-file-box.has-file {
  border-color: var(--aml-accent);
  background: #f0f8f8;
}

#aml-client-portal .aml-file-input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

#aml-client-portal .aml-file-label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 14px 16px;
  pointer-events: none;
}

#aml-client-portal .aml-file-label::after {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid #dce6ec;
  border-radius: 7px;
  background: #fff;
  color: var(--aml-blue);
  font-size: 12px;
  font-weight: 700;
  content: "Browse";
}

#aml-client-portal .aml-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--aml-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#aml-client-portal .has-file .aml-file-name {
  color: var(--aml-blue);
}

#aml-client-portal .aml-upload-icon {
  order: -1;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e9f1f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23287a85' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V3m-5 5 5-5 5 5M4 14v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/%3E%3C/g%3E%3C/svg%3E") center / 20px no-repeat;
}

#aml-client-portal .aml-file-box:focus-within,
#aml-client-portal .aml-radio:focus-within,
#aml-client-portal .aml-checkbox:focus-within {
  outline: 2px solid var(--aml-accent);
  outline-offset: 3px;
}

#aml-client-portal .aml-help {
  display: block;
  margin: 8px 0 0;
  color: var(--aml-muted);
  font-size: 12px;
  line-height: 1.6;
}

#aml-client-portal .aml-conditional {
  display: none;
  grid-column: 1 / -1;
  min-width: 0;
}

#aml-client-portal .aml-conditional.show {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  padding-top: 4px;
}

#aml-client-portal .aml-declaration {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #eee1bf;
  border-left: 3px solid #bc923e;
  border-radius: 12px;
  background: #fffbf1;
  color: #806538;
  font-size: 14px;
  font-style: normal;
  line-height: 1.8;
}

#aml-client-portal .aml-signature-wrap {
  position: relative;
  width: 100%;
  height: 202px;
  border: 1px solid var(--aml-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

#aml-client-portal .aml-signature-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  padding: 14px 85px 14px 16px;
  border-bottom: 1px dashed var(--aml-border);
  background: var(--aml-soft);
  color: var(--aml-muted);
  font-size: 13px;
  line-height: 1.6;
}

#aml-client-portal .aml-clear {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 10px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid #dce6ec;
  border-radius: 7px;
  background: #fff;
  color: var(--aml-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  box-shadow: none;
  cursor: pointer;
}

#aml-client-portal #amlSignatureCanvas {
  position: absolute;
  top: 50px;
  left: 0;
  display: block;
  width: 100%;
  height: 150px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}

#aml-client-portal .aml-signature-line {
  position: absolute;
  right: 28px;
  bottom: 42px;
  left: 28px;
  height: 1px;
  background: #b4c5cf;
  pointer-events: none;
}

#aml-client-portal .aml-submit-area {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #e8eef2;
}

#aml-client-portal .aml-submit-note {
  flex: 1;
  min-width: 180px;
  margin: 0;
  color: var(--aml-muted);
  font-size: 12px;
  line-height: 1.6;
}

#aml-client-portal .aml-submit,
#aml-client-portal .aml-success-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 170px;
  min-height: 52px;
  margin: 0;
  padding: 14px 24px;
  border: 0;
  border-radius: 11px;
  background: var(--aml-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 5px 14px rgb(27 64 84 / 12%);
  cursor: pointer;
  transition: background-color .18s, box-shadow .18s;
}

#aml-client-portal .aml-submit::after {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  content: "\2192";
}

#aml-client-portal .aml-submit:hover,
#aml-client-portal .aml-success-ok:hover {
  background: #143345;
  box-shadow: 0 6px 18px rgb(27 64 84 / 18%);
}

#aml-client-portal .aml-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

#aml-client-portal button:focus-visible,
#aml-client-portal canvas:focus-visible {
  outline: 2px solid var(--aml-accent);
  outline-offset: 4px;
}

#aml-client-portal .aml-status {
  flex: 0 0 100%;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid #f4d7d2;
  border-radius: 9px;
  background: #fff6f4;
  color: #a1382b;
  font-size: 14px;
}

#aml-client-portal [hidden] {
  display: none !important;
}

#aml-client-portal #amlSuccessPopup {
  width: calc(100% - 32px);
  max-width: 460px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 38px 30px 32px;
  border: 1px solid #e3ebf0;
  border-radius: 22px;
  background: #fff;
  color: var(--aml-text);
  text-align: center;
  font-family: inherit;
  overflow: auto;
  box-shadow: 0 24px 80px rgb(12 34 48 / 24%);
}

#aml-client-portal #amlSuccessPopup:not([open]) {
  display: none;
}

#aml-client-portal #amlSuccessPopup::backdrop {
  background: rgb(12 34 48 / 55%);
  backdrop-filter: blur(4px);
}

#aml-client-portal .aml-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border: 1px solid #cde5dc;
  border-radius: 50%;
  background: #edf8f2;
  color: #287b56;
  font-size: 30px;
}

#aml-client-portal .aml-success-title {
  margin: 0 0 12px;
  padding: 0;
  color: var(--aml-text);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
}

#aml-client-portal .aml-success-message {
  margin: 0 0 25px;
  color: var(--aml-muted);
  font-size: 15px;
  line-height: 1.75;
}

#aml-client-portal .aml-success-ok {
  min-width: 115px;
  min-height: 46px;
}

@media (max-width: 900px) {
  #aml-client-portal {
    padding: 30px 22px 48px;
  }

  #aml-client-portal .aml-header {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
    padding: 28px;
  }

  #aml-client-portal .aml-brand {
    padding-right: 20px;
  }

  #aml-client-portal .aml-section {
    gap: 22px;
    padding: 26px;
  }

  #aml-client-portal .aml-conditional.show {
    gap: 22px;
  }
}

@media (max-width: 767px) {
  #aml-client-portal {
    padding: 20px 14px 32px;
  }

  #aml-client-portal .aml-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 25px 22px;
    border-radius: 18px;
  }

  #aml-client-portal .aml-brand {
    justify-content: flex-start;
    min-height: 0;
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--aml-border);
  }

  #aml-client-portal .aml-logo {
    max-width: 175px;
  }

  #aml-client-portal .aml-page-title {
    font-size: 28px;
    letter-spacing: -.8px;
  }

  #aml-client-portal .aml-page-title span {
    font-size: 18px;
  }

  #aml-client-portal .aml-info-box {
    padding: 13px 14px;
    font-size: 13px;
  }

  #aml-client-portal .aml-form-guide {
    margin-top: 20px;
    font-size: 12px;
  }

  #aml-client-portal .aml-form {
    gap: 16px;
  }

  #aml-client-portal .aml-section,
  #aml-client-portal .aml-conditional.show {
    grid-template-columns: minmax(0, 1fr);
    gap: 21px;
  }

  #aml-client-portal .aml-section {
    padding: 22px 20px;
    border-radius: 16px;
  }

  #aml-client-portal .aml-section-title {
    gap: 12px;
    padding-bottom: 19px;
    font-size: 17px;
  }

  #aml-client-portal .aml-section-title::before {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 11px;
  }

  #aml-client-portal .aml-file-label {
    gap: 10px;
    padding: 12px;
  }

  #aml-client-portal .aml-declaration {
    padding: 15px 16px;
    font-size: 13px;
  }

  #aml-client-portal .aml-submit-area {
    flex-direction: column;
    align-items: stretch;
    padding-top: 20px;
  }

  #aml-client-portal .aml-submit-note {
    min-width: 0;
  }

  #aml-client-portal .aml-status {
    flex-basis: auto;
  }

  #aml-client-portal .aml-submit {
    width: 100%;
  }

  #aml-client-portal #amlSuccessPopup {
    padding: 30px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #aml-client-portal *,
  #aml-client-portal *::before,
  #aml-client-portal *::after {
    transition: none;
    scroll-behavior: auto;
  }
}
