.new-request-page {
  padding-bottom: 56px;
}

.new-request-page.has-topic-picker .new-request-page__title {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.new-request-topic-picker {
  margin: 0 auto 40px;
  max-width: 940px;
  width: 100%;
  animation: new-request-topic-picker-enter 200ms ease-out;
}

.new-request-topic-picker__intro {
  display: flex;
  justify-content: center;
}

.new-request-topic-picker__heading {
  color: #282426;
  font-size: 36px;
  font-weight: 700;
  line-height: 43px;
  margin: 0;
  max-width: 720px;
  text-align: center;
}

@media (min-width: 768px) {
  .new-request-topic-picker__heading {
    margin-top: 24px;
  }
}

.new-request-topic-picker__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 20px;
}

.new-request-topic-selection {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto 32px;
  max-width: 940px;
  width: 100%;
  animation: new-request-topic-picker-enter 200ms ease-out;
}

.new-request-topic-selection[hidden] {
  display: none !important;
}

.new-request-topic-selection__back {
  align-items: center;
  color: #282426;
  display: inline-flex;
  font-size: 18px;
  font-weight: 700;
  gap: 10px;
  text-decoration: none;
}

.new-request-topic-selection__back[hidden] {
  display: none !important;
}

.new-request-topic-selection__back::before {
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  display: block;
  height: 10px;
  transform: rotate(45deg);
  width: 10px;
}

.new-request-topic-selection__back:hover,
.new-request-topic-selection__back:focus,
.new-request-topic-selection__back:focus-visible {
  color: #cf4a00;
  outline: none;
  text-decoration: none;
}

.new-request-topic-selection__title {
  color: #282426;
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

@media (min-width: 640px) {
  .new-request-topic-picker__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .new-request-topic-picker__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.new-request-topic-picker__tile {
  --new-request-topic-accent: #282426;
  align-items: center;
  background: #f7f7f7;
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  color: #282426;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  min-height: 218px;
  padding: 40px 16px 24px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.new-request-topic-picker__tile:hover,
.new-request-topic-picker__tile:focus,
.new-request-topic-picker__tile:focus-visible {
  border-color: #cf4a00;
  box-shadow: 0 12px 28px rgba(40, 36, 38, 0.08);
  outline: none;
  text-decoration: none;
  transform: translateY(-2px);
}

.new-request-topic-picker__tile.is-active {
  --new-request-topic-accent: #cf4a00;
  background: #ffffff;
  border-color: #cf4a00;
  box-shadow: 0 12px 28px rgba(40, 36, 38, 0.08);
}

.new-request-topic-picker__icon {
  color: var(--new-request-topic-accent);
  background-color: currentColor;
  display: block;
  flex-shrink: 0;
  height: 96px;
  width: 96px;
  -webkit-mask-image: var(--new-request-topic-icon);
  mask-image: var(--new-request-topic-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.new-request-topic-picker__label {
  color: #282426;
  display: flex;
  flex: 1 1 auto;
  font-size: 20px;
  font-weight: 700;
  justify-content: center;
  line-height: 36px;
  text-align: center;
  width: 100%;
}

.new-request-form-shell {
  margin: 0 auto;
  max-width: 940px;
}

.new-request-ticket-form-field--hidden {
  display: none !important;
}

@keyframes new-request-topic-picker-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Customer service hotline (ECOM-5479) */
.new-request-page__aside {
  margin: 40px auto 0;
  max-width: 940px;
}

/* Below the main column the aside spans the topic grid width, shown as a grey box like the tiles */
.cs-hotline {
  background: #f7f7f7;
  border-radius: 12px;
  color: #282426;
  display: flex;
  font-size: 18px;
  gap: 16px;
  line-height: 1.5;
  padding: 16px;
}

.cs-hotline__icon {
  display: block;
  flex-shrink: 0;
  height: 24px;
  width: 24px;
}

.cs-hotline__lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}

.cs-hotline__label,
.cs-hotline__phone {
  font-weight: 700;
}

.cs-hotline__hours-title {
  margin-top: 8px;
}

.cs-hotline__phone,
.cs-hotline__phone:visited {
  color: #282426;
  text-decoration: none;
}

a.cs-hotline__phone:hover,
a.cs-hotline__phone:focus-visible {
  color: #cf4a00;
  text-decoration: none;
}

@media (min-width: 768px) {
  .cs-hotline {
    padding: 24px;
  }

  .cs-hotline__icon {
    height: 48px;
    width: 48px;
  }
}

@media (min-width: 960px) {
  .new-request-page--has-aside {
    align-items: start;
    column-gap: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .new-request-page__main {
    min-width: 0;
  }

  .new-request-page__aside {
    margin: 0;
    max-width: none;
    position: sticky;
    top: 24px;
  }

  /* Line the aside up with the topic tiles: heading margin + heading line + grid padding */
  .new-request-page.is-topic-selection-state .new-request-page__aside {
    margin-top: calc(24px + 43px + 20px);
  }

  /* Line the aside up with the form: back link line + gap + title line + selection margin */
  .new-request-page.has-selected-topic .new-request-page__aside {
    margin-top: calc(27px + 20px + 45px + 32px);
  }

  .new-request-page__aside .cs-hotline {
    background: none;
    border-radius: 0;
    padding: 0 0 8px;
  }

  /* Main column is narrower next to the aside, keep two topic columns until there is room for three */
  .new-request-page--has-aside .new-request-topic-picker__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .new-request-page--has-aside .new-request-topic-picker__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
