/* CutsbyPassy Booking Module — by SiteStream */
/* sitestream.nl */

:root {
  --cpb-accent:   #1a1a2e;
  --cpb-gold:     #c9a84c;
  --cpb-gold-light: #e0c068;
  --cpb-bg:       #0f0f1a;
  --cpb-card:     #1e1e30;
  --cpb-border:   #2e2e45;
  --cpb-text:     #ffffff;
  --cpb-muted:    #8888aa;
  --cpb-success:  #00C896;
  --cpb-radius:   14px;
  --cpb-font:     'Georgia', serif;
  --cpb-sans:     'Arial', sans-serif;
}

.cpb-wrap {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--cpb-sans);
  color: var(--cpb-text);
  overflow-x: hidden;
  box-sizing: border-box;
}

*, .cpb-wrap * {
  box-sizing: border-box;
}

/* ── Progress ─────────────────────────────────────────────────────────────── */

.cpb-progress {
  margin-bottom: 32px;
}

.cpb-progress-bar {
  height: 4px;
  background: var(--cpb-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.cpb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cpb-gold), var(--cpb-gold-light));
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

.cpb-steps-labels {
  display: flex;
  justify-content: space-between;
}

.cpb-step-label {
  font-size: 12px;
  color: var(--cpb-muted);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.cpb-step-label.active {
  color: var(--cpb-gold);
  font-weight: 700;
}

.cpb-step-label.done {
  color: var(--cpb-success);
}

/* ── Steps ────────────────────────────────────────────────────────────────── */

.cpb-step {
  display: none;
  animation: cpbFadeIn 0.35s ease;
}

.cpb-step.active {
  display: block;
}

@keyframes cpbFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cpb-step-title {
  font-family: var(--cpb-font);
  font-size: 26px;
  font-weight: normal;
  color: var(--cpb-text);
  margin: 0 0 6px;
  letter-spacing: 0.3px;
}

.cpb-step-sub {
  font-size: 14px;
  color: var(--cpb-muted);
  margin: 0 0 24px;
}

/* ── Service cards ────────────────────────────────────────────────────────── */

.cpb-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .cpb-services-grid {
    grid-template-columns: 1fr;
  }
}

.cpb-service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--cpb-card);
  border: 2px solid var(--cpb-border);
  border-radius: var(--cpb-radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  user-select: none;
}

.cpb-service-card:hover {
  border-color: var(--cpb-gold);
  transform: translateY(-2px);
}

.cpb-service-card.selected {
  border-color: var(--cpb-gold);
  background: #252538;
}

.cpb-service-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--cpb-gold);
}

.cpb-service-icon svg {
  width: 100%;
  height: 100%;
}

.cpb-service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cpb-service-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--cpb-text);
}

.cpb-service-duration {
  font-size: 12px;
  color: var(--cpb-muted);
}

.cpb-service-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--cpb-gold);
  font-family: var(--cpb-font);
  white-space: nowrap;
}

/* ── Calendar ─────────────────────────────────────────────────────────────── */

.cpb-calendar-wrap {
  background: var(--cpb-card);
  border: 1px solid var(--cpb-border);
  border-radius: var(--cpb-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.cpb-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cpb-cal-header span {
  font-family: var(--cpb-font);
  font-size: 17px;
  color: var(--cpb-text);
  text-transform: capitalize;
}

.cpb-cal-nav {
  background: none;
  border: 1px solid var(--cpb-border);
  color: var(--cpb-text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}

.cpb-cal-nav:hover {
  border-color: var(--cpb-gold);
  color: var(--cpb-gold);
}

.cpb-cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}

.cpb-cal-days-header span {
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--cpb-muted);
  text-transform: uppercase;
  padding: 4px 0;
}

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

.cpb-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  cursor: default;
  transition: background 0.15s, color 0.15s;
}

.cpb-cal-day.cpb-cal-empty {
  visibility: hidden;
}

.cpb-cal-day.disabled {
  color: #333348;
}

.cpb-cal-day.available {
  color: var(--cpb-text);
  cursor: pointer;
}

.cpb-cal-day.available:hover {
  background: #2a2a40;
}

.cpb-cal-day.selected {
  background: var(--cpb-gold);
  color: #000000;
  font-weight: 700;
}

/* ── Time slots ───────────────────────────────────────────────────────────── */

.cpb-slots-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.cpb-loading, .cpb-no-slots {
  color: var(--cpb-muted);
  font-size: 14px;
  padding: 20px 0;
}

.cpb-slot {
  padding: 10px 18px;
  border: 1px solid var(--cpb-border);
  background: var(--cpb-card);
  color: var(--cpb-text);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.cpb-slot:hover:not(.disabled) {
  border-color: var(--cpb-gold);
}

.cpb-slot.selected {
  background: var(--cpb-gold);
  border-color: var(--cpb-gold);
  color: #000000;
}

.cpb-slot.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ── Form ─────────────────────────────────────────────────────────────────── */

.cpb-summary-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  background: var(--cpb-card);
  border: 1px solid var(--cpb-gold);
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
}

.cpb-sum-sep {
  color: var(--cpb-muted);
}

.cpb-sum-price {
  font-weight: 700;
  color: var(--cpb-gold);
  margin-left: auto;
}

.cpb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .cpb-form-grid {
    grid-template-columns: 1fr;
  }
}

.cpb-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cpb-form-field.cpb-full-width {
  grid-column: 1 / -1;
}

.cpb-form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--cpb-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cpb-req {
  color: var(--cpb-gold);
}

.cpb-optional {
  color: var(--cpb-muted);
  font-weight: 400;
  text-transform: none;
  font-size: 11px;
}

.cpb-form-field input,
.cpb-form-field textarea {
  padding: 12px 16px;
  background: var(--cpb-card);
  border: 1px solid var(--cpb-border);
  border-radius: 10px;
  color: var(--cpb-text);
  font-size: 15px;
  font-family: var(--cpb-sans);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.cpb-form-field input:focus,
.cpb-form-field textarea:focus {
  border-color: var(--cpb-gold);
}

.cpb-form-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Privacy ──────────────────────────────────────────────────────────────── */

.cpb-privacy {
  margin-bottom: 20px;
}

.cpb-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--cpb-muted);
  cursor: pointer;
}

.cpb-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--cpb-gold);
}

.cpb-check-label a {
  color: var(--cpb-gold);
  text-decoration: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.cpb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--cpb-gold);
  color: #000000;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--cpb-sans);
}

.cpb-btn:hover:not(:disabled) {
  background: var(--cpb-gold-light);
  transform: translateY(-1px);
}

.cpb-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.cpb-btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px;
}

.cpb-btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  text-decoration: none;
  margin-top: 16px;
}

.cpb-btn-whatsapp:hover {
  background: #1ebe5a;
}

.cpb-back-btn {
  background: none;
  border: none;
  color: var(--cpb-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0 0 20px;
  font-family: var(--cpb-sans);
  transition: color 0.2s;
}

.cpb-back-btn:hover {
  color: var(--cpb-text);
}

/* ── Error ────────────────────────────────────────────────────────────────── */

.cpb-error-msg {
  margin-top: 12px;
  color: #ff6b6b;
  font-size: 14px;
  text-align: center;
}

/* ── Success ──────────────────────────────────────────────────────────────── */

#cpb-step-success {
  text-align: center;
  padding: 40px 20px;
}

.cpb-success-icon {
  width: 72px;
  height: 72px;
  background: var(--cpb-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #000;
  margin: 0 auto 24px;
  animation: cpbPopIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}

@keyframes cpbPopIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── Loyalty card ─────────────────────────────────────────────────────────── */

.cpb-loyalty-card-wrap {
  margin: 24px 0;
}

.cpb-loyalty-card {
  background: var(--cpb-card);
  border: 1px solid var(--cpb-border);
  border-radius: var(--cpb-radius);
  padding: 28px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.cpb-loyalty-header {
  text-align: center;
  margin-bottom: 20px;
}

.cpb-loyalty-icon {
  font-size: 32px;
  color: var(--cpb-gold);
}

.cpb-loyalty-header h3 {
  font-family: var(--cpb-font);
  font-size: 20px;
  color: var(--cpb-text);
  margin: 8px 0 6px;
}

.cpb-loyalty-header p {
  font-size: 14px;
  color: var(--cpb-muted);
  margin: 0;
}

.cpb-loyalty-form {
  display: flex;
  gap: 10px;
}

.cpb-loyalty-form input {
  flex: 1;
  padding: 11px 14px;
  background: var(--cpb-bg);
  border: 1px solid var(--cpb-border);
  border-radius: 8px;
  color: var(--cpb-text);
  font-size: 14px;
  outline: none;
}

.cpb-loyalty-form button {
  padding: 11px 18px;
  background: var(--cpb-gold);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.cpb-loyalty-result {
  margin-top: 16px;
  font-size: 14px;
  color: var(--cpb-text);
}

.cpb-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.cpb-stamp {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cpb-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--cpb-border);
}

.cpb-stamp.filled {
  border-color: var(--cpb-gold);
  color: var(--cpb-gold);
  background: rgba(201,168,76,0.1);
}

.cpb-err {
  color: #ff6b6b;
}

/* ── Powered by ───────────────────────────────────────────────────────────── */

.cpb-powered-by {
  text-align: center;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--cpb-border);
  font-size: 12px;
  color: var(--cpb-muted);
}

.cpb-powered-by a {
  color: var(--cpb-gold);
  text-decoration: none;
}
