@font-face {
  font-family: "Mark Offc";
  src: url("fonts/MarkOffc.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Mark Offc";
  src: url("fonts/MarkOffc-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Mark Offc";
  src: url("fonts/MarkOffc-Heavy.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Mark Offc";
  src: url("fonts/MarkOffc-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* Main page */
body {
  background: linear-gradient(to bottom, #EABA52 0%, #E8B345 100%);
}

.language-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 3px solid rgba(0, 0, 0, 1);
  border-radius: 10px;
  /* background: rgba(255, 255, 255, 0.7); */
  font: 600 0.8rem/1 "Mark Offc", sans-serif;
}

.language-switch button {
  min-width: 2rem;
  padding: 0.4rem 0.5rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #000;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: #000;
  color: #fff;
}

.language-switch button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.language-switch--public {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
}

header h1,
header h2 {
  font-family: "Mark Offc", sans-serif;
}

header h1 {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 5rem;
  line-height: 1;
  margin: 0px;
}

header h2 {
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 15px;
}

.campanya {
  display: block;
  width: 50%;
  min-width: 300px;
  margin: 0 auto;
}

.page-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.header-row {
  height: 30vh;
  align-items: center;
}

.content-row {
  height: 58vh;
  min-height: 0;
}

.footer-row {
  height: 10vh;
  align-items: center;
}

.feature-image {
  display: block;
  height: 58vh;
  object-fit: contain;
  border-radius: 0.375rem;
  aspect-ratio: 1/1;
  margin: 0 auto;
}

.cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: black;
  text-decoration: none;
  font-family: "Mark Offc", sans-serif;
  text-align: center;
  border-radius: 30px;
  transition: transform 1s ease, box-shadow 1s ease;
  padding: 15px;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.arrow {
  width: 75px;
  margin: 15px auto 0px;
  display: block;
  animation: arrow-bounce 6s ease-in-out infinite;
}

.cta-rebre .arrow {
  animation-delay: 3s;
}

@keyframes arrow-bounce {

  0%,
  8%,
  24%,
  40%,
  100% {
    transform: translateY(0);
  }

  12% {
    transform: translateY(-8px);
  }

  16% {
    transform: translateY(-4px);
  }

  28% {
    transform: translateY(-8px);
  }

  32% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrow {
    animation: none;
  }
}

.cta p {
  font-size: 1.5rem;
  font-weight: 600;
}

.cta h3 {
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.3rem;
  margin-top: 20px;
}

.footerImg {
  height: 8vh;
  opacity: 0.8;
}

.privacy-link {
  color: #000;
  font-family: "Mark Offc", sans-serif;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.privacy-link:hover,
.privacy-link:focus-visible {
  text-decoration: underline;
}

/* Shared panels */
:root {
  --flow-back-height: 4.5rem;
}

.form-panel {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #fff;
  visibility: hidden;
  transition: transform 500ms ease, visibility 0s linear 500ms;
}

.tornar {
  width: 25px;
}

.form-panel-donar {
  transform: translateY(-100%);
}

.form-panel-rebre {
  transform: translateY(100%);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #f4f0e8;
}

.form-panel-privacy {
  transform: translateX(100%);
}

.form-panel.is-open {
  visibility: visible;
  transform: translateY(0);
  transition: transform 500ms ease;
}

.form-panel-privacy.is-open {
  transform: translateX(0);
}

.TextPanel {
  padding-left: 20px;
}

.form-back {
  position: absolute;
  z-index: 12;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: var(--flow-back-height);
  padding: 0.5rem 1rem;
  background: #eaba52;
  color: #000;
  font-family: "Mark Offc", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  line-height: 1;
}

.flow-back--bottom {
  bottom: 0;
}

.flow-back--top {
  top: 0;
}

.form-back .tornar {
  display: block;
  width: 25px;
}

.form-back:hover,
.form-back:focus-visible {
  background: #dca83e;
  text-decoration: none;
}

/* Donor flow */
.donar-step-1,
.donar-step-2 {
  height: 100%;
  min-width: 0;
  font-family: "Poppins", sans-serif;
}

.donar-step-1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: var(--flow-back-height);
}

.donar-step-content {
  width: min(100%, 900px);
  max-height: calc(100% - 5rem);
  margin: 0 auto;
  overflow: visible;
  padding-right: 1rem;
}

.donar-step-content h2,
.donar-step-2 h2 {
  margin: 0 0 1rem;
  font-family: "Mark Offc", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
}

.donar-step-2 {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-bottom: var(--flow-back-height);
}

.donar-step-2.is-active {
  display: flex;
  animation: rebre-detail-enter 500ms ease both;
}

.donar-contact-heading {
  width: 100%;
  margin-bottom: 3rem;
}

.donar-step-2>.row.g-5 {
  width: 100%;
}

.donar-step-2>.row.g-5>.col-md-6:last-child {
  padding-left: 2rem;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.donar-step-2 h3 {
  margin: 0 0 1.5rem;
  font-family: "Mark Offc", sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.donar-bike-summary {
  margin: 0;
  font-family: "Poppins", sans-serif;
}

.donar-bike-summary>div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.donar-bike-summary dt,
.donar-bike-summary dd {
  margin: 0;
}

.donar-bike-summary dt {
  font-weight: 500;
  text-transform: uppercase;
}

.donar-bike-summary dd {
  text-align: right;
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.donar-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.donar-upload-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.donar-upload-modal__dialog {
  position: relative;
  width: min(100%, 560px);
  padding: 2rem;
  border-radius: 8px;
  background: #f4f0e8;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.donar-upload-modal__dialog h2 {
  margin: 0 0 1.5rem;
  font-family: "Mark Offc", sans-serif;
  text-transform: uppercase;
}

.donar-upload-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.donar-dropzone {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  border: 2px dashed #777;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

.donar-dropzone.is-dragging,
.donar-dropzone:hover {
  border-color: #b38321;
  background: rgba(234, 186, 82, 0.2);
}

.donar-dropzone span {
  font-family: "Poppins", sans-serif;
}

.donar-upload-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-content: flex-start;
  gap: 0.25rem;
  max-height: 220px;
  margin: 0;
  overflow-y: auto;
  padding: 0;
  list-style: none;
  font-family: "Poppins", sans-serif;
}

.donar-upload-list:empty {
  display: none;
}

.donar-upload-item {
  position: relative;
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f2f2f2;
}

.donar-upload-slot--empty {
  display: flex;
  flex: 0 0 100px;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  padding: 0.5rem;
  border: 2px dashed #777;
  border-radius: 8px;
  color: #555;
  font-size: 0.75rem;
  text-align: center;
  cursor: pointer;
}

.donar-upload-slot--empty:hover,
.donar-upload-slot--empty:focus-visible {
  border-color: #b38321;
  color: #b38321;
  outline: none;
}

.donar-upload-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.donar-upload-name {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  padding: 0.2rem 0.35rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.65rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.donar-form button.donar-upload-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(240, 197, 30, 1);
  color: #000;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: none;
}

.donar-form button.donar-upload-remove:hover,
.donar-form button.donar-upload-remove:focus-visible {
  transform: none;
  box-shadow: none;
  background: #d63638;
  color: #fff;
}

.donar-upload-confirm {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #eaba52;
  color: #000;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.donar-bike-form select {
  width: 100%;
  min-height: 52px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font: inherit;
}

.donar-bike-form .visually-hidden-file {
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.donar-form.donar-bike-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.donar-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.donar-field--wide {
  grid-column: 1 / -1;
}

.donar-next-button {
  width: min(100%, 900px);
  flex: 0 0 auto;
  margin: 1rem auto 0;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 8px;
  background: #eaba52;
  color: #000;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Receive step 1 */
.rebre-step-1 {
  height: 100%;
  justify-content: flex-start;
  min-width: 0;
  overflow: auto;
  padding-top: calc(var(--flow-back-height) + 1rem);
  padding-bottom: 1rem;
}

.rebre-bike-selection {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

/* Receive step 2 */
.rebre-step-2 {
  display: none;
}

.rebre-step-2.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: auto;
  padding: calc(var(--flow-back-height) + 1.5rem) 1.5rem 1.5rem;
  animation: rebre-detail-enter 500ms ease both;
}

.rebre-step-3 {
  display: none;
  width: min(100%, 520px);
  font-family: "Poppins", sans-serif;
}

.rebre-step-3.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  overflow: auto;
  padding-top: calc(var(--flow-back-height) + 1rem);
  padding-bottom: var(--flow-back-height);
  animation: rebre-detail-enter 500ms ease both;
}

.rebre-contact-hint {
  grid-column: 1 / -1;
  margin-top: -0.75rem;
  color: #5b5b5b;
}

.rebre-detail-heading {
  margin-bottom: 50px;
}

@keyframes rebre-detail-enter {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.donar-step-1.flow-step-back,
.rebre-step-1.flow-step-back,
.rebre-step-2.flow-step-back {
  animation: flow-step-enter-back 500ms ease both;
}

@keyframes flow-step-enter-back {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rebre-gallery__main,
.rebre-gallery__thumb {
  display: block;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.rebre-gallery__main-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.rebre-gallery__main {
  height: 54vh;
}

.rebre-gallery__thumb {
  height: 12vh;
}

.rebre-step-2>.row.g-4 {
  --rebre-gallery-height: calc(54vh + 12vh + 1rem);
  height: var(--rebre-gallery-height);
  min-height: 0;
  align-items: stretch;
}

.rebre-gallery {
  height: 100%;
}

.rebre-step-2>.row.g-4>.col-md-7 {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.rebre-thumbnail-carousel {
  position: relative;
}

.rebre-thumbnail-carousel__slide {
  flex: 0 0 32%;
}

.rebre-gallery__thumb {
  cursor: pointer;
}

.rebre-thumbnail-carousel__controls {
  position: absolute;
  inset: 50% 0 auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.rebre-thumbnail-carousel__button {
  border: 0;
  padding: 0 0.35rem;
  background: transparent;
  color: #111;
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  line-height: 1;
  pointer-events: auto;
}

.rebre-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: rgba(0, 0, 0, 0.84);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.rebre-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rebre-lightbox__image {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}

.rebre-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.rebre-detail-copy {
  margin: 0;
  font-family: "Poppins", sans-serif;
  line-height: 1.45;
  white-space: pre-wrap;
}

.rebre-detail-section-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
}

.rebre-detail-copybox {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 3rem;
  scrollbar-color: black #eaba52;
  scrollbar-width: thin;
}

.rebre-detail-copybox::-webkit-scrollbar {
  width: 3px;
}

.rebre-detail-copybox::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
}

.rebre-detail-copybox::-webkit-scrollbar-track {
  background: transparent;
}

.rebre-bike-specs {
  margin: 0 0 2rem;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
}

.rebre-bike-specs>div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.rebre-bike-specs dt,
.rebre-bike-specs dd {
  margin: 0;
}

.rebre-bike-specs dt {
  font-weight: 500;
}

.rebre-bike-specs dd {
  text-align: right;
}

.rebre-step-1 h2 {
  margin: 0;
  font-family: "Mark Offc", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.rebre-selected-title {
  font-family: "Mark Offc", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.bike-carousel {
  min-width: 0;
}

.embla__viewport {
  overflow: hidden;
}

.embla__container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.embla__slide {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  min-width: 0;
  position: relative;
}

.bike-card {
  height: 40vh;
  max-height: 40vh;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #d8d1c3;
  box-shadow: none;
}

.bike-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bike-card__wash {
  position: absolute;
  inset: 0;
  background: rgba(34, 83, 77, 0.32);
  pointer-events: none;
}

.bike-card__name {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  color: #fff;
  font-family: "Mark Offc", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 2.1rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.bike-card__photos {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Mark Offc", sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  background: #dca83eb8;
  color: black;
  padding: 7px;
  border-radius: 8px;
}

.bike-card__photos svg {
  width: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.1;
  margin-bottom: 8px;
}

.bike-card__photos span {
  font-size: 0.85rem;
  line-height: 0.75;
}

.bike-carousel__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111;
  font-size: 4.3rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.bike-carousel__button svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bike-carousel__button:hover,
.bike-carousel__button:focus-visible {
  background: transparent;
  color: #555;
}

/* Privacy */
.privacy-wrapper {
  width: min(100%, 680px);
  font-family: "Mark Offc", sans-serif;
}

.privacy-wrapper h2 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.privacy-wrapper p {
  font-size: 1.15rem;
  line-height: 1.5;
}

/* Donor form fields */
.donar-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: "Mark Offc", sans-serif;
}

.donar-form label {
  font-size: 1.1rem;
  font-weight: 600;
}

.donar-form input {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 8px;
  box-shadow: inset 0px 0px 6px 2px rgba(0, 0, 0, 0.12);
  font: inherit;
  height: 60px;
}

.donar-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 400;
}

.donar-form .checkbox-label input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0.2rem 0 0;
  box-shadow: none;
}

.donar-form button {
  margin-top: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 8px;
  background: #eaba52;
  color: #000;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease;
  height: 60px;
}

.donar-form button:hover,
.donar-form button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Responsive behavior */
@media (prefers-reduced-motion: reduce) {
  .form-panel {
    transition: none;
  }

  .donar-step-1.flow-step-back,
  .rebre-step-1.flow-step-back,
  .rebre-step-2.flow-step-back {
    animation: none;
  }
}

@media (max-width: 1000px),
(max-height: 700px) {
  .content-row {
    position: relative;
  }

  .content-row>aside {
    position: relative;
    z-index: 2;
  }

  .content-row>section {
    position: static;
  }

  .feature-image {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
  }

  header h1 {
    font-size: 4rem;
  }

  header h2 {
    font-size: 2.25rem;
  }

  .campanya {
    min-width: 220px;
  }

  .cta h3 {
    font-size: 1.8rem;
    letter-spacing: 0.2rem;
  }

  .cta p {
    font-size: 1.15rem;
  }

  .arrow {
    width: 60px;
  }
}

@media (max-width: 767px) {
  :root {
    --flow-back-height: 3.75rem;
  }

  .language-switch--public {
    top: auto;
    bottom: 7rem;
  }

  .page-content {
    height: 100vh;
    min-height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
  }

  .form-panel-donar {
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 1rem;
  }

  .form-panel-donar.is-contact-step {
    flex-direction: column;
  }

  .form-panel-donar.is-contact-step>.flow-back--bottom {
    position: static;
    order: 2;
    flex: 0 0 var(--flow-back-height);
    width: calc(100% + 2rem);
    margin: 0 -1rem -1rem;
  }

  .donar-step-1 {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 5.5fr) minmax(0, 1fr);
    gap: clamp(0.25rem, 0.7vh, 0.5rem);
    justify-content: stretch;
    padding-top: 0.5rem;
    padding-bottom: var(--flow-back-height);
  }

  .donar-step-content {
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 4fr);
    width: 100%;
    min-height: 0;
    max-height: none;
    padding-right: 0;
  }

  .donar-step-content h2 {
    align-self: center;
    margin: 0;
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .donar-form.donar-bike-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(4, minmax(0, 1fr));
    min-height: 0;
    gap: clamp(0.2rem, 0.6vh, 0.4rem);
  }

  .donar-bike-form .donar-field {
    min-height: 0;
    justify-content: center;
    gap: 0.15rem;
  }

  .donar-bike-form .donar-field>label {
    font-size: clamp(0.75rem, 3.2vw, 0.9rem);
    line-height: 1.1;
  }

  .donar-bike-form select {
    min-height: 0;
    height: clamp(2.25rem, 7vh, 3rem);
    padding: 0.35rem 0.6rem;
    font-size: clamp(0.8rem, 3.5vw, 0.95rem);
  }

  .donar-step-1 .donar-next-button {
    width: 100%;
    height: clamp(3rem, 8vh, 3.5rem);
    min-height: 0;
    align-self: center;
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .donar-step-2 {
    height: auto;
    min-height: calc(100dvh - var(--flow-back-height) - 2rem);
    flex: 0 0 auto;
    order: 1;
    justify-content: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .donar-contact-heading {
    margin-bottom: 1rem;
  }

  .donar-step-2>.row.g-5 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    flex-shrink: 0;
  }

  .donar-step-2>.row.g-5>.col-md-6:last-child {
    padding-top: 1rem;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    border-left: 0;
  }

  .donar-field--wide {
    grid-column: auto;
  }

  .donar-upload-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
    gap: clamp(0.2rem, 1vw, 0.35rem);
    max-height: none;
    overflow: visible;
  }

  .donar-upload-item,
  .donar-upload-slot--empty {
    flex: none;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1;
  }

  .donar-upload-slot--empty {
    padding: 0.15rem;
    font-size: clamp(0.45rem, 2.4vw, 0.65rem);
  }

  .rebre-detail-copybox {
    flex: none;
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .form-panel-rebre {
    overflow-y: auto;
  }

  .rebre-step-1 {
    min-height: 100%;
    justify-content: flex-start !important;
    padding-top: calc(var(--flow-back-height) + 1.5rem);
    padding-bottom: 1.5rem;
  }

  .rebre-bike-selection {
    flex-grow: 1;
  }

  .rebre-bike-selection>.row {
    flex-wrap: nowrap;
    column-gap: 0.5rem;
    margin-bottom: 1rem !important;
  }

  .rebre-bike-selection>.row>.col-10 {
    flex: 1 1 auto;
    width: auto;
  }

  .rebre-bike-selection>.row>.col-2 {
    flex: 0 0 auto;
    width: auto;
  }

  .rebre-step-1 h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .bike-carousel__controls {
    gap: 0.35rem !important;
  }

  .bike-carousel .embla__slide {
    flex-basis: 82%;
  }

  .bike-card {
    height: clamp(240px, 42vh, 360px);
    min-height: 240px;
  }

  .rebre-step-2.is-active {
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
    padding-top: calc(var(--flow-back-height) + 1rem);
    padding-bottom: calc(var(--flow-back-height) + 1.5rem);
  }

  .rebre-detail-heading {
    flex-wrap: wrap;
    row-gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .rebre-detail-heading>.col-10,
  .rebre-detail-heading>.col-2 {
    flex: 0 0 100%;
    width: 100%;
  }

  .rebre-detail-heading>.col-2 {
    justify-content: flex-start !important;
  }

  .rebre-gallery {
    height: auto;
  }

  .rebre-step-2>.row.g-4 {
    height: auto;
  }

  .rebre-step-2>.row.g-4>.col-md-7 {
    display: block;
    height: auto;
  }

  .rebre-step-2 .TextPanel {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }

  .rebre-gallery__main {
    height: clamp(200px, 38vh, 340px);
  }

  .rebre-gallery__thumb {
    height: clamp(64px, 10vh, 96px);
  }

  .rebre-bike-specs>div {
    gap: 0.5rem;
  }

  .rebre-bike-specs dt,
  .rebre-bike-specs dd {
    font-size: 0.85rem;
  }

  .rebre-bike-specs dd {
    max-width: 45%;
    overflow-wrap: anywhere;
  }

  .rebre-step-3.is-active {
    justify-content: flex-start;
    padding-top: calc(var(--flow-back-height) + 1.5rem);
    padding-bottom: calc(var(--flow-back-height) + 1.5rem);
  }

  .rebre-step-3>.row {
    flex-wrap: wrap;
    row-gap: 0.75rem;
    margin-bottom: 1.5rem !important;
  }

  .rebre-step-3>.row>.col-10,
  .rebre-step-3>.row>.col-2 {
    flex: 0 0 100%;
    width: 100%;
  }

  .rebre-step-3>.row>.col-2 {
    justify-content: flex-start !important;
  }

  .header-row,
  .footer-row {
    height: auto;
    flex-shrink: 0;
  }

  .content-row {
    position: relative;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .content-row>aside {
    position: relative;
    top: 10px;
    z-index: 2;
  }

  .content-row>section {
    position: static;
  }

  .page-content>.row {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .header-row {
    padding: 1rem 0 2rem;
  }

  .campanya {
    width: 80%;
    min-width: 0;
  }

  header h1 {
    font-size: 3rem;
  }

  header h2 {
    font-size: 1.8rem;
  }

  .feature-image {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 90%;
    height: auto;
    max-height: 55vh;
    max-height: 55dvh;
    transform: translate(-50%, -50%);
  }

  .arrow {
    width: 45px;
  }

  .cta {
    padding: 4px 0;
  }

  .cta h3 {
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
    margin-top: 10px;
  }

  .cta p {
    font-size: 0.8rem;
  }

  .content-row .cta p {
    display: none;
  }

  .privacy-link {
    display: block;
    width: 100%;
    font-size: clamp(0.65rem, 3vw, 0.8rem);
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .footer-row {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .footerImg {
    max-width: 100%;
    height: auto;
    max-height: 8vh;
    max-height: 8dvh;
  }
}

@media (max-height: 700px) {
  .form-panel-donar {
    align-items: stretch;
    overflow-y: auto;
  }

  .donar-step-1 {
    min-height: 100%;
    justify-content: flex-start;
  }

  .donar-step-content {
    max-height: none;
  }

  .rebre-step-1 {
    justify-content: flex-start !important;
  }
}

.rebre-request-button {
  flex: 0 0 auto;
  width: 100%;
  margin-top: 1rem;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 8px;
  background: #eaba52;
  color: #000;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.rebre-request-button:hover,
.rebre-request-button:focus-visible {
  background: #dca83e;
}

/* Keep bike flows in document scroll, with their back control anchored to the viewport. */
.form-panel-donar.is-open,
.form-panel-rebre.is-open {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  margin-top: -100vh;
  margin-top: -100dvh;
  overflow: visible;
  padding: 0;
}

.form-panel-donar.is-open>.flow-back--bottom,
.form-panel-rebre.is-open>.flow-back--top {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  margin: 0;
}

.form-panel-donar.is-open>.flow-back--bottom {
  bottom: 0;
}

.form-panel-rebre.is-open>.flow-back--top {
  top: 0;
}

.donar-step-1,
.donar-step-2.is-active,
.rebre-step-1,
.rebre-step-2.is-active,
.rebre-step-3.is-active {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.donar-step-1 {
  display: flex;
  justify-content: flex-start;
  padding-top: calc(var(--flow-back-height) + 1rem);
  padding-bottom: calc(var(--flow-back-height) + 1rem);
}

.donar-step-content {
  display: block;
  max-height: none;
}

.donar-form.donar-bike-form {
  grid-template-rows: none;
  grid-auto-rows: auto;
}

.donar-step-2.is-active {
  justify-content: flex-start;
  padding-top: calc(var(--flow-back-height) + 1rem);
  padding-bottom: calc(var(--flow-back-height) + 1rem);
}

.rebre-step-1 {
  padding-top: calc(var(--flow-back-height) + 1rem);
  padding-bottom: calc(var(--flow-back-height) + 1rem);
}

.rebre-bike-selection {
  flex: none;
  justify-content: flex-start;
  min-height: 0;
}

.rebre-step-2.is-active {
  justify-content: flex-start;
  padding-top: calc(var(--flow-back-height) + 1rem);
  padding-bottom: calc(var(--flow-back-height) + 1rem);
}

.rebre-step-2>.row.g-4 {
  height: auto;
}

.rebre-step-2>.row.g-4>.col-md-7 {
  height: auto;
}

.rebre-detail-copybox {
  flex: none;
  max-height: none;
  overflow: visible;
}

.rebre-step-3.is-active {
  justify-content: flex-start;
  padding-top: calc(var(--flow-back-height) + 1rem);
  padding-bottom: calc(var(--flow-back-height) + 1rem);
}

@media (max-width: 767px) {
  .donar-form.donar-bike-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 768px) and (max-height: 850px) {
  :root {
    --flow-back-height: clamp(3rem, 8vh, 4.5rem);
  }

  .donar-step-content h2,
  .donar-step-2 h2,
  .rebre-step-1 h2,
  .rebre-selected-title {
    font-size: clamp(2rem, 6vh, 3.5rem);
  }

  .donar-contact-heading {
    margin-bottom: clamp(1rem, 2.5vh, 2rem);
  }

  .donar-form {
    font-size: clamp(0.9rem, 2.2vh, 1rem);
  }

  .donar-form label {
    font-size: clamp(0.9rem, 2.4vh, 1.1rem);
  }

  .donar-form input,
  .donar-form button {
    height: clamp(2.75rem, 7.5vh, 3.5rem);
    padding: 0.5rem 0.75rem;
  }

  .donar-form .checkbox-label input {
    width: 20px;
    height: 20px;
    padding: 0;
  }

  .donar-bike-form select {
    min-height: clamp(2.75rem, 6vh, 3rem);
    padding: 0.4rem 0.65rem;
    font-size: clamp(0.85rem, 2vh, 1rem);
  }

  .donar-form.donar-bike-form {
    gap: clamp(0.5rem, 1.3vh, 1rem) clamp(1rem, 2vw, 1.5rem);
  }

  .donar-next-button,
  .rebre-request-button {
    min-height: clamp(2.75rem, 6vh, 3.25rem);
    padding: 0.55rem 1rem;
    font-size: clamp(0.9rem, 2.2vh, 1rem);
  }

  .rebre-detail-heading {
    margin-bottom: clamp(0.75rem, 2.5vh, 1.5rem);
  }

  .rebre-step-2.is-active {
    padding-top: calc(var(--flow-back-height) + 0.5rem);
    padding-bottom: calc(var(--flow-back-height) + 0.5rem);
  }

  .rebre-step-3.is-active {
    padding-top: calc(var(--flow-back-height) + 0.5rem);
    padding-bottom: calc(var(--flow-back-height) + 0.5rem);
  }

  .rebre-step-3>.row {
    margin-bottom: clamp(0.75rem, 2.5vh, 1.25rem) !important;
  }

  .rebre-step-3>p {
    margin-bottom: clamp(0.5rem, 1.2vh, 0.75rem);
    font-size: clamp(0.9rem, 2.2vh, 1rem);
  }

  .rebre-form {
    gap: clamp(0.25rem, 0.8vh, 0.5rem);
  }

  .rebre-gallery__main {
    height: clamp(18rem, 70vh, 42rem);
  }

  .rebre-gallery__thumb {
    height: clamp(6rem, 22vh, 14rem);
  }

  .rebre-detail-section-title {
    margin-bottom: 0.75rem;
    font-size: clamp(1.1rem, 3vh, 1.5rem);
  }

  .rebre-bike-specs dt,
  .rebre-bike-specs dd {
    font-size: clamp(0.85rem, 2vh, 1rem);
  }
}