/* ===================== BECOME A CUSTOMER PAGE ===================== */
.hero__title {
  text-shadow: 0 1px 0 rgba(7, 7, 7, 0.192);
}

.customer-request-hero__description {
  text-shadow: 0 1px 0 rgba(7, 7, 7, 0.192);
}

.customer-request-page {
  background: var(--white-color);
  overflow-x: hidden;
}

.customer-request-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.customer-request-hero {
  background-image: var(--background-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 500px;

  position: relative;
  z-index: 1;
}

.customer-request-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000000;
  opacity: 0.3;
}

.customer-request-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: var(--white-color);
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.customer-request,
#customer-request-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  min-height: calc(100vh - 120px);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  box-sizing: border-box;
  scroll-margin-top: 88px;
}

/* ----- Left banner ----- */

.customer-request__banner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-height: 600px;
  overflow: hidden;
  background: #1a1a1a;

  border-radius: 10px;
}

.customer-request__banner-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.customer-request__banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 35%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.customer-request__banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.customer-request__banner-brand {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.customer-request__banner-logo {
  max-width: 140px;
  height: auto;
}

.customer-request__banner-tagline {
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-color);
  margin: 0;
}

/* ----- Right form panel ----- */

.customer-request__form-panel {
  display: flex;
  justify-content: center;
  padding: 0;
  background: var(--white-color);
  width: 100%;
  min-width: 0;
}

.customer-request__form-inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.customer-request__assist {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--dark-text-color) 75%, #fff);
  margin-bottom: 0.35rem;
}

.customer-request__assist a {
  color: var(--primary-green);
  font-weight: 600;
  text-decoration: none;
}

.customer-request__assist a:hover {
  text-decoration: underline;
}

.customer-request__intro {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--dark-text-color) 70%, #fff);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.customer-request__title {
  font-family: "Josefin Sans", sans-serif !important;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #1e2a3a;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
}

.customer-request__required-note {
  font-size: 0.8rem;
  color: #9a9a9a;
  margin-bottom: 2rem;
}

/* ----- Form fields (underline style) ----- */

.customer-request__form {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cr-section__heading {
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-text-color);
  margin: 0 0 0.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cr-section__note {
  font-size: 0.8rem;
  color: #9a9a9a;
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

.cr-section--general {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
  padding-bottom: 1.25rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #ebebeb;
}

/* ----- Tabs ----- */
.cr-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.cr-tabs__btn {
  position: relative;
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: #8a8a8a;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.cr-tabs__btn:hover {
  color: var(--dark-text-color);
}

.cr-tabs__btn.is-active {
  color: var(--primary-green);
  border-bottom-color: var(--primary-green);
}

.cr-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
  padding-top: 0.5rem;
}

.cr-tab-panel[hidden] {
  display: none !important;
}

.cr-tab-panel__lead {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--dark-text-color) 65%, #fff);
  margin: 0;
  line-height: 1.5;
}

.sr-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.65rem;
  width: 100%;
  min-width: 0;
}

.cr-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0;
  max-width: 100%;
}

.cr-field__label {
  font-size: 0.8rem;
  color: #8a8a8a;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.cr-field__input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid #c8c8c8;
  background: transparent;
  padding: 0.3rem 0 0.3rem 0;
  font-size: 0.95rem;
  color: var(--dark-text-color);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.cr-field__select {
  padding: 0.43rem 0rem !important;
}

.cr-field__input:focus {
  border-bottom-color: var(--primary-green);
}

.cr-field__select-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cr-field__select-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.85rem;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #888;
  pointer-events: none;
}

.cr-field__select {
  appearance: none;
  cursor: pointer;
  padding-right: 1.25rem;
}

.cr-field__select:invalid {
  color: transparent;
}

.cr-field__select option {
  color: var(--dark-text-color);
}

.cr-field__textarea {
  min-height: 100px;
  height: auto;
  resize: vertical;
  padding-top: 0.5rem;
  line-height: 1.5;
}

.cr-field-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.9fr;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}

/* ----- Contact preference ----- */

.cr-preference {
  border: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.cr-preference__legend {
  font-size: 0.8rem;
  color: #8a8a8a;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0;
}

.cr-preference__hint {
  font-size: 0.75rem;
  color: #aaa;
}

.cr-preference__options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.cr-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--dark-text-color);
}

.cr-checkbox__input,
.cr-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cr-checkbox__box {
  width: 16px;
  height: 16px;
  border: 1px solid #b5b5b5;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.cr-checkbox input:checked + .cr-checkbox__box {
  background: var(--primary-green);
  border-color: var(--primary-green);
}

.cr-checkbox input:checked + .cr-checkbox__box::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid var(--white-color);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ----- Marketing consent ----- */

.cr-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.65rem 0.75rem;
  align-items: start;
  cursor: pointer;
  margin-top: 0.25rem;
  max-width: 100%;
}

.cr-consent__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cr-consent__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c5c5c5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.cr-consent__check i {
  font-size: 0.65rem;
  color: var(--white-color);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cr-consent__input:checked + .cr-consent__check {
  background: var(--primary-green);
  border-color: var(--primary-green);
}

.cr-consent__input:checked + .cr-consent__check i {
  opacity: 1;
}

.cr-consent__text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--dark-text-color) 85%, #fff);
}

.cr-consent__text a {
  color: var(--primary-green);
  text-decoration: underline;
  font-weight: 500;
}

.cr-consent__text a:hover {
  color: var(--dark-green-background);
}

/* ----- Submit ----- */

.customer-request__submit-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.customer-request__submit {
  min-width: 120px;
  padding: 0.95rem 2rem 0.85rem 2rem;
  border: none;
  border-radius: 999px !important;
  background: var(--primary-green);
  color: var(--white-color);
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.customer-request__submit:hover {
  background: var(--primary-green);
  color: var(--white-color);
}

.customer-request__submit:active {
  transform: translateY(1px);
}

/* ----- Responsive ----- */

@media (max-width: 860px) {
  .customer-request {
    min-height: auto;
    padding: 2rem 1.25rem 2.5rem;
  }

  .customer-request__banner {
    min-height: 360px;
  }

  .customer-request__form-panel {
    padding-top: 0;
    padding-bottom: 0;
  }

  .sr-field-row,
  .cr-field-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 560px) {
  .customer-request-hero {
    height: 340px;
  }

  .customer-request-hero__content {
    padding: 1.25rem 1rem;
  }

  .customer-request-hero .hero__title {
    font-size: 1.75rem !important;
  }

  .customer-request {
    padding: 1.5rem 1rem 4rem;
    gap: 1.25rem;
  }

  .customer-request__title {
    font-size: 1.5rem;
  }

  .customer-request__intro,
  .customer-request__assist {
    font-size: 0.85rem;
  }

  .customer-request__required-note {
    margin-bottom: 1.25rem;
  }

  .customer-request__form,
  .cr-tab-panel {
    gap: 1.15rem;
  }

  .sr-field-row,
  .cr-field-row {
    gap: 1.15rem;
  }

  .cr-tabs {
    gap: 0.25rem;
  }

  .cr-tabs__btn {
    padding: 0.65rem 0.35rem;
    font-size: 0.8rem;
  }

  .cr-tab-panel__lead {
    font-size: 0.8rem;
  }

  .cr-field__label {
    font-size: 0.75rem;
  }

  .cr-field__input,
  .cr-field__select {
    font-size: 16px; /* prevents iOS zoom + improves tap targets */
  }

  .cr-field__textarea {
    min-height: 88px;
  }

  .customer-request__banner-tag {
    padding: 1.25rem 1.25rem;
  }

  .customer-request__banner-brand {
    padding: 1.5rem 1.25rem;
    align-items: flex-start;
  }

  .cr-preference__options {
    flex-direction: column;
    gap: 0.85rem;
  }

  .cr-consent__text {
    font-size: 0.78rem;
  }

  .customer-request__submit-wrap {
    justify-content: stretch;
  }

  .customer-request__submit {
    width: 100%;
    min-width: 0;
  }
}
