* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  position: relative;
}

img,
svg,
video,
canvas,
iframe,
input,
select,
textarea,
button {
  max-width: 100%;
}

#root main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

#root main > div:last-child {
  width: min(100%, 1380px);
  max-width: 100%;
  margin-inline: auto;
}

#root main > div:last-child > section,
#root main > div:last-child > section > *,
#root main form,
#root main form section,
#root main form section > div,
#root main form fieldset,
#root main form .luxury-input,
#root main form .luxury-select,
#root main form .luxury-button,
#root main form .luxury-choice,
#root main form textarea {
  min-width: 0;
  max-width: 100%;
}

.luxury-input,
.luxury-select,
.luxury-button,
.luxury-choice,
textarea.luxury-input {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1023px) {
  html,
  body,
  #root,
  #root main {
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  #root main {
    touch-action: pan-y pinch-zoom;
  }

  #root main > div:last-child {
    width: 100%;
    max-width: 100%;
    padding-inline: clamp(22px, 5vw, 34px) !important;
    padding-top: clamp(24px, 5vw, 38px) !important;
    padding-bottom: clamp(34px, 6vw, 50px) !important;
  }

  #root main > div:last-child > section {
    grid-template-columns: 1fr !important;
    gap: clamp(28px, 6vw, 44px) !important;
  }

  #root main > div:last-child > section > :first-child {
    width: 100%;
    max-width: 100%;
    border-left: none !important;
    padding-left: 0 !important;
  }

  #root main > div:last-child > section > :nth-child(2) {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: clamp(22px, 4vw, 30px) !important;
    border-radius: 26px !important;
  }

  #root main > div:last-child > section > :nth-child(2) > div:first-child {
    margin-bottom: 24px !important;
    padding-bottom: 20px !important;
  }

  #root main form {
    gap: 28px !important;
  }

  #root main form section > div[class*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #root main form fieldset > div[class*="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .field-label {
    display: block;
    margin-bottom: 8px !important;
  }

  .luxury-input,
  .luxury-select,
  textarea.luxury-input {
    min-width: 0;
    padding-inline: 14px !important;
    font-size: 16px !important;
  }

  .luxury-select {
    padding-right: 42px !important;
    background-position: right 14px center !important;
  }

  .luxury-button {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  #root main > div:last-child {
    padding-inline: 18px !important;
    padding-top: 22px !important;
    padding-bottom: 30px !important;
  }

  #root main > div:last-child > section > :first-child {
    text-align: left;
    align-items: flex-start;
  }

  #root main > div:last-child > section > :first-child > * {
    margin-inline: 0;
  }

  #root main > div:last-child > section > :first-child h1 {
    width: 100%;
    max-width: 10.5ch;
    font-size: clamp(2.45rem, 11.5vw, 4.1rem) !important;
    line-height: 0.98 !important;
    overflow-wrap: anywhere;
  }

  #root main > div:last-child > section > :first-child p,
  #root main > div:last-child > section > :first-child [class*="max-w-"] {
    width: 100%;
    max-width: 100%;
    margin-inline: 0 !important;
    overflow-wrap: anywhere;
  }

  #root main > div:last-child > section > :first-child .grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #root main > div:last-child > section > :nth-child(2) {
    padding: 20px 16px !important;
    border-radius: 22px !important;
  }

  #root main > div:last-child > section > :nth-child(2) h2 {
    font-size: clamp(1.8rem, 7vw, 2.25rem) !important;
    line-height: 1.04 !important;
  }

  #root main > div:last-child > section > :nth-child(2) > div:first-child {
    gap: 12px !important;
  }

  #root main > div:last-child > section > :nth-child(2) > div:first-child p {
    max-width: 100% !important;
  }

  #root main form section > div[class*="grid"],
  #root main form > div[class*="flex"] {
    width: 100%;
    max-width: 100%;
  }

  #root main form > div[class*="flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  #root main form > div[class*="flex"] p {
    max-width: 100% !important;
  }

  .luxury-choice {
    min-width: 0;
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #root main > div:last-child {
    padding-inline: 30px !important;
    padding-top: 34px !important;
    padding-bottom: 44px !important;
  }

  #root main > div:last-child > section > :first-child {
    max-width: 100%;
  }

  #root main > div:last-child > section > :first-child h1 {
    max-width: 11ch;
    font-size: clamp(3.4rem, 7vw, 5rem) !important;
    line-height: 0.95 !important;
  }

  #root main > div:last-child > section > :first-child p,
  #root main > div:last-child > section > :first-child [class*="max-w-"] {
    max-width: 100% !important;
  }

  #root main > div:last-child > section > :nth-child(2) {
    padding: 28px 24px !important;
  }
}
