/* Shared pearl surface for the website, booking journey and customer account. */
:root {
  --cleanpair-pearl: #f8fafc;
  --cleanpair-pearl-start: #ffffff;
  --cleanpair-pearl-end: #fbfcfe;
}

#siteView,
#bookingView,
#vehicleView,
#postcodePreview,
#postcodeEligible,
#requirementsView,
#dateTimeView,
#detailsView,
#reviewPaymentView,
#bookingConfirmedView,
.cleanpair-customer-surface {
  min-height: 100vh;
  background-color: var(--cleanpair-pearl);
  background-image:
    radial-gradient(ellipse at center, rgba(10, 132, 255, .075), rgba(10, 132, 255, .025) 40%, transparent 72%),
    radial-gradient(ellipse at center, rgba(25, 183, 255, .065), rgba(25, 183, 255, .02) 40%, transparent 72%),
    url("/cleanpair-curves.svg"),
    linear-gradient(135deg, var(--cleanpair-pearl-start), var(--cleanpair-pearl) 48%, var(--cleanpair-pearl-end));
  background-size: 960px 720px, 900px 680px, 760px 580px, 100% 100%;
  background-position: right -300px top -140px, left -380px top 520px, right -230px top 35px, center;
  background-repeat: no-repeat;
}

#siteView .hero,
.page-head {
  background: transparent;
}

#siteView .section-soft {
  background: rgba(238, 243, 248, .65);
}

@media (max-width: 640px) {
  #siteView,
  #bookingView,
  #vehicleView,
  #postcodePreview,
  #postcodeEligible,
  #requirementsView,
  #dateTimeView,
  #detailsView,
  #reviewPaymentView,
  #bookingConfirmedView,
  .cleanpair-customer-surface {
    background-size: 640px 520px, 620px 520px, 540px 420px, 100% 100%;
    background-position: right -290px top -70px, left -310px top 480px, right -240px top 60px, center;
  }
}

/* Account text and cards already follow the customer's system colour scheme. */
@media (prefers-color-scheme: dark) {
  .cleanpair-customer-surface {
    --cleanpair-pearl: #0c1928;
    --cleanpair-pearl-start: #102135;
    --cleanpair-pearl-end: #0c1928;
  }
}

