/* LockerUp — Booking Page Styles */

/* Progress Bar */
.booking-progress {
  background: var(--white);
  border-bottom: 1px solid #E8E9ED;
  padding: 24px;
}

.booking-progress-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.progress-step span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--light-grey);
  transition: color 0.3s;
}

.progress-step.active span,
.progress-step.completed span {
  color: var(--navy);
}

.progress-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid var(--light-grey);
  color: var(--light-grey);
  background: var(--white);
  transition: all 0.3s;
}

.progress-step.active .progress-circle {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.progress-step.completed .progress-circle {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: #E8E9ED;
  margin: 0 8px;
  margin-bottom: 22px;
  min-width: 40px;
}

/* Booking Layout */
.booking-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.booking-step h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-subtitle {
  color: var(--body-text);
  margin-bottom: 32px;
  font-size: 1rem;
}

.hidden {
  display: none !important;
}

/* Step 1: Unit Selection Cards */
.unit-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.unit-select-card {
  background: var(--white);
  border: 2px solid #E8E9ED;
  border-radius: 14px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.unit-select-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(255, 130, 0, 0.1);
}

.unit-select-card.selected {
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(255, 130, 0, 0.15);
  background: #FFF8F0;
}

.unit-select-card.card-sold-out {
  opacity: 0.6;
  cursor: not-allowed;
}

.unit-select-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.unit-select-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 130, 0, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.unit-select-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.unit-select-dim {
  font-size: 0.78rem;
  color: var(--light-grey);
}

.unit-select-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.unit-select-footer .unit-select-btn {
  width: auto;
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Locker graphic */
.unit-select-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.locker-graphic {
  background: var(--off-white);
  border: 2px dashed #D0D2D8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.locker-graphic::after {
  content: attr(data-label);
  font-size: 0.75rem;
  color: var(--light-grey);
  position: absolute;
  bottom: -20px;
}

.locker-graphic.small { width: 44px; height: 56px; }
.locker-graphic.medium { width: 56px; height: 68px; }
.locker-graphic.large { width: 68px; height: 68px; }
.locker-graphic.xl { width: 90px; height: 68px; }

.locker-inner {
  width: 60%;
  height: 60%;
  background: var(--orange);
  opacity: 0.2;
  border-radius: 4px;
}

.unit-select-card.selected .locker-inner {
  opacity: 0.4;
}

/* What fits */
.unit-select-fits {
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--body-text);
  line-height: 1.4;
  padding: 8px 10px;
  background: var(--off-white);
  border-radius: 8px;
}

.unit-select-card.selected .unit-select-fits {
  background: rgba(255, 130, 0, 0.08);
}

/* Price */
.unit-select-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}

.unit-select-price span {
  font-size: 0.8rem;
  color: var(--light-grey);
  font-weight: 500;
}

.unit-select-btn {
  width: 100%;
}

/* Calendar */
.date-picker-container {
  background: var(--white);
  border: 1px solid #E8E9ED;
  border-radius: 16px;
  padding: 28px;
  max-width: 460px;
  margin-bottom: 24px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.calendar-nav {
  background: none;
  border: 1px solid #E8E9ED;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--navy);
}

.calendar-nav:hover {
  background: var(--off-white);
  border-color: var(--navy);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--light-grey);
  text-transform: uppercase;
  padding: 8px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--dark-text);
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: rgba(255, 130, 0, 0.1);
}

.calendar-day.disabled {
  color: #D0D2D8;
  cursor: not-allowed;
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.today {
  border: 2px solid var(--navy);
}

.calendar-day.selected {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
}

.selected-date-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #FFF8F0;
  border: 1px solid rgba(255, 130, 0, 0.2);
  border-radius: 12px;
  margin-bottom: 24px;
  color: var(--navy);
}

.selected-date-display svg {
  color: var(--orange);
  flex-shrink: 0;
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E8E9ED;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark-text);
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--orange);
}

.form-group input::placeholder {
  color: #C0C2C8;
}

/* Protection Plan */
.protection-plan {
  background: var(--off-white);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 28px;
  margin-top: 8px;
}

.protection-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.protection-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 130, 0, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.protection-icon svg {
  color: var(--orange);
}

.protection-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.protection-header p {
  font-size: 0.85rem;
  color: var(--body-text);
}

.protection-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.protection-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.protection-option:hover {
  border-color: #E8E9ED;
}

.protection-option input:checked + .protection-option-content {
  color: var(--navy);
}

.protection-option:has(input:checked) {
  border-color: var(--orange);
  background: #FFF8F0;
}

.protection-option input {
  accent-color: var(--orange);
  width: 18px;
  height: 18px;
}

.protection-option-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.protection-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-text);
}

.protection-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange);
}

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

/* Review Card */
.review-card {
  background: var(--white);
  border: 1px solid #E8E9ED;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.review-section {
  padding: 24px;
  border-bottom: 1px solid #E8E9ED;
}

.review-section:last-child {
  border-bottom: none;
}

.review-section h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--light-grey);
  margin-bottom: 14px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.95rem;
}

.review-row span {
  color: var(--body-text);
}

.review-row strong {
  color: var(--navy);
}

.review-total {
  background: var(--off-white);
}

.total-row {
  font-size: 1.15rem;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid #E8E9ED;
}

.total-row strong {
  color: var(--navy);
}

.total-row strong:last-child {
  color: var(--orange);
  font-size: 1.3rem;
}

.review-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--light-grey);
}

.review-note svg {
  flex-shrink: 0;
}

/* Terms */
.terms-check {
  margin-bottom: 24px;
}

.terms-check label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--body-text);
  cursor: pointer;
}

.terms-check input {
  accent-color: var(--orange);
  width: 18px;
  height: 18px;
}

.terms-check a {
  color: var(--orange);
  font-weight: 600;
}

/* Confirmation */
.confirmation-box {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
}

.confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  margin-bottom: 20px;
}

.confirm-icon svg {
  color: #22C55E;
}

.confirmation-box h2 {
  font-size: 2rem;
  text-align: center;
}

.confirm-subtitle {
  text-align: center;
  margin-bottom: 36px !important;
}

.confirm-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.confirm-step {
  display: flex;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--off-white);
  border-radius: 12px;
}

.confirm-step-num {
  width: 32px;
  height: 32px;
  background: var(--orange);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.confirm-step strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.confirm-step p {
  font-size: 0.9rem;
  color: var(--body-text);
}

.confirm-details-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
}

.confirm-detail {
  padding: 16px;
  background: var(--off-white);
  border-radius: 10px;
}

.confirm-detail span {
  font-size: 0.8rem;
  color: var(--light-grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.confirm-detail strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 0.95rem;
}

/* Sidebar */
.booking-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid #E8E9ED;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 31, 68, 0.06);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}

.sidebar-unit {
  padding: 14px 16px;
  background: var(--off-white);
  border-radius: 10px;
  margin-bottom: 20px;
}

.sidebar-unit-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.sidebar-unit-dim {
  font-size: 0.85rem;
  color: var(--light-grey);
  margin-top: 2px;
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--body-text);
}

.sidebar-total {
  font-size: 1.1rem;
}

.sidebar-total strong {
  color: var(--navy);
}

.sidebar-total strong:last-child {
  color: var(--orange);
}

.sidebar-divider {
  height: 1px;
  background: #E8E9ED;
  margin: 12px 0;
}

.sidebar-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--light-grey);
  margin-top: 14px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 968px) {
  .booking-container {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .unit-select-grid {
    grid-template-columns: 1fr;
  }

  .confirm-details-box {
    grid-template-columns: 1fr;
  }

  .booking-progress-inner {
    gap: 0;
  }

  .progress-step span {
    font-size: 0.65rem;
  }

  .progress-circle {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
}
