/**
 * LZ Payment Options - Front-end Stylesheet
 * Theme: Luxury Black & #CAA2A3 (Blush Mauve / Rose Gold)
 * Responsive & Mobile-Optimized
 */

:root {
  --lz-primary: #CAA2A3;
  --lz-primary-hover: #b88f90;
  --lz-primary-light: rgba(202, 162, 163, 0.09);
  --lz-primary-glow: rgba(202, 162, 163, 0.25);
  --lz-dark: #111111;
  --lz-dark-hover: #222222;
  --lz-dark-card: #18181c;
  --lz-text-main: #111111;
  --lz-text-muted: #6b7280;
  --lz-border: #e5e7eb;
  --lz-border-focus: #CAA2A3;
  --lz-card-bg: #ffffff;
  --lz-card-radius: 12px;
  --lz-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --lz-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --lz-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06);
  --lz-shadow-active: 0 4px 20px rgba(202, 162, 163, 0.22);
}

/* Container */
.lz-options-wrapper {
  font-family: var(--lz-font);
  color: var(--lz-text-main);
  max-width: 100%;
  margin: 1.5rem 0;
  box-sizing: border-box;
}

.lz-options-wrapper *,
.lz-options-wrapper *::before,
.lz-options-wrapper *::after {
  box-sizing: border-box;
}

/* Section Titles */
.lz-schedule-title,
.lz-payments-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lz-dark);
  letter-spacing: -0.015em;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lz-schedule-title::before,
.lz-payments-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--lz-primary);
  border-radius: 2px;
}

/* ==========================================================================
   Schedule Cards
   ========================================================================== */
.lz-schedules-wrapper {
  margin-bottom: 2rem;
}

.lz-schedules-container {
  background: #ffffff;
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-card-radius);
  overflow: hidden;
  box-shadow: var(--lz-shadow-sm);
}

.lz-schedules-container .lz-schedule-title {
  padding: 1rem 1.25rem;
  margin: 0;
  background: #fafafa;
  border-bottom: 1px solid var(--lz-border);
  font-size: 1.05rem;
}

/* Vertical Schedule Card */
.lz-schedule-card {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--lz-border);
  background: #ffffff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.lz-schedule-card:last-child {
  border-bottom: none;
}

.lz-schedule-card:hover:not(.is-sold-out) {
  background: #faf8f8;
}

/* Selected State */
.lz-schedule-card.selected {
  background: var(--lz-primary-light) !important;
}

/* Checkbox Indicator */
.lz-schedule-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  margin-right: 14px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  background: #ffffff;
}

.lz-schedule-card:hover:not(.is-sold-out) .lz-schedule-checkbox {
  border-color: var(--lz-primary);
}

.lz-schedule-card.selected .lz-schedule-checkbox {
  border-color: var(--lz-primary);
  background: var(--lz-primary);
  box-shadow: 0 0 0 3px var(--lz-primary-glow);
}

.lz-schedule-card.selected .lz-schedule-checkbox::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Calendar Icon */
.lz-schedule-icon {
  font-size: 18px;
  color: var(--lz-primary);
  width: 38px;
  height: 38px;
  background: var(--lz-primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.lz-schedule-details {
  flex-grow: 1;
  min-width: 0;
}

.lz-schedule-date {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lz-dark);
  display: block;
  line-height: 1.3;
}

.lz-schedule-time {
  color: var(--lz-text-muted);
  font-size: 0.875rem;
  display: block;
  margin-top: 3px;
}

/* Capacity Badge */
.lz-schedule-capacity {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sold Out Card */
.lz-schedule-card.is-sold-out {
  opacity: 0.55;
  cursor: not-allowed;
  background: #fafafa !important;
}

.lz-schedule-card.is-sold-out .lz-schedule-capacity {
  background: #fee2e2;
  color: #dc2626;
  font-weight: 700;
}

.lz-schedule-card.is-sold-out .lz-schedule-checkbox {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* ==========================================================================
   Horizontal Schedule Layout
   ========================================================================== */
.lz-layout-horizontal .lz-schedules-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.lz-layout-horizontal .lz-schedules-container .lz-schedule-title {
  grid-column: 1 / -1;
  background: transparent;
  border: none;
  padding: 0 0 0.5rem 0;
}

.lz-layout-horizontal .lz-schedule-card {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-card-radius);
  background: #ffffff;
  min-height: 130px;
  box-shadow: var(--lz-shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lz-layout-horizontal .lz-schedule-card:hover:not(.is-sold-out) {
  transform: translateY(-2px);
  border-color: var(--lz-primary);
  box-shadow: var(--lz-shadow-md);
}

.lz-layout-horizontal .lz-schedule-card.selected {
  border-color: var(--lz-primary) !important;
  box-shadow: 0 0 0 2px var(--lz-primary), var(--lz-shadow-active) !important;
  background: var(--lz-primary-light) !important;
}

.lz-layout-horizontal .lz-schedule-checkbox {
  margin-right: 0;
  margin-bottom: 8px;
}

.lz-layout-horizontal .lz-schedule-icon {
  margin-right: 0;
  margin-bottom: 8px;
}

.lz-layout-horizontal .lz-schedule-date {
  font-size: 0.98rem;
}

.lz-layout-horizontal .lz-schedule-time {
  font-size: 0.82rem;
}

.lz-layout-horizontal .lz-schedule-capacity {
  margin-left: 0;
  margin-top: 8px;
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   Payment Plan Option Cards
   ========================================================================== */
.lz-card-input {
  display: none !important;
}

.lz-option-row {
  margin-bottom: 12px;
}

.lz-style-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.15rem 1.35rem;
  background: var(--lz-card-bg);
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-card-radius);
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--lz-shadow-sm);
  -webkit-tap-highlight-color: transparent;
}

.lz-style-card:hover {
  border-color: var(--lz-primary);
  box-shadow: var(--lz-shadow-md);
  transform: translateY(-1px);
}

/* Active Option */
.lz-option-row:has(input:checked) .lz-style-card,
.lz-option-row.active .lz-style-card {
  border-color: var(--lz-primary) !important;
  background: var(--lz-primary-light) !important;
  box-shadow: var(--lz-shadow-active) !important;
}

/* Radio circle inside card */
.lz-card-radio-indicator {
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  margin-right: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #ffffff;
}

.lz-card-radio-indicator::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--lz-primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lz-option-row:has(input:checked) .lz-card-radio-indicator,
.lz-option-row.active .lz-card-radio-indicator {
  border-color: var(--lz-primary);
  box-shadow: 0 0 0 3px var(--lz-primary-glow);
}

.lz-option-row:has(input:checked) .lz-card-radio-indicator::after,
.lz-option-row.active .lz-card-radio-indicator::after {
  transform: scale(1);
}

.lz-card-text {
  flex-grow: 1;
  padding-right: 1rem;
}

.lz-option-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lz-dark);
  line-height: 1.3;
}

.lz-option-desc {
  font-size: 0.875rem;
  color: var(--lz-text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* CTA Action Button */
.lz-card-action {
  flex-shrink: 0;
}

.lz-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--lz-dark);
  color: #ffffff;
  border: 1px solid var(--lz-dark);
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.lz-action-btn:hover {
  background: var(--lz-primary);
  border-color: var(--lz-primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--lz-primary-glow);
}

.lz-action-btn.lz-loading {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   Responsive & Mobile Friendly Breakpoints
   ========================================================================== */

/* Tablets / Medium Screens */
@media (max-width: 768px) {
  .lz-layout-horizontal .lz-schedules-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Mobile Screens */
@media (max-width: 540px) {
  .lz-options-wrapper {
    margin: 1rem 0;
  }

  .lz-layout-horizontal .lz-schedules-container {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lz-schedule-card {
    padding: 0.95rem 1rem;
  }

  .lz-schedule-date {
    font-size: 0.98rem;
  }

  .lz-schedule-time {
    font-size: 0.825rem;
  }

  /* Stack card option on small phones */
  .lz-style-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.85rem;
  }

  .lz-card-header-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
  }

  .lz-card-text {
    padding-right: 0;
  }

  .lz-card-action {
    width: 100%;
  }

  .lz-action-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    min-height: 46px;
  }
}

/* One-click UX improvements – whole card is actionable */
.lz-option-row {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lz-option-row:hover {
  transform: translateY(-1px);
}
.lz-option-row .lz-style-card {
  cursor: pointer;
}
.lz-action-btn {
  pointer-events: auto;
}
.lz-option-row.lz-loading,
.lz-action-btn.lz-loading {
  pointer-events: none;
  opacity: 0.85;
}
