/* Global IT Solutions — align Services and Contact in one shared stage.
   Intentionally changes positions and heights ONLY; preserves glass transparency,
   shadows, icons, background, colors, and mobile stacking. */
@media (min-width: 1101px) {
  /* Match the service heading's responsive height so all cards begin at the
     same vertical line. 6vw + 30px follows the two-line services heading. */
  .site-shell .contact-panel-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1740px;
    height: 100%;
    min-height: 0;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, .88fr) repeat(2, minmax(0, 1.2fr));
    grid-template-rows: clamp(108px, calc(6vw + 30px), 140px) minmax(0, 1fr);
    column-gap: clamp(9px, 1.05vw, 17px);
    row-gap: clamp(12px, 2vh, 19px);
    padding: clamp(12px, 1.8vh, 22px) clamp(24px, 4.5vw, 77px) 12px;
    align-items: stretch;
    align-content: stretch;
  }
  /* Intro starts at the same top coordinate as the Services heading. */
  .site-shell .contact-introduction {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    min-height: 0;
  }
  /* Two large Contact cards align with the five Services cards. */
  .site-shell .contact-form-card,
  .site-shell .contact-agent-card {
    box-sizing: border-box;
    grid-row: 2;
    align-self: stretch;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 0;
    margin-bottom: 0;
  }
  .site-shell .contact-form-card { grid-column: 2; }
  .site-shell .contact-agent-card { grid-column: 3; }
  .site-shell .contact-form-card { display: flex; flex-direction: column; }
  .site-shell #contact-mail-form { flex: 1 1 auto; min-height: 0; }
  /* Allow the message area to use extra space without pushing the card down. */
  .site-shell .contact-field-message { flex: 1 1 auto; min-height: 62px; }
  .site-shell .contact-field-message textarea { height: 100%; min-height: 0; resize: none; }
}

/* Fit the contact form gracefully into shorter laptop browser windows. */
@media (min-width: 1101px) and (max-height: 825px) {
  .site-shell .contact-form-card { padding: clamp(12px, 1vw, 18px); }
  .site-shell .contact-form-heading h3 { font-size: clamp(17px, 1.3vw, 23px); margin-bottom: 3px; }
  .site-shell .contact-form-heading p { font-size: 11px; line-height: 1.3; margin-bottom: 8px; }
  .site-shell #contact-mail-form { gap: 6px; }
  .site-shell .contact-field:not(.contact-field-message) { min-height: 36px; padding-inline: 10px; }
  .site-shell .contact-field input { padding-block: 7px; font-size: 12px; }
  .site-shell .contact-field-message { min-height: 58px; padding-top: 8px; }
  .site-shell .contact-field textarea { font-size: 12px; }
  .site-shell .contact-send-button { min-height: 40px; }
  .site-shell .contact-form-note { font-size: 9px; line-height: 1.2; }
}

/* Extremely short desktop windows may scroll inside the Contact panel so
   essential form controls never become inaccessible. */
@media (min-width: 1101px) and (max-height: 650px) {
  .site-shell .contact-panel { overflow-y: auto; }
  .site-shell .contact-panel-inner { min-height: 550px; height: auto; }
}
