/* ==========================================================================
   AVCO Contact Page Styles
   Scoped with body.avco-page, uses design tokens from avco-variables.css
   ========================================================================== */

/* ==========================================================================
   BANNER SECTION
   ========================================================================== */

body.avco-page .avco-ct-banner {
  padding: var(--avco-space-16) var(--avco-space-15);
}

body.avco-page .avco-ct-banner-img {
  width: 100%;
  height: 23.875rem;
  /* 382px */
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   CONTACT FORM SECTION
   ========================================================================== */

body.avco-page .avco-ct-form-section {
  padding: var(--avco-space-16) var(--avco-space-15);
  padding-top: 0;
  padding-bottom: 8.125rem;
  /* 130px = ~66px image overflow + 64px gap to offices */
  display: flex;
  gap: var(--avco-space-6);
  /* 32px */
  position: relative;
  margin-top: 2.81rem;
}

/* -- Left side: heading + description -- */

body.avco-page .avco-ct-form-left {
  flex: 1;
  padding-top: var(--avco-space-12);
  /* 48px */
  min-width: 0;
  position: relative;
  /* No overflow:hidden — watermark needs to be visible */
}

body.avco-page .avco-ct-form-left h1,
body.avco-page .avco-ct-form-left h2 {
  font-family: var(--avco-font-heading);
  font-size: var(--avco-text-7xl);
  /* 52px */
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.065rem;
  /* -1.04px */
  color: var(--avco-primary-950);
  max-width: 35rem;
  /* 560px */
  position: relative;
  z-index: var(--avco-z-raised);
}

body.avco-page .avco-ct-form-left .description,
body.avco-page .avco-ct-form-left p {
  margin-top: var(--avco-space-4);
  /* 16px */
  font-size: var(--avco-text-base);
  /* 16px */
  font-weight: 400;
  line-height: 1.7;
  color: var(--avco-gray-600);
  max-width: 35rem;
  /* 560px */
  position: relative;
  z-index: var(--avco-z-raised);
}

/* -- AVCO watermark – scoped to entire section, overlays the left column -- */

body.avco-page .avco-ct-form-watermark {
  position: absolute;
  bottom: 10rem;
  left: 5px;
  width: 51.0625rem;
  /* 817px */
  height: 13.1875rem;
  /* 211px */
  pointer-events: none;
  user-select: none;
  z-index: var(--avco-z-content);
}

/* -- Right side: wrapper holds bg image + form panel -- */

body.avco-page .avco-ct-form-right-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 40.625rem;
  /* 650px */
}

/* -- Form panel -- */

body.avco-page .avco-ct-form-right {
  background: var(--avco-primary-50);
  padding: var(--avco-space-16) var(--avco-space-12);
  /* 64px 48px */
  position: relative;
  z-index: var(--avco-z-content);
  min-height: 40rem;
}

/* -- Loading spinner (visible until Ninja Forms loads) -- */

body.avco-page .avco-ct-form-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--avco-z-raised);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.avco-page .avco-ct-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 0.1875rem solid var(--avco-primary-200);
  border-top-color: var(--avco-primary-800);
  border-radius: 50%;
  animation: avco-spin 0.8s linear infinite;
}

@keyframes avco-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hide spinner once form is loaded */
body.avco-page .avco-ct-form-section.form-loaded .avco-ct-form-spinner {
  display: none;
}

/* -- Decorative image behind form, hidden until form loads -- */

body.avco-page .avco-ct-form-bg-img {
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--avco-space-15));
  /* extend to screen edge */
  transform: translateY(-50%);
  width: calc(50% + var(--avco-space-15));
  /* 325px + 60px = 385px on 1440px */
  height: 52.4375rem;
  /* 839px */
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  z-index: var(--avco-z-base);
  opacity: 0;
  transition: opacity var(--avco-transition-base) ease;
}

body.avco-page .avco-ct-form-right-wrapper.form-loaded .avco-ct-form-bg-img {
  opacity: 1;
}

/* ==========================================================================
   FORM
   ========================================================================== */

body.avco-page .avco-ct-form {
  display: flex;
  flex-direction: column;
  gap: var(--avco-space-6);
  /* 24px */
}

body.avco-page .avco-ct-form-note {
  font-size: var(--avco-text-base);
  /* 16px */
  line-height: 1.5;
}

body.avco-page .avco-ct-form-note .asterisk {
  font-weight: 600;
  color: var(--avco-status-error);
}

body.avco-page .avco-ct-form-note .note-text {
  font-style: italic;
  font-weight: 400;
  color: var(--avco-gray-600);
  line-height: 1.7;
}

body.avco-page .avco-ct-form-row {
  display: flex;
  gap: var(--avco-space-4);
  /* 16px */
}

body.avco-page .avco-ct-form-field {
  display: flex;
  flex-direction: column;
  gap: var(--avco-space-2);
  /* 8px */
  flex: 1;
}

body.avco-page .avco-ct-form-field.full-width {
  flex: none;
  width: 100%;
}

body.avco-page .avco-ct-field-label {
  font-size: var(--avco-text-base);
  /* 16px */
  font-weight: 600;
  line-height: 1.5;
  color: var(--avco-primary-950);
}

body.avco-page .avco-ct-field-label .required {
  color: var(--avco-status-error);
}

body.avco-page .avco-ct-form-input,
body.avco-page .avco-ct-form-select,
body.avco-page .avco-ct-form-textarea {
  background: var(--avco-white);
  border: 0.0625rem solid var(--avco-primary-200);
  /* 1px */
  height: 3rem;
  /* 48px */
  padding: var(--avco-space-3) var(--avco-space-4);
  /* 12px 16px */
  font-size: var(--avco-text-base);
  /* 16px */
  font-weight: 400;
  line-height: 1.7;
  color: var(--avco-primary-950);
  font-family: var(--avco-font-body);
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  border-radius: 0;
  box-sizing: border-box;
}

body.avco-page .avco-ct-form-input::placeholder,
body.avco-page .avco-ct-form-textarea::placeholder {
  color: var(--avco-gray-600);
}

body.avco-page .avco-ct-form-select {
  cursor: pointer;
  color: var(--avco-gray-600);
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.28 5.96667L8.9333 10.3133C8.41997 10.8267 7.57997 10.8267 7.06664 10.3133L2.71997 5.96667' stroke='%2320274b' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--avco-space-4) center;
  /* right 16px */
  padding-right: var(--avco-space-10);
  /* 40px */
}

body.avco-page .avco-ct-form-select.has-value {
  color: var(--avco-primary-950);
}

body.avco-page .avco-ct-form-textarea {
  height: 6rem;
  /* 96px */
  resize: vertical;
}

body.avco-page .avco-ct-form input:focus-visible,
body.avco-page .avco-ct-form select:focus-visible,
body.avco-page .avco-ct-form textarea:focus-visible {
  outline: 0.125rem solid var(--avco-primary-800);
  outline-offset: 0.125rem;
  border-color: var(--avco-primary-800);
}

body.avco-page .avco-ct-form-input.error,
body.avco-page .avco-ct-form-select.error,
body.avco-page .avco-ct-form-textarea.error {
  border-color: var(--avco-status-error);
}

body.avco-page .avco-ct-form input:disabled,
body.avco-page .avco-ct-form select:disabled,
body.avco-page .avco-ct-form textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--avco-gray-50);
}

body.avco-page .avco-ct-field-error {
  font-size: 0.8125rem;
  /* 13px */
  color: var(--avco-status-error);
  line-height: 1.4;
  display: none;
}

body.avco-page .avco-ct-field-error.visible {
  display: block;
}

body.avco-page .avco-ct-form-action {
  padding-top: var(--avco-space-4);
  /* 16px */
}

body.avco-page .avco-ct-form-action .btn-submit,
body.avco-page .avco-ct-form-action .avco-btn-primary {
  background: var(--avco-primary-800);
  color: var(--avco-white);
  font-size: var(--avco-text-base);
  /* 16px */
  font-weight: 600;
  line-height: 1.5;
  padding: var(--avco-space-3) var(--avco-space-6);
  /* 12px 24px */
  min-width: 12.5rem;
  /* 200px */
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: var(--avco-font-body);
}

body.avco-page .avco-ct-form-action .btn-submit:hover,
body.avco-page .avco-ct-form-action .avco-btn-primary:hover {
  opacity: 0.9;
}

/* Success Message */
body.avco-page .avco-ct-success {
  display: none;
  background: var(--avco-status-success-bg);
  border: 0.0625rem solid var(--avco-status-success);
  padding: var(--avco-space-6);
  /* 24px */
  text-align: center;
}

body.avco-page .avco-ct-success.visible {
  display: block;
}

body.avco-page .avco-ct-success h3 {
  font-size: var(--avco-text-lg);
  /* 20px */
  font-weight: 700;
  color: var(--avco-primary-950);
  margin-bottom: var(--avco-space-2);
  /* 8px */
}

body.avco-page .avco-ct-success p {
  font-size: var(--avco-text-base);
  /* 16px */
  color: var(--avco-gray-600);
  line-height: 1.7;
}

/* ==========================================================================
   NINJA FORMS OVERRIDES (inside form panel)
   ========================================================================== */

body.avco-page .avco-ct-form-right .nf-form-cont {
  font-family: var(--avco-font-body);
  position: relative;
  z-index: var(--avco-z-content);
}

body.avco-page .avco-ct-form-right .nf-form-wrap {
  padding: 0;
}

/* ── Form title ── */

body.avco-page .avco-ct-form-right .nf-form-title {
  display: block;
  margin-bottom: var(--avco-space-6);
  /* 24px */
}

body.avco-page .avco-ct-form-right .nf-form-title hundefined {
  font-family: var(--avco-font-heading);
  font-size: var(--avco-text-3xl);
  /* 28px */
  font-weight: 700;
  line-height: 1.4;
  color: var(--avco-primary-950);
  display: block;
}

/* ── Required note ── */

body.avco-page .avco-ct-form-right .nf-form-cont .nf-form-fields-required {
  display: none;
}

body.avco-page .avco-ct-form-right .avco-ct-form-required-note {
  font-size: var(--avco-text-base);
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
  color: var(--avco-gray-600);
  margin-bottom: var(--avco-space-4);
}

body.avco-page .avco-ct-form-right .avco-ct-required-symbol {
  color: var(--avco-status-error);
  font-weight: 600;
  font-style: normal;
}

body.avco-page .avco-ct-form-right .nf-form-cont .ninja-forms-req-symbol {
  color: var(--avco-status-error);
  font-weight: 600;
  font-style: normal;
}

/* ── Grid layout: 2-column for fields ── */

body.avco-page .avco-ct-form-right .nf-form-content nf-fields-wrap {
  /* override Ninja Forms */
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: var(--avco-space-4) var(--avco-space-4);
  /* 24px 16px */
}

/* Full-width fields: textarea + submit */
body.avco-page .avco-ct-form-right nf-fields-wrap>nf-field:has(.contact-message-container),
body.avco-page .avco-ct-form-right nf-fields-wrap>nf-field:has(.textarea-container),
body.avco-page .avco-ct-form-right nf-fields-wrap>nf-field:has(.submit-container) {
  grid-column: 1 / -1;
}

/* Field containers – reset NF margins (grid gap handles spacing) */
body.avco-page .avco-ct-form-right .nf-form-cont .nf-field-container {
  margin-bottom: 0;
}

/* Field labels */
span#nf-form-title-3 {
    display: none;
}
.nf-field-label {
    margin-bottom: var(--avco-space-2);
}

.nf-before-form-content {
    margin-bottom: var(--avco-space-6);
}

body.avco-page .avco-ct-form-right .nf-form-cont .nf-field-label label {
  font-size: var(--avco-text-base);
  /* 16px */
  font-weight: 600;
  line-height: 1.5;
  color: var(--avco-primary-950);
  margin-bottom: var(--avco-space-2);
  /* 8px */
}

/* Required asterisk */
body.avco-page .avco-ct-form-right .nf-form-cont .ninja-forms-req-symbol {
  color: var(--avco-status-error);
  font-weight: 600;
}

body.avco-page .avco-ct-form-right .nf-form-cont .ninja-forms-req-symbol::before {
  content: "(";
}

body.avco-page .avco-ct-form-right .nf-form-cont .ninja-forms-req-symbol::after {
  content: ")";
}

/* Text inputs, email, tel */
body.avco-page .avco-ct-form-right .nf-form-cont .nf-field-element input[type="text"],
body.avco-page .avco-ct-form-right .nf-form-cont .nf-field-element input[type="email"],
body.avco-page .avco-ct-form-right .nf-form-cont .nf-field-element input[type="tel"],
body.avco-page .avco-ct-form-right .nf-form-cont .nf-field-element input[type="number"] {
  background: var(--avco-white);
  border: 0.0625rem solid var(--avco-primary-200);
  height: 3rem;
  /* 48px */
  padding: var(--avco-space-3) var(--avco-space-4);
  /* 12px 16px */
  font-size: var(--avco-text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--avco-primary-950);
  font-family: var(--avco-font-body);
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  box-sizing: border-box;
}

body.avco-page .avco-ct-form-right .nf-form-cont .nf-field-element input::placeholder {
  color: var(--avco-gray-600);
}

/* Select dropdowns */
body.avco-page .avco-ct-form-right .nf-form-cont .nf-field-element select {
  background: var(--avco-white);
  border: 0.0625rem solid var(--avco-primary-200);
  height: 3rem;
  /* 48px */
  padding: var(--avco-space-3) var(--avco-space-4);
  font-size: var(--avco-text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--avco-gray-600);
  font-family: var(--avco-font-body);
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  box-sizing: border-box;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.28 5.96667L8.9333 10.3133C8.41997 10.8267 7.57997 10.8267 7.06664 10.3133L2.71997 5.96667' stroke='%2320274b' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--avco-space-4) center;
  padding-right: var(--avco-space-10);
}

/* Textarea */
body.avco-page .avco-ct-form-right .nf-form-cont .nf-field-element textarea {
  background: var(--avco-white);
  border: 0.0625rem solid var(--avco-primary-200);
  height: 6rem;
  /* 96px */
  padding: var(--avco-space-3) var(--avco-space-4);
  font-size: var(--avco-text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--avco-primary-950);
  font-family: var(--avco-font-body);
  width: 100%;
  outline: none;
  border-radius: 0;
  box-sizing: border-box;
  resize: vertical;
}

body.avco-page .avco-ct-form-right .nf-form-cont .nf-field-element textarea::placeholder {
  color: var(--avco-gray-600);
}

/* Error messages */
body.avco-page .avco-ct-form-right .nf-form-cont .nf-error-msg {
  font-size: 0.8125rem;
  /* 13px */
  color: var(--avco-status-error);
  line-height: 1.4;
}

body.avco-page .avco-ct-form-right .nf-form-cont .nf-error .nf-field-element input,
body.avco-page .avco-ct-form-right .nf-form-cont .nf-error .nf-field-element select,
body.avco-page .avco-ct-form-right .nf-form-cont .nf-error .nf-field-element textarea {
  border-color: var(--avco-status-error);
}

/* Submit button */
body.avco-page .avco-ct-form-right .nf-form-cont .submit-container input[type="button"],
body.avco-page .avco-ct-form-right .nf-form-cont .submit-container input[type="submit"],
body.avco-page .avco-ct-form-right .nf-form-cont .submit-container button {
  background: var(--avco-primary-800);
  color: var(--avco-white);
  font-size: var(--avco-text-base);
  /* 16px */
  font-weight: 600;
  line-height: 1.5;
  padding: var(--avco-space-3) var(--avco-space-6);
  /* 12px 24px */
  min-width: 12.5rem;
  /* 200px */
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: var(--avco-font-body);
  border-radius: 0;
  margin-top: var(--avco-space-4);
  /* 16px */
}

body.avco-page .avco-ct-form-right .nf-form-cont .submit-container input[type="button"]:hover,
body.avco-page .avco-ct-form-right .nf-form-cont .submit-container input[type="submit"]:hover,
body.avco-page .avco-ct-form-right .nf-form-cont .submit-container button:hover {
  opacity: 0.9;
}

/* ── NF misc resets ── */

body.avco-page .avco-ct-form-right .nf-form-cont .nf-before-form,
body.avco-page .avco-ct-form-right .nf-form-cont .nf-after-form,
body.avco-page .avco-ct-form-right .nf-form-cont .nf-response-msg:empty,
body.avco-page .avco-ct-form-right .nf-form-cont .nf-debug-msg:empty {
  display: none;
}

body.avco-page .avco-ct-form-right .nf-form-cont .submit-container .nf-field-label {
  display: none;
}

body.avco-page .avco-ct-form-right .nf-form-cont .nf-field-element {
  position: relative;
}

/* ==========================================================================
   OFFICES / CONTACT INFO SECTION
   ========================================================================== */

body.avco-page .avco-ct-offices {
  background: var(--avco-white);
  padding: var(--avco-space-16) var(--avco-space-15);
  /* 64px 60px */
  padding-top: 0;
}

body.avco-page .avco-ct-offices-inner {
  background: var(--avco-primary-50);
  display: flex;
  gap: var(--avco-space-4);
  /* 16px */
  padding: var(--avco-space-6);
  /* 24px */
  align-items: center;
}

body.avco-page .avco-ct-offices-info {
  flex: 1;
  background: var(--avco-primary-800);
  padding: var(--avco-space-12);
  /* 48px */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  box-shadow: 0 1rem 1.5rem rgba(30, 30, 30, 0.08);
  /* 0 16px 24px */
}

body.avco-page .avco-ct-office-block {
  display: flex;
  flex-direction: column;
  gap: var(--avco-space-4);
  /* 16px */
}

body.avco-page .avco-ct-office-block+.avco-ct-office-block {
  margin-top: var(--avco-space-12);
  /* 48px */
}

body.avco-page .avco-ct-office-block h3 {
  font-family: var(--avco-font-heading);
  font-size: var(--avco-text-3xl);
  /* 28px */
  font-weight: 600;
  line-height: 1.5;
  color: var(--avco-white);
}

body.avco-page .avco-ct-office-list {
  display: flex;
  flex-direction: column;
  gap: var(--avco-space-4);
  /* 16px */
}

body.avco-page .avco-ct-office-row {
  display: flex;
  gap: var(--avco-space-4);
  /* 16px */
  align-items: center;
}

body.avco-page .avco-ct-office-row svg,
body.avco-page .avco-ct-office-row img {
  width: 1.5rem;
  /* 24px */
  height: 1.5rem;
  flex-shrink: 0;
}

body.avco-page .avco-ct-office-row span,
body.avco-page .avco-ct-office-row a {
  font-size: var(--avco-text-base);
  /* 16px */
  font-weight: 500;
  line-height: 1.7;
  color: var(--avco-white);
  flex: 1;
  text-decoration: none;
}

body.avco-page .avco-ct-office-row a:hover {
  text-decoration: underline;
}

body.avco-page .avco-ct-offices-images {
  display: flex;
  gap: var(--avco-space-4);
  /* 16px */
  align-items: center;
  flex-shrink: 0;
}

body.avco-page .avco-ct-offices-images .img-wrapper {
  width: 22.4375rem;
  /* 359px */
  aspect-ratio: 359 / 536;
  overflow: hidden;
}

body.avco-page .avco-ct-offices-images .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile/desktop image swap at 500px */
body.avco-page .avco-ct-offices-images .img-wrapper img.avco-ct-img-mobile {
  display: none;
}

@media (max-width: 500px) {
  body.avco-page .avco-ct-offices-images .img-wrapper img.avco-ct-img-desktop {
    display: none;
  }

  body.avco-page .avco-ct-offices-images .img-wrapper img.avco-ct-img-mobile {
    display: block;
  }
}

/* Fallback for direct img (no wrapper) */
body.avco-page .avco-ct-offices-images>img {
  width: 22.4375rem;
  /* 359px */
  height: 33.5rem;
  /* 536px */
  object-fit: cover;
  overflow: hidden;
  display: block;
}

/* ==========================================================================
   SALES MANAGERS SECTION
   ========================================================================== */

body.avco-page .avco-ct-managers {
  background: var(--avco-white);
  padding: 0 var(--avco-space-15) var(--avco-space-16);
  /* 0 60px 64px */
}

body.avco-page .avco-ct-managers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--avco-space-4);
  /* 32px */
}

body.avco-page .avco-ct-managers-header h2 {
  font-family: var(--avco-font-heading);
  font-size: var(--avco-text-7xl);
  /* 52px */
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.065rem;
  /* -1.04px */
  color: var(--avco-primary-950);
  max-width: 33.1875rem;
  /* 531px */
}

body.avco-page .avco-ct-managers-header p {
  font-size: var(--avco-text-base);
  /* 16px */
  font-weight: 400;
  line-height: 1.7;
  color: var(--avco-gray-600);
  max-width: 33.1875rem;
  /* 531px */
}

body.avco-page .avco-ct-managers-grid {
  display: flex;
  flex-direction: column;
  gap: var(--avco-space-4);
  /* 16px */
}

body.avco-page .avco-ct-managers-row {
  display: flex;
  gap: var(--avco-space-4);
  /* 16px */
}

body.avco-page .avco-ct-manager-card {
  flex: 1;
  background: var(--avco-white);
  border: 0.0625rem solid var(--avco-primary-100);
  /* 1px */
  padding: var(--avco-space-2);
  /* 8px */
}

body.avco-page .avco-ct-manager-name {
  background: var(--avco-primary-50);
  padding: var(--avco-space-3) var(--avco-space-6);
  /* 12px 24px */
  text-align: center;
}

body.avco-page .avco-ct-manager-name h4 {
  font-family: var(--avco-font-heading);
  font-size: var(--avco-text-xl);
  /* 24px */
  font-weight: 600;
  line-height: 1.6;
  color: var(--avco-primary-950);
}

body.avco-page .avco-ct-manager-details {
  padding: var(--avco-space-6) var(--avco-space-6) var(--avco-space-4);
  /* 24px 24px 16px */
  display: flex;
  flex-direction: column;
  gap: var(--avco-space-4);
  /* 16px */
}

body.avco-page .avco-ct-manager-row {
  display: flex;
  gap: var(--avco-space-4);
  /* 16px */
  align-items: flex-start;
  color: var(--avco-gray-600);
}

body.avco-page .avco-ct-manager-row svg,
body.avco-page .avco-ct-manager-row img {
  width: 1.5rem;
  /* 24px */
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.0625rem;
  /* 1px */
}

body.avco-page .avco-ct-manager-row span,
body.avco-page .avco-ct-manager-row a {
  font-size: var(--avco-text-base);
  /* 16px */
  font-weight: 500;
  line-height: 1.5;
  color: var(--avco-gray-600);
  flex: 1;
  text-decoration: none;
}

body.avco-page .avco-ct-manager-row a:hover {
  color: var(--avco-primary-800);
}

/* ==========================================================================
   EXTRA IMAGE SECTION
   ========================================================================== */

body.avco-page .avco-ct-image-upload {
  padding: var(--avco-space-16) var(--avco-space-16);
  /* 60px 64px — matches managers */
}

body.avco-page .avco-ct-image-upload-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   RESPONSIVE - TABLET (max-width: 1279px)
   Maps to prototype's 1280px and 768px breakpoints
   ========================================================================== */

@media (max-width: 1279px) {

  /* Banner */
  body.avco-page .avco-ct-banner-img {
    height: 15rem;
    /* 240px */
  }

  /* Form section images shrink */
  body.avco-page .avco-ct-offices-images .img-wrapper {
    width: 17.5rem;
    /* 280px */
    aspect-ratio: 359 / 536;
  }

  body.avco-page .avco-ct-form-section {
    margin-top: 0;
  }

  body.avco-page .avco-ct-offices-images>img {
    width: 17.5rem;
    height: 27.5rem;
  }

  body.avco-page .avco-ct-form-right-wrapper {
    width: 34.375rem;
    /* 550px */
  }

  body.avco-page .avco-ct-form-left h1,
  body.avco-page .avco-ct-form-left h2 {
    font-size: 2.75rem;
    /* 44px */
  }

  /* Form section: stack vertically */
  body.avco-page .avco-ct-form-section {
    padding: var(--avco-space-10) var(--avco-space-6);
    /* 40px 24px */
    flex-direction: column;
  }

  body.avco-page .avco-ct-form-left {
    padding-top: 0;
  }

  body.avco-page .avco-ct-form-left h1,
  body.avco-page .avco-ct-form-left h2 {
    font-size: 2.25rem;
    /* 36px */
    max-width: 100%;
  }

  body.avco-page .avco-ct-form-left .description,
  body.avco-page .avco-ct-form-left p {
    max-width: 100%;
  }

  body.avco-page .avco-ct-form-right-wrapper {
    width: 100%;
  }

  body.avco-page .avco-ct-form-right {
    padding: var(--avco-space-10) var(--avco-space-6);
    /* 40px 24px */
  }

  /* NF grid: single column on tablet */
  body.avco-page .avco-ct-form-right .nf-form-content nf-fields-wrap {
    grid-template-columns: 1fr;
  }

  body.avco-page .avco-ct-form-right nf-fields-wrap>nf-field {
    grid-column: 1;
  }

  /* Form rows: single column */
  body.avco-page .avco-ct-form-row {
    flex-direction: column;
  }

  /* Offices: stack vertically */
  body.avco-page .avco-ct-offices {
    padding: var(--avco-space-10) var(--avco-space-6);
    /* 40px 24px */
  }

  body.avco-page .avco-ct-offices-inner {
    flex-direction: column;
    padding: var(--avco-space-4);
    /* 16px */
  }

  body.avco-page .avco-ct-offices-info {
    padding: var(--avco-space-4);
    /* 32px */
    width: 100%;
  }

  body.avco-page .avco-ct-offices-images {
    flex-direction: column;
    width: 100%;
    flex-shrink: unset;
  }

  body.avco-page .avco-ct-offices-images .img-wrapper {
    width: 100%;
    aspect-ratio: 359 / 536;
  }

  body.avco-page .avco-ct-offices-images>img {
    width: 100%;
    height: 18.75rem;
  }

  /* Managers */
  body.avco-page .avco-ct-managers {
    padding: 0 var(--avco-space-6) var(--avco-space-10);
    /* 0 24px 40px */
  }

  body.avco-page .avco-ct-managers-header {
    flex-direction: column;
    gap: var(--avco-space-4);
    /* 16px */
    align-items: flex-start;
  }

  body.avco-page .avco-ct-managers-header h2 {
    font-size: 2.25rem;
    /* 36px */
    max-width: 100%;
  }

  body.avco-page .avco-ct-managers-header p {
    max-width: 100%;
  }

  body.avco-page .avco-ct-managers-row {
    flex-direction: column;
  }

  /* Banner */
  body.avco-page .avco-ct-banner {
    padding: var(--avco-space-10) var(--avco-space-6);
    /* 40px 24px */
  }

  /* Extra image */
  body.avco-page .avco-ct-image-upload {
    padding: 0 var(--avco-space-6) var(--avco-space-10);
    /* 0 24px 40px */
  }

  body.avco-page .avco-ct-form-right-wrapper.form-loaded .avco-ct-form-bg-img {
    display: none;
  }
}

/* ==========================================================================
   RESPONSIVE - MOBILE (max-width: 767px)
   Maps to prototype's 375px breakpoint
   ========================================================================== */

@media (max-width: 767px) {

  /* Banner */
  body.avco-page .avco-ct-banner {
    padding: var(--avco-space-6) var(--avco-space-4);
    padding-bottom: 0;
    /* 24px 16px */
  }

  body.avco-page .avco-ct-banner-img {
    height: 14.625rem;
    /* 180px */
  }

  /* Form section */
  body.avco-page .avco-ct-form-section {
    padding: var(--avco-space-8) var(--avco-space-4);
    /* 32px 16px */
  }

  body.avco-page .avco-ct-form-left h1,
  body.avco-page .avco-ct-form-left h2 {
    font-size: 2.5rem;
    /* 28px */
  }

  body.avco-page .avco-ct-form-right {
    padding: var(--avco-space-4) var(--avco-space-4);
    /* 32px 16px */
  }

  body.avco-page .avco-ct-form-watermark,
  body.avco-page .avco-ct-form-bg-img {
    display: none;
  }

  /* Offices */
  body.avco-page .avco-ct-offices {
    padding: var(--avco-space-8) var(--avco-space-4);
    padding-top: 0;
    /* 32px 16px */
  }

  body.avco-page .avco-ct-office-block h3 {
    font-size: 1.25rem;
    /* 20px */
  }

  body.avco-page .avco-ct-office-block + .avco-ct-office-block {
    margin-top: var(--avco-space-6);
  }

  /* Managers */
  body.avco-page .avco-ct-managers {
    padding: 0 var(--avco-space-4) var(--avco-space-8);
    /* 0 16px 32px */
  }

  body.avco-page .avco-ct-managers-header h2 {
    font-size: 2.5rem;
    /* 28px */
  }

  body.avco-page .avco-ct-manager-name h4 {
    font-size: var(--avco-text-lg);
    /* 20px */
  }

  body.avco-page .avco-ct-manager-details {
    padding: var(--avco-space-4);
  }

  /* Extra image */
  body.avco-page .avco-ct-image-upload {
    padding: 0 var(--avco-space-4) var(--avco-space-8);
    /* 0 16px 32px */
  }
}

/* ==========================================================================
   SUCCESS MODAL (after form submit)
   ========================================================================== */

body.avco-page .avco-ct-success-modal {
  position: fixed;
  inset: 0;
  z-index: var(--avco-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--avco-space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--avco-transition-base) ease;
}

body.avco-page .avco-ct-success-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.avco-page .avco-ct-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 39, 75, 0.55);
  cursor: pointer;
}

body.avco-page .avco-ct-success-card {
  position: relative;
  background: var(--avco-white);
  border-radius: var(--avco-radius-sm);
  padding: var(--avco-space-10) var(--avco-space-8) var(--avco-space-8);
  width: 100%;
  max-width: 28rem;
  box-shadow: 0 1.25rem 3rem rgba(32, 39, 75, 0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--avco-space-4);
  transform: translateY(0.625rem);
  transition: transform var(--avco-transition-base) ease;
}

body.avco-page .avco-ct-success-modal.is-open .avco-ct-success-card {
  transform: translateY(0);
}

body.avco-page .avco-ct-success-close {
  position: absolute;
  top: var(--avco-space-3);
  right: var(--avco-space-3);
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--avco-gray-500);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--avco-radius-full);
  transition: background var(--avco-transition-fast), color var(--avco-transition-fast);
}

body.avco-page .avco-ct-success-close:hover,
body.avco-page .avco-ct-success-close:focus {
  background: var(--avco-gray-50);
  color: var(--avco-primary-950);
}

body.avco-page .avco-ct-success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--avco-radius-full);
  background: var(--avco-status-success-bg);
  color: var(--avco-status-success);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.avco-page .avco-ct-success-icon svg {
  width: 2rem;
  height: 2rem;
  display: block;
}

body.avco-page .avco-ct-success-title {
  font-family: var(--avco-font-heading);
  font-size: var(--avco-text-3xl);
  font-weight: var(--avco-weight-semibold);
  line-height: var(--avco-leading-tight);
  color: var(--avco-primary-950);
  margin: 0;
}

body.avco-page .avco-ct-success-desc {
  font-size: var(--avco-text-base);
  font-weight: var(--avco-weight-regular);
  line-height: var(--avco-leading-relaxed);
  color: var(--avco-gray-600);
  margin: 0;
}

body.avco-page .avco-container .avco-ct-success-ok {
  margin-top: var(--avco-space-2);
  min-width: 8rem;
}

@media (max-width: 767px) {
  body.avco-page .avco-ct-success-card {
    padding: var(--avco-space-8) var(--avco-space-5) var(--avco-space-6);
    gap: var(--avco-space-3);
  }

  body.avco-page .avco-ct-success-title {
    font-size: var(--avco-text-2xl);
  }
}
