/* Core layout */
.pgb-wrapper {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
}

.pgb-heading {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: #1c39ff;
  margin-bottom: 2rem;
}

.pgb-packages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pgb-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.25rem 1.75rem;
  border: 2px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pgb-card-header h3 {
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}

.pgb-card-header p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.pgb-card-clean {
  border-color: #38bdf8;
}

.pgb-card-care-plus {
  border-color: #ef4444;
}

.pgb-card-ultimate {
  border-color: #8b5cf6;
}

.pgb-card-cat {
  border-color: #0ea5e9;
}

.pgb-card-popular {
  transform: translateY(-8px);
}

.pgb-card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #f97316;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(248, 113, 113, 0.5);
}

.pgb-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  font-size: 0.9rem;
}

.pgb-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

.pgb-features li::before {
  content: "✔";
  color: #22c55e;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.pgb-features .pgb-addon {
  color: #f97316;
}

.pgb-features .pgb-addon::before {
  content: "–";
  color: #f97316;
}

.pgb-prices {
  border-radius: 14px;
  background: #f8fafc;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pgb-prices > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.pgb-select-package {
  margin-top: auto;
  border: none;
  width: 100%;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: #1c39ff;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.pgb-select-package:hover {
  background: #1720c6;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.pgb-select-package.pgb-selected {
  background: #22c55e;
}

/* Steps 2 & 3 layout */
.pgb-step-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1c39ff;
  margin-bottom: 1rem;
}

.pgb-step-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.pgb-calendar-wrapper,
.pgb-summary-wrapper {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.pgb-available-times h4,
.pgb-addons h4 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.pgb-pet-size-selector {
  margin-bottom: 1.5rem;
}

.pgb-pet-size-help {
  margin: -0.35rem 0 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.pgb-pet-size-options {
  display: grid;
  gap: 0.75rem;
}

.pgb-pet-size-option {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 16px;
  border: 1px solid #cbd5f5;
  padding: 0.9rem 1rem;
  background: #f8fbff;
  color: #1d4ed8;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pgb-pet-size-name,
.pgb-pet-size-price {
  pointer-events: none;
}

.pgb-pet-size-name {
  color: inherit;
}

.pgb-pet-size-price {
  color: #1e293b;
  margin-left: 1rem;
}

.pgb-pet-size-option.pgb-selected {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.18);
}

.pgb-pet-size-option.pgb-selected .pgb-pet-size-price {
  color: #fff;
}

.pgb-time-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pgb-time-slot {
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  padding: 0.4rem 0.9rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.pgb-time-slot.pgb-selected {
  background: #1d4ed8;
  color: #fff;
}

.pgb-summary p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.pgb-addons label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.pgb-total {
  margin: 0.75rem 0 1.25rem;
}

.pgb-total span {
  font-size: 1.1rem;
  font-weight: 800;
  color: #16a34a;
}

.pgb-paypal-button {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 0.7rem 1rem;
  background: #ffb81c;
  font-weight: 700;
  cursor: pointer;
}

/* Simple calendar styling (we'll render with JS) */
#pgb-calendar {
  margin-bottom: 1rem;
}

#pgb-calendar table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.85rem;
}

#pgb-calendar th {
  padding: 0.4rem 0;
  color: #64748b;
}

#pgb-calendar td {
  padding: 0.45rem 0;
  border-radius: 999px;
  cursor: pointer;
}

#pgb-calendar td.pgb-disabled {
  color: #cbd5e1;
  cursor: default;
}

#pgb-calendar td.pgb-selected {
  background: #1d4ed8;
  color: #fff;
}

.pgb-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.pgb-calendar-header button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.1rem 0.4rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .pgb-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pgb-step-grid {
    grid-template-columns: 1fr;
  }
}

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