/*-- -------------------------- -->
<---          Contact           -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0em) {
  #cs-contact .cs-content {
    width: 100%;
    max-width: 44rem;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
  }
  #cs-contact .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: clamp(0.5rem, 1.4vw, 0.75rem);
    display: block;
  }
  #cs-contact .cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: left;
    margin: 0 0 1rem;
    color: var(--headerColor);
  }
  #cs-contact .cs-text {
    font-size: var(--bodyFontSize);
    line-height: 1.6em;
    text-align: left;
    margin: 0;
    color: var(--bodyTextColor);
  }

  #cs-contact .cs-columns {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2rem);
  }
  /* Form first on mobile — it is the conversion action; phone/email are also
     in the header and footer. */
  /* Details panel — brand green, like the accent card on the home page.
     order:2 puts the form first on mobile; phone/email are also in the header
     and footer. */
  #cs-contact .cs-aside {
    order: 2;
    background-color: var(--primary);
    border-radius: 1rem;
    padding: clamp(1.25rem, 3.5vw, 2.5rem);
    color: #fff;
  }
  #cs-contact .cs-aside-title {
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    line-height: 1.3em;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #fff;
  }
  #cs-contact .cs-aside-text {
    font-size: 1rem;
    line-height: 1.6em;
    margin: 0 0 clamp(1.5rem, 3vw, 2rem);
    color: rgba(255, 255, 255, 0.85);
  }
  #cs-contact .cs-details {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  #cs-contact .cs-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
  }
  #cs-contact .cs-detail-icon {
    width: 1.25rem;
    height: auto;
    flex: none;
    margin-top: 0.25rem;
    /* The nav icons are dark; invert them for the green panel. */
    filter: brightness(0) invert(1);
  }
  #cs-contact .cs-detail-body {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
  }
  #cs-contact .cs-detail-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    /* 0.85, not 0.7 — 0.7 on the green panel only reached 4.01:1 */
    color: rgba(255, 255, 255, 0.85);
  }
  #cs-contact .cs-detail-value {
    font-size: 1.0625rem;
    line-height: 1.4em;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    overflow-wrap: anywhere;
    transition: opacity 0.3s;
  }
  #cs-contact a.cs-detail-value:hover {
    opacity: 0.75;
    text-decoration: underline;
    text-underline-offset: 0.125rem;
  }
  #cs-contact .cs-detail-plain {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
  }
  #cs-contact .cs-aside-note {
    font-size: 0.875rem;
    line-height: 1.5em;
    margin: clamp(1.5rem, 3vw, 2rem) 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
  }

  /* Form card */
  #cs-contact #cs-form {
    background-color: #fff;
    border: 1px solid #e3e8e5;
    border-radius: 1rem;
    padding: clamp(1.25rem, 3.5vw, 2.5rem);
  }
  #cs-contact .cs-form-grid {
    display: grid;
    gap: clamp(0.875rem, 2.5vw, 1.5rem);
  }
  #cs-contact #cs-form label {
    font-size: 0.9375rem;
    line-height: 1.4em;
    font-weight: 700;
    color: var(--headerColor);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
  }
  #cs-contact #cs-form input,
  #cs-contact #cs-form textarea {
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    /* 48px — still well clear of the 44px tap-target minimum, but 3.5rem made
       the stacked mobile form very long. */
    height: 3rem;
    padding: 0 0.875rem;
    color: var(--headerColor);
    background-color: #fff;
    border: 1px solid #cdd6d1;
    border-radius: 0.375rem;
    box-sizing: border-box;
    transition:
      border-color 0.3s,
      box-shadow 0.3s;
  }
  #cs-contact #cs-form textarea {
    height: auto;
    min-height: 7rem;
    padding: 0.75rem 0.875rem;
    resize: vertical;
  }
  #cs-contact #cs-form input:hover,
  #cs-contact #cs-form textarea:hover {
    border-color: var(--primary);
  }
  #cs-contact #cs-form input:focus,
  #cs-contact #cs-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primaryRGB), 0.18);
  }
  #cs-contact #cs-form ::placeholder {
    color: #8c948f;
  }
  #cs-contact .cs-button-solid {
    font-size: 1rem;
    line-height: 3rem;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    width: 100%;
    margin-top: clamp(1.25rem, 3vw, 2rem);
    color: #fff;
    padding: 0 2rem;
    background-color: var(--primary);
    border: none;
    border-radius: 0.25rem;
    display: inline-block;
    box-sizing: border-box;
    cursor: pointer;
    transition:
      background-color 0.3s ease,
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }
  #cs-contact .cs-button-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -6px rgba(var(--primaryRGB), 0.55);
  }
  @media (prefers-reduced-motion: reduce) {
    #cs-contact .cs-button-solid:hover {
      transform: none;
    }
  }
}
/* Tablet - 700px */
@media only screen and (min-width: 43.75em) {
  #cs-contact .cs-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  #cs-contact .cs-label-wide,
  #cs-contact .cs-label-message {
    grid-column: 1 / -1;
  }
  #cs-contact .cs-button-solid {
    width: auto;
    min-width: 14rem;
  }
}
/* Desktop - 1024px: form leads, details panel alongside. */
@media only screen and (min-width: 64em) {
  #cs-contact .cs-columns {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 3rem);
  }
  #cs-contact .cs-aside {
    order: 2;
    position: sticky;
    top: 9rem;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0em) {
  body.dark-mode #cs-contact .cs-title {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #cs-contact .cs-text {
    color: #a9b0ac;
  }
  /* The green panel keeps its own colour scheme in dark mode — it is already
     a dark surface and reads as the page accent either way. */
  body.dark-mode #cs-contact #cs-form {
    background-color: var(--medium);
    border-color: #2c322f;
  }
  body.dark-mode #cs-contact #cs-form label {
    color: var(--bodyTextColorWhite);
  }
  /* Darker than the card behind them so the fields stay legible as fields. */
  body.dark-mode #cs-contact #cs-form input,
  body.dark-mode #cs-contact #cs-form textarea {
    background-color: var(--dark);
    border-color: #39403c;
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #cs-contact #cs-form ::placeholder {
    color: #7d857f;
  }
}
