@layer pages {
  /* Company contact, brought to the Home tools-card detail level.
     Recipes follow home-kv-tools.css (bar, hairline, state dot) and component-silver-blue.css (resin window). */


  /* ---------- company contact cards ---------- */
  #contact .ix-contact-card.ix-contact-card { min-height: 0; padding: 20px 20px 22px; transition: border-color .2s ease, transform .2s ease; }
  #contact .ix-contact-card:hover { border-color: #9ad8f5b0; transform: translateY(-2px); }
  #contact .ix-contact-card h2 { min-height: 0; margin-top: 22px; }
  #contact .ix-contact-card .ix-copy { margin-top: 10px; }
  /* Side by side, the cards share their rows (visual, title, text), so each text starts on one line when a title wraps. */
  @media (min-width: 769px) {
    #contact .ix-contact-card.ix-contact-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  }

  /* ---------- contact form window ---------- */
  #contact .ix-contact-form-wrap.ix-contact-form-wrap { padding: 0; }
  #contact .ix-form-bar {
    height: 52px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #9edafa1e;
    background: radial-gradient(ellipse 85% 300% at 24% -140%,#9ac9df38,transparent 95%),linear-gradient(110deg,#729eb52b,#12344c66 65%,#06182799);
    box-shadow: inset 0 1px #d5f4ff25;
  }
  #contact .ix-form-bar .ix-contact-form-title { margin: 0; color: #eef6fb; font: 500 17px/1 var(--ix-sans); }
  #contact .ix-form-to { color: #a9bfce; font: 400 14px/1 var(--ix-mono); white-space: nowrap; }
  #contact .ix-form-body { padding: 28px 32px 30px; }
  #contact .ix-contact-form label { color: #b9cedc; font-size: 14px; }
  #contact .ix-contact-form .ix-ui-field.ix-ui-field {
    color: #e6f1f8;
    border: 1px solid #91d7fa2e;
    border-radius: 0;
    background: linear-gradient(145deg,#061a2bd9,#030c17ee);
    box-shadow: inset 0 1px #dff6ff0d;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  #contact .ix-contact-form .ix-ui-field.ix-ui-field:hover { border-color: #91d7fa55; }
  #contact .ix-contact-form .ix-ui-field.ix-ui-field:focus,
  #contact .ix-contact-form .ix-ui-field.ix-ui-field:focus-visible {
    outline: none;
    border-color: #7fd3ffb0;
    box-shadow: inset 0 1px #dff6ff14,0 0 0 3px #45b7f624;
  }
  #contact .ix-contact-form select.ix-ui-field.ix-ui-field {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background:
      linear-gradient(45deg,transparent 50%,#a9d6ec 50%) calc(100% - 18px) 50%/5px 5px no-repeat,
      linear-gradient(-45deg,transparent 50%,#a9d6ec 50%) calc(100% - 13px) 50%/5px 5px no-repeat,
      linear-gradient(145deg,#061a2bd9,#030c17ee);
  }
  #contact .ix-contact-form select.ix-ui-field option { color: #e6f1f8; background: #06182a; }
  #contact #contact-form-note:not([hidden]) { margin-top: 16px; display: flex; align-items: flex-start; gap: 8px; color: #9fb6c6; font-size: 14px; }
  /* The marker sits on the first line, also when the note wraps on phones. */
  #contact #contact-form-note::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: .6em; background: #54c4ff; box-shadow: 0 0 8px #45b7f688; }
  /* The confirmation (green: the enquiry is stored) and the failure text with the email draft (blue). */
  #contact :is(#contact-form-sent, #contact-form-failed):not([hidden]) {
    position: relative;
    margin-top: 12px;
    padding: 10px 12px 10px 26px;
    display: block;
    color: #c9f2df;
    border: 1px solid #23ce8c4d;
    background: #23ce8c14;
    font-size: 14px;
    line-height: 1.5;
  }
  #contact :is(#contact-form-sent, #contact-form-failed):not([hidden])::before { content: ""; position: absolute; left: 12px; top: calc(10px + .5em); width: 6px; height: 6px; background: var(--ix-ui-green); box-shadow: 0 0 9px #23ce8c88; }
  #contact #contact-form-failed:not([hidden]) { color: #d6e8f3; border-color: #45b7f64d; background: #45b7f614; }
  #contact #contact-form-failed:not([hidden])::before { background: #54c4ff; box-shadow: 0 0 8px #45b7f688; }
  #contact #contact-form-failed a { color: #7fd0ff; }

  @media (prefers-reduced-motion: reduce) {
    #contact .ix-contact-card, #contact .ix-contact-form .ix-ui-field { transition: none; }
    #contact .ix-contact-card:hover { transform: none; }
  }

  @media (max-width: 860px) {
    #contact .ix-form-bar { height: auto; min-height: 52px; padding: 12px 16px; flex-wrap: wrap; gap: 6px 16px; }
    #contact .ix-form-body { padding: 20px 16px 22px; }
  }
}
