/* BAREP desktop homepage fidelity restore (v2.6)
   Keeps the approved 1672px section artwork and aligns the live form exactly
   over the form artwork so only one border and one text layer are visible. */
@media (min-width: 901px) {
  .page {
    max-width: 1672px;
  }

  .homepage-section > img.section-image {
    image-rendering: auto;
  }

  .homepage-section {
    scroll-margin-top: 0;
  }

  .desktop-home-nav {
    position: absolute;
    z-index: 20;
    top: 6.6%;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 11.6%;
    padding: 0 3.3%;
    background: #fff;
    line-height: 1;
  }

  .desktop-home-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
  }

  .desktop-home-brand img {
    display: block;
    width: clamp(140px, 15.5vw, 260px);
    height: auto;
    object-fit: contain;
  }

  .desktop-home-links {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.5vw, 42px);
    margin-left: auto;
    white-space: nowrap;
  }

  .desktop-home-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: #062a5d;
    font-size: clamp(12px, 0.96vw, 16px);
    font-weight: 500;
    text-decoration: none;
  }

  .desktop-home-link.active::after,
  .desktop-home-link:hover::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: #20bf58;
    content: "";
  }

  .desktop-home-navitem {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .desktop-home-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  .desktop-home-dropdown summary {
    display: block;
    width: 14px;
    height: 14px;
    border-right: 1.5px solid #062a5d;
    border-bottom: 1.5px solid #062a5d;
    cursor: pointer;
    list-style: none;
    transform: translateY(-3px) rotate(45deg) scale(0.62);
  }

  .desktop-home-dropdown summary::-webkit-details-marker { display: none; }

  .desktop-home-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 18px);
    left: 50%;
    display: none;
    min-width: 230px;
    padding: 8px;
    border: 1px solid #dce4ed;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(6, 42, 93, 0.16);
    transform: translateX(-50%);
  }

  .desktop-home-dropdown[open] .desktop-home-menu { display: block; }

  .desktop-home-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #062a5d;
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
  }

  .desktop-home-menu a:hover,
  .desktop-home-menu a:focus-visible {
    background: #f0f5fb;
  }

  .desktop-home-link:focus-visible,
  .desktop-home-cta:focus-visible,
  .desktop-home-dropdown summary:focus-visible {
    outline: 3px solid rgba(255, 106, 0, 0.55);
    outline-offset: 3px;
  }

  .desktop-home-search-icon {
    position: relative;
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0 2px 0 4px;
  }

  .desktop-home-search-icon::before {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 14px;
    height: 14px;
    border: 1.7px solid #062a5d;
    border-radius: 50%;
    content: "";
  }

  .desktop-home-search-icon::after {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 9px;
    height: 1.7px;
    background: #062a5d;
    content: "";
    transform: rotate(48deg);
    transform-origin: left center;
  }

  .desktop-home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 52px;
    padding: 0 clamp(12px, 1.45vw, 24px);
    border-radius: 8px;
    background: #062a5d;
    color: #fff;
    font-size: clamp(12px, 0.96vw, 16px);
    text-decoration: none;
  }

  .desktop-home-cta:hover { background: #0b3a7b; }

  @media (min-width: 901px) and (max-width: 1100px) {
    .desktop-home-nav { padding-right: 2%; padding-left: 2%; }
    .desktop-home-brand img { width: 140px; }
    .desktop-home-links { gap: 10px; }
    .desktop-home-navitem { gap: 2px; }
    .desktop-home-link,
    .desktop-home-cta { font-size: 12px; }
    .desktop-home-search-icon { flex-basis: 18px; width: 18px; height: 20px; margin: 0; }
    .desktop-home-search-icon::before { width: 12px; height: 12px; }
    .desktop-home-search-icon::after { top: 13px; left: 13px; width: 7px; }
    .desktop-home-cta { min-height: 42px; gap: 5px; padding: 0 9px; }
  }

  #rfq .form-overlay .field,
  #rfq .form-overlay .attachment-notice {
    pointer-events: auto;
    box-sizing: border-box;
  }

  #rfq .form-overlay input,
  #rfq .form-overlay select,
  #rfq .form-overlay textarea {
    display: block;
    width: 100%;
    height: 100%;
    color: #061f55;
    background: #fff;
    border: 1px solid #d9e3ef;
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(6, 42, 93, 0.04);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(12px, 0.84vw, 14px);
    font-weight: 500;
    line-height: 1.25;
    padding: 0 12px;
    text-indent: 0;
    opacity: 1;
    box-sizing: border-box;
  }

  #rfq .form-overlay textarea {
    padding: 12px 14px;
    line-height: 1.35;
  }

  #rfq .form-overlay select {
    color: #061f55;
    cursor: pointer;
  }

  #rfq .form-overlay input::placeholder,
  #rfq .form-overlay textarea::placeholder {
    color: #7b8799;
    opacity: 1;
  }

  #rfq .form-overlay input:focus,
  #rfq .form-overlay select:focus,
  #rfq .form-overlay textarea:focus {
    border-color: #7da2d8;
    box-shadow: 0 0 0 3px rgba(46, 105, 190, 0.12);
  }

  #rfq-form [name="name"] {
    padding-left: 12px;
  }

  #rfq .attachment-notice {
    position: absolute;
    z-index: 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 22px;
    color: #061f55;
    background: #fff;
    border: 1px solid #d9e3ef;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(6, 42, 93, 0.04);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(11px, 0.78vw, 14px);
    line-height: 1.2;
  }

  #rfq .attachment-notice strong {
    display: block;
    font-size: clamp(12px, 0.86vw, 15px);
    line-height: 1.2;
  }

  #rfq .attachment-notice a {
    color: #ff5a00;
    font-weight: 700;
    text-decoration: underline;
    pointer-events: auto;
  }

}
