/* SM360_CONTACT_LAYOUT_V2
 * Contact-only layout refinement.
 * Keeps the enquiry form at a comfortable reading width and places the
 * practical/in-house guidance beside it on desktop. Loaded after contact.css.
 */

.sm360-contact-primary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(19.5rem, 0.78fr);
  gap: clamp(1.25rem, 2.4vw, 2rem);
  align-items: start;
}

.sm360-contact-primary-layout > .contact-form-card {
  width: 100%;
  min-width: 0;
  margin: 0;
}

/* SM360_CONTACT_ANTISPAM_COMPACT_INPUT_V2
 * contact.css historically capped the entire compact row at 340px. That also
 * squeezed the label and explanatory hint. Keep the row full-width and only
 * make the two-digit numeric answer control compact.
 */
.sm360-contact-primary-layout .contact-field-row-compact {
  width: 100%;
  max-width: none;
}

.sm360-contact-primary-layout .sm360-antispam-field input#human_answer[type="number"] {
  width: 8.5rem;
  max-width: 100%;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
}

.sm360-contact-why-panel {
  position: sticky;
  top: 6.5rem;
  min-width: 0;
  padding: clamp(1.35rem, 2.3vw, 1.8rem);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.58));
  box-shadow: 0 24px 68px rgba(2, 6, 23, 0.30);
  overflow: hidden;
}

.sm360-contact-why-panel .contact-eyebrow {
  margin-bottom: 0.55rem;
}

.sm360-contact-why-panel h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.28rem, 1.55vw, 1.62rem);
  line-height: 1.2;
}

.sm360-contact-why-panel > p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.62;
}

.sm360-contact-why-panel .contact-band-points {
  margin-top: 1.15rem;
  gap: 0.75rem;
}

.sm360-contact-why-panel .contact-chip {
  gap: 0.7rem;
}

.sm360-contact-inhouse-note {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(125, 211, 252, 0.22);
}

.sm360-contact-inhouse-kicker {
  margin: 0 0 0.45rem !important;
  color: #7dd3fc !important;
  font-size: 0.76rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sm360-contact-inhouse-note h3 {
  margin: 0 0 0.75rem;
  color: rgba(241, 245, 249, 0.98);
  font-size: 1.08rem;
  line-height: 1.35;
}

.sm360-contact-inhouse-note p {
  margin: 0;
  color: rgba(203, 213, 225, 0.88);
  font-size: 0.94rem;
  line-height: 1.58;
}

.sm360-contact-inhouse-note p + p {
  margin-top: 0.75rem;
}

.sm360-contact-inhouse-link {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  text-align: center;
}

body.theme-light .sm360-contact-why-panel,
html[data-theme="light"] .sm360-contact-why-panel,
body[data-theme="light"] .sm360-contact-why-panel {
  border-color: rgba(15, 23, 42, 0.11);
  background:
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.82));
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.10);
}

body.theme-light .sm360-contact-why-panel > p,
html[data-theme="light"] .sm360-contact-why-panel > p,
body[data-theme="light"] .sm360-contact-why-panel > p {
  color: rgba(15, 23, 42, 0.78);
}

body.theme-light .sm360-contact-inhouse-note,
html[data-theme="light"] .sm360-contact-inhouse-note,
body[data-theme="light"] .sm360-contact-inhouse-note {
  border-top-color: rgba(14, 116, 144, 0.18);
}

body.theme-light .sm360-contact-inhouse-note h3,
html[data-theme="light"] .sm360-contact-inhouse-note h3,
body[data-theme="light"] .sm360-contact-inhouse-note h3 {
  color: #0f172a;
}

body.theme-light .sm360-contact-inhouse-note p,
html[data-theme="light"] .sm360-contact-inhouse-note p,
body[data-theme="light"] .sm360-contact-inhouse-note p {
  color: rgba(15, 23, 42, 0.72);
}

@media (max-width: 980px) {
  .sm360-contact-primary-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sm360-contact-primary-layout > .contact-form-card {
    max-width: 48rem;
    justify-self: center;
  }

  .sm360-contact-why-panel {
    position: static;
    width: 100%;
    max-width: 48rem;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .sm360-contact-primary-layout {
    gap: 1rem;
  }

  .sm360-contact-why-panel {
    padding: 1.15rem;
    border-radius: 1.1rem;
  }
}
