:root {
  --bg: #0b0b0b;
  --yellow: #ffc400;
  --yellow2: #ffea7a;
  --card: rgba(0, 0, 0, 0.28);
  --card2: rgba(0, 0, 0, 0.36);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --stroke: rgba(255, 255, 255, 0.22);
  --shadow: rgba(0, 0, 0, 0.35);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  background: var(--yellow);
  color: var(--text);
  overflow-x: hidden;
}

/* Parallax background layers (kept lightweight for mobile) */
.parallax {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.layer {
  position: absolute;
  inset: -10%;
  will-change: transform;
}

.layer--back {
  background-image: none;
  background-color: var(--yellow);
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.layer--mid {
  background: transparent;
  opacity: 0;
  transform: translate3d(0, 0, 0);
}

.layer--front {
  background: transparent;
  opacity: 0;
  transform: translate3d(0, 0, 0);
}

.page {
  min-height: 100svh; /* fit initial viewport */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  padding: 52px 16px 28px; /* tighter space above fixed top menu */
  position: relative;
  z-index: 1;
}

.brand {
  text-align: center;
  margin-bottom: 18px;
}

.topActions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.topActions--top {
  width: 100%;
  margin-top: 0;
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 5; /* above everything */
  padding: 0 14px;
  justify-content: flex-end;
}

.smallButton {
  padding: 8px 12px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(180deg, #ffda2a 0%, #ffc400 100%);
  color: #161616;
  font-weight: 900;
  letter-spacing: 0.05em;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.12s ease;
}

.smallButton:hover {
  filter: brightness(1.03);
}

.smallButton:active {
  transform: translateY(1px);
}

.smallButton--secondary {
  background: rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.brand__logo {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 950;
}

.brand__logoLine {
  font-weight: 950;
  font-size: clamp(26px, 5vw, 52px);
  line-height: 0.98;
}

.brand__logoLine--accent {
  color: var(--bg);
}

.card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px var(--shadow);
  padding: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.input,
.form select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  outline: none;
  font-size: 16px;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.input:focus,
.form select:focus {
  border-color: rgba(255, 212, 0, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.22);
}

.form select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 212, 0, 0.95) 50%),
    linear-gradient(135deg, rgba(255, 212, 0, 0.95) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(1em + 2px),
    calc(100% - 13px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

/* make mobile date picker feel closer to the rest */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) grayscale(1);
  opacity: 0.9;
}

.button {
  margin-top: 2px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffda2a 0%, #ffc400 100%);
  color: #161616;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.12s ease;
}

.button:hover {
  filter: brightness(1.03);
}

.button:active {
  transform: translateY(1px);
}

.message {
  margin: 0;
  min-height: 1.2em;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.priceWrap {
  margin-top: 4px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.priceTitle {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.65);
}

.priceValue {
  font-weight: 950;
  color: #161616;
  font-size: 18px;
}

.cleanTypePanel {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.16);
  padding: 14px 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 260ms ease, opacity 200ms ease, transform 200ms ease;
}

/* When shown, we remove the hidden attribute and toggle a class for animation */
.cleanTypePanel.is-open {
  max-height: 280px;
  opacity: 1;
  transform: translateY(0);
}

.cleanTypeOption {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.cleanTypeOption + .cleanTypeOption {
  margin-top: 10px;
}

.cleanTypeOption input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dial {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dial::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--yellow);
  transform: scale(0);
  transition: transform 160ms ease;
}

.cleanTypeOption input:checked + .dial::after {
  transform: scale(1);
}

.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
}

.modalOverlay[hidden] {
  display: none !important;
}

.modalCard {
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: auto;
  max-height: 86vh;
}

.modalHeader {
  padding: 18px 18px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modalTitle {
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.modalSubtitle {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.25;
}

.modalCloseBtn {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modalCloseBtn:active {
  transform: translateY(1px);
}

.modalBody {
  padding: 0 18px 18px;
}

.modalForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modalTextarea {
  resize: vertical;
  min-height: 96px;
}

.modalApplyBtn {
  margin-top: 6px;
}

.modalThankYou {
  padding: 0 18px 18px;
}

.modalThankYouTitle {
  font-weight: 950;
  color: rgba(255, 234, 122, 0.98);
  font-size: 18px;
  margin-top: 6px;
}

.modalThankYouText {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.optionText {
  flex: 1 1 auto;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.75);
  font-size: 14px;
}

.optionPrice {
  font-weight: 950;
  color: #161616;
  font-size: 14px;
  flex: 0 0 auto;
}

.infoBtn {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 212, 0, 0.95);
  color: #161616;
  font-weight: 950;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 10px;
  transition: transform 0.08s ease, filter 0.12s ease;
}

.infoBtn:hover {
  filter: brightness(1.03);
}

.infoBtn:active {
  transform: translateY(1px);
}

.cleanInfoOverlay {
  z-index: 40; /* above other modals */
}

.cleanInfoCard {
  max-width: 560px;
}

.cleanInfoContent ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.cleanInfoContent li {
  margin: 6px 0;
}

.thumbBtn {
  width: 110px;
  height: 86px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.08);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.thumbImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbVideoBadge {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
}

.lightboxOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
}

.lightboxOverlay[hidden] {
  display: none !important;
}

.lightboxCard {
  width: 100%;
  max-width: 780px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: auto;
  max-height: 86vh;
}

.lightboxTitle {
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.lightboxBody img,
.lightboxBody video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.uploadProgress {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.uploadProgressBar {
  height: 100%;
  background: linear-gradient(180deg, #ffda2a 0%, #ffc400 100%);
  width: 0%;
  border-radius: 999px;
}

@media (max-width: 520px) {
  .page {
    min-height: 100svh;
    justify-content: flex-start;
    gap: 12px;
    padding: 72px 14px 24px; /* fit content in view */
  }

  .topActions--top {
    top: 8px;
    justify-content: center;
    padding: 0 10px;
    gap: 8px;
  }

  .smallButton {
    font-size: 11px;
    padding: 8px 10px;
  }

  .topActions {
    margin-bottom: 14px;
  }

  .card {
    padding: 18px;
  }

  .field--two {
    grid-template-columns: 1fr;
  }

  .infoBtn {
    width: 22px;
    height: 22px;
    font-size: 12px;
    margin-left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .layer {
    transform: none !important;
  }
}

