/* -------------------------------------------------- */
/* RENT PAGE — ISOLATED STYLESHEET                    */
/* -------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

/* ----------------------------- */
/* STICKY RENT STEPS NAV */
/* ----------------------------- */

.sticky-steps {
  position: sticky;
  top: 72px;
  z-index: 9998;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 22px 14px;
}

.rent-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.step-link {
  text-decoration: none;
}

.step {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.25s ease;
}

.step.current {
  color: var(--color-accent);
}

.step.completed {
  color: var(--color-accent);
}

/* Progress bar */
.rent-progress {
  width: 100%;
  height: 4px;
  background: var(--color-surface-alt);
  border-radius: 999px;
  overflow: hidden;
}

.rent-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

/* ----------------------------- */
/* RENT PAGE WRAPPER */
/* ----------------------------- */

.rent-page {
  padding: 60px 0;
  background: var(--color-bg);
}

.rent-section {
  margin-bottom: 40px;
}

/* ----------------------------- */
/* RENT CARDS */
/* ----------------------------- */

.rent-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 24px 26px;
  position: relative;
  transition: 0.25s ease;
}

.rent-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.rent-card h2 {
  margin: 0;
  font-size: 24px;
}

.step-number {
  font-size: 32px;
  font-weight: 700;
  color: rgba(160, 160, 160, 0.35);
  transition: 0.25s ease;
}

.step-number.completed {
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
}

.rent-card.completed {
  border-color: var(--color-accent);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.25);
}

/* ----------------------------- */
/* SECTION TEXT */
/* ----------------------------- */

.rent-intro {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  max-width: 700px;
  line-height: 1.5;
}

/* ----------------------------- */
/* PACKAGE SELECTION */
/* ----------------------------- */

.rent-packages-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.rent-package-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  padding: 26px;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.25s ease;
  flex: 1 1 calc(33.33% - 22px);
  min-width: 280px;
  position: relative;
}

.rent-package-card:hover {
  border-color: var(--color-accent);
}

.rent-package-card.selected {
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.35);
}

.package-toggle {
  font-size: 46px;
  color: var(--color-border);
  position: absolute;
  top: 16px;
  right: 16px;
  transition: 0.25s ease;
}

.rent-package-card.selected .package-toggle {
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.rent-package-card h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.rent-price {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.rent-tagline {
  color: var(--color-text-muted);
  margin-bottom: 14px;
  font-size: 15px;
}

.rent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rent-list li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
}

/* ----------------------------- */
/* AUTOCOMPLETE */
/* ----------------------------- */

.autocomplete-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.autocomplete-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 18px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text-main);
}

.autocomplete-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 4px;
  background: var(--color-surface);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-height: 260px;
  overflow-y: auto;
  z-index: 9999;
}

.autocomplete-suggestions ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.autocomplete-item {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.autocomplete-item:hover {
  background: rgba(0, 229, 255, 0.08);
}

/* ----------------------------- */
/* POSTCODE MESSAGE + MANUAL ADDRESS */
/* ----------------------------- */

.postcode-result {
  font-size: 16px;
  min-height: 24px;
  margin-top: 6px;
  color: var(--color-text-main);
}

.manual-address-wrapper {
  margin-top: 16px;
}

.manual-link {
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.hidden {
  display: none;
}

/* ----------------------------- */
/* DELIVERY DATE */
/* ----------------------------- */

.delivery-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.delivery-btn {
  padding: 14px 20px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--color-text-main);
  font-size: 14px;
  transition: 0.25s ease;
}

.delivery-btn:hover {
  border-color: var(--color-accent);
}

.delivery-btn.selected {
  border-color: var(--color-accent);
  background: rgba(0, 229, 255, 0.15);
}

/* ----------------------------- */
/* FORM FIELDS */
/* ----------------------------- */

.rent-field {
  margin-bottom: 22px;
}

.rent-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--color-text-muted);
}

.rent-field input,
.rent-field select {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text-main);
  font-size: 16px;
}

/* ----------------------------- */
/* NEWSLETTER CHECKBOX — FIXED */
/* ----------------------------- */

.newsletter-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.newsletter-icon {
  font-size: 30px;
  margin-top: 2px;
  color: var(--color-border);
  transition: 0.25s ease;
}

.newsletter-icon.active {
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.newsletter-label {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-main);
}

/* ----------------------------- */
/* ERROR HIGHLIGHTING */
/* ----------------------------- */

.field-error {
  border-color: #ff4d4d !important;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
}

.incomplete-warning {
  color: #ff4d4d;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
}

/* ----------------------------- */
/* SUMMARY BOX */
/* ----------------------------- */

.summary-box {
  background: var(--color-surface-alt);
  padding: 26px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 1.5;
}

.summary-box p {
  margin: 6px 0;
}

.summary-box hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 16px 0;
}

/* ----------------------------- */
/* CHECKOUT BUTTON */
/* ----------------------------- */

.rent-checkout-btn {
  margin-top: 24px;
  padding: 16px 32px;
  background: var(--color-accent);
  color: #000;
  border: none;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 229, 255, 0.4);
  transition: 0.25s ease;
}

.rent-checkout-btn:hover {
  background: #ffffff;
  transform: translateY(-3px);
}

.rent-checkout-btn.disabled {
  background: #444;
  color: #888;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------- */
/* LEGAL CHECKBOXES — MATERIAL SYMBOLS (STEP 5)  */
/* --------------------------------------------- */

.legal-checks {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

.legal-check p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-main);
}

.legal-icon {
  font-size: 30px;
  color: var(--color-border);
  transition: 0.25s ease;
  margin-top: 2px;
}

.legal-check.active .legal-icon {
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.legal-check a {
  color: var(--color-text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----------------------------- */
/* RESPONSIVE */
/* ----------------------------- */

@media (max-width: 900px) {
  .rent-packages-row {
    flex-direction: column;
  }

  .rent-package-card {
    min-width: 100%;
  }

  .sticky-steps {
    top: 64px;
  }

  .rent-card-header {
    flex-direction: row;
  }
}

/* ----------------------------- */
/* Go Back link */
/* ----------------------------- */

.go-back-link {
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: left;
}

.go-back-link:hover {
  color: var(--color-accent);
}

.terms-note {
  margin-top: 10px;
  font-size: 12px;
  /* smaller */
  color: var(--color-text-muted);
  /* subtle grey */
  text-align: left;
  line-height: 1.4;
}