html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.idt-header-logo {
  width: 115px !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain;
}

header > div:first-child {
  height: 64px !important;
  min-height: 64px !important;
}

@media (max-width: 1023px) {
  :root {
    --spacing-margin: 1.5rem;
    --spacing-space-xl: 2rem;
  }

  .max-w-7xl {
    width: 100%;
  }

  .lg\:col-span-5,
  .lg\:col-span-7 {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  :root {
    --spacing-margin: 1rem;
    --spacing-space-lg: 1rem;
    --spacing-space-xl: 1.5rem;
  }

  body {
    font-size: 15px;
  }

  header > div:first-child {
    min-height: 4rem;
    height: auto;
    padding-block: 0.75rem;
  }

  header img {
    max-width: 112px;
  }

  header .gap-space-md {
    gap: 0.5rem;
  }

  header .hidden.sm\:inline-flex {
    display: none;
  }

  #mobile-drawer {
    padding-inline: 1rem;
  }

  .py-space-xs {
    padding-block: 0.625rem;
  }

  .pt-space-xl {
    padding-top: 1.5rem;
  }

  .pb-space-xl {
    padding-bottom: 1.5rem;
  }

  .text-display-hero-mobile {
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.15;
  }

  .text-headline-lg {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .text-body-lg {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
  }

  .aspect-\[4\/3\] img {
    height: 100%;
    object-fit: cover;
  }

  .idt-form-grid {
    grid-template-columns: 1fr;
  }

  .idt-form .idt-check {
    align-items: flex-start;
  }

  .idt-form button[type=submit] {
    width: 100%;
    min-height: 46px;
  }

  section[id="rfq-form"] > div {
    padding: 1rem;
  }

  footer .max-w-7xl {
    padding-inline: 1rem;
  }

  footer .text-left.md\:text-right {
    text-align: left;
    align-items: flex-start;
  }

  footer .grid {
    row-gap: 0.25rem;
  }
}

@media (max-width: 767px) {
  header > div:first-child {
    height: 4rem;
    min-height: 4rem;
    padding: 0 1rem;
  }

  header > div:first-child > div:first-child img {
    width: 7rem !important;
    height: 2rem;
    object-fit: contain;
  }

  header .idt-header-logo {
    width: 100px !important;
    max-width: 100px !important;
    height: auto !important;
  }

  #mobile-menu-toggle {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border: 1px solid #c6c6cd;
    border-radius: 0.375rem;
  }

  #mobile-menu-toggle .material-symbols-outlined {
    font-size: 1.5rem;
  }

  .bg-surface-bright.border-b,
  .bg-surface-container-lowest.border-b {
    min-height: 2.75rem;
  }

  .bg-surface-bright.border-b > .max-w-7xl {
    min-width: 0;
    padding-block: 0.625rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #mobile-drawer {
    background: #131b2e;
    border-color: #3b485d;
    color: #ffffff;
    padding-block: 0.75rem 1rem;
  }

  #mobile-drawer nav a {
    min-height: 3rem;
    color: #dae2fd;
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid rgb(59 72 93 / 65%);
  }

  #mobile-drawer nav a:hover,
  #mobile-drawer nav a:focus-visible {
    color: #ffffff;
    background: #1d2940;
  }

  #mobile-drawer nav > div {
    border-color: #3b485d;
    padding-top: 0.75rem;
  }

  #mobile-drawer nav > div a {
    min-height: 2.875rem;
    color: #ffffff;
    background: #d95f2a;
    border: 0;
  }

  .idt-form {
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .idt-field label {
    color: #1f2d43;
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .idt-form input:not([type=checkbox]),
  .idt-form select,
  .idt-form textarea {
    font-size: 1rem;
    line-height: 1.4;
  }

  .idt-form .idt-upload,
  .idt-form .idt-check,
  .idt-form-status,
  .idt-preview-notice {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .idt-form .idt-check {
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .idt-form .idt-check input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
  }

  .idt-form button[type=submit] {
    min-height: 3rem;
    padding-inline: 1rem;
    white-space: normal;
  }
}
