/* Consultation call booking page.
   Open, wide layout (no boxed dark card) — white panels floating on the
   page's own blue section background, reusing the theme's --perk-soc-*
   color tokens, .btn button styling, and glacial-indifference font. */

.cbk-section {
  padding: 64px 24px 96px;
}

.cbk-wide {
  max-width: 1120px;
  margin: 0 auto;
}

.cbk-heading {
  color: var(--perk-soc-white);
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0 0 10px;
}

.cbk-heading-dark {
  color: var(--perk-soc-navy);
}

.cbk-subheading {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  max-width: none;
  margin: 0 0 36px;
}

.cbk-hidden {
  display: none;
}

/* ── Layout: calendar panel + sticky details panel, side by side on desktop ── */
.cbk-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .cbk-layout {
    grid-template-columns: 1fr;
  }
}

.cbk-panel {
  background: var(--perk-soc-white);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(10, 20, 45, 0.18);
  /* Grid items default to min-width: auto, which stops them shrinking below
     their content's intrinsic width (the calendar table in particular) —
     without this override, .cbk-cal-scroll's own overflow-x:auto never gets
     a chance to kick in and the whole page overflows horizontally instead. */
  min-width: 0;
}

.cbk-panel-form {
  position: sticky;
  top: 24px;
}

@media (max-width: 900px) {
  .cbk-panel-form {
    position: static;
  }
}

.cbk-panel-narrow {
  max-width: 560px;
  margin: 0 auto;
}

.cbk-panel-center {
  text-align: center;
}

.cbk-done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(198, 159, 128, 0.18);
  color: var(--perk-soc-dark-gold);
  font-size: 26px;
  margin-bottom: 16px;
}

/* ── Fields / inputs (now on white panels, so dark text throughout) ── */
.cbk-field {
  margin-bottom: 22px;
}

.cbk-field:last-of-type {
  margin-bottom: 0;
}

.cbk-label {
  display: block;
  margin-bottom: 10px;
  color: var(--perk-soc-blue);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cbk-app input[type="text"],
.cbk-app input[type="email"],
.cbk-app input[type="tel"],
.cbk-app textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e5ec;
  background-color: #f8f9fb;
  color: var(--perk-soc-navy);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: "glacial-indifference", system-ui, sans-serif;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.cbk-app input:focus,
.cbk-app textarea:focus {
  outline: none;
  border-color: var(--perk-soc-dark-gold);
  background-color: var(--perk-soc-white);
  box-shadow: 0 0 0 3px rgba(198, 159, 128, 0.18);
}

.cbk-form-note {
  color: #8a92a6;
  font-size: 12.5px;
  text-align: center;
  margin: 12px 0 0;
}

/* ── Calendar ── */
.cbk-calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef0f4;
}

.cbk-cal-nav {
  border: 1px solid #e2e5ec;
  background-color: var(--perk-soc-white);
  color: var(--perk-soc-navy);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  line-height: 1;
  cursor: pointer;
  font-size: 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.cbk-cal-nav:hover:not([disabled]) {
  border-color: var(--perk-soc-dark-gold);
  background-color: #faf3ec;
}

.cbk-cal-nav:active:not([disabled]) {
  transform: scale(0.94);
}

.cbk-cal-nav[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.cbk-cal-range {
  color: var(--perk-soc-blue);
  font-weight: 600;
  font-size: 14.5px;
}

.cbk-cal-scroll {
  overflow-x: auto;
}

.cbk-cal-table {
  border-collapse: separate;
  border-spacing: 6px;
  width: 100%;
  min-width: 560px;
  /* Fixed layout + an explicit width on the hour column below is what keeps every day
     column the same width — without it, each column auto-sizes to its own widest cell
     (a "Closed" badge vs a plain date vs "12:00 PM"), so the days visibly stagger. */
  table-layout: fixed;
}

.cbk-cal-table th,
.cbk-cal-table td {
  text-align: center;
}

.cbk-cal-table .cbk-cal-corner {
  width: 52px;
}

.cbk-cal-table th {
  color: var(--perk-soc-blue);
  font-weight: 600;
  font-size: 12px;
  /* table-layout: fixed gives every day column the same fixed width, so the date text
     needs to wrap inside it instead of overflowing into the next column — nowrap here
     is what was making the header row look staggered even though the columns beneath
     line up correctly. */
  white-space: normal;
  line-height: 1.3;
  padding-bottom: 8px;
}

.cbk-cal-table th.cbk-cal-today {
  color: var(--perk-soc-navy);
}

.cbk-cal-closed-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #9aa2b1;
  margin-top: 2px;
}

.cbk-cal-hour {
  color: #9aa2b1;
  font-size: 11.5px;
  white-space: nowrap;
  padding-right: 4px;
}

.cbk-cal-cell {
  padding: 0;
}

.cbk-cal-cell-closed {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.015),
    rgba(0, 0, 0, 0.015) 4px,
    transparent 4px,
    transparent 8px
  );
  border-radius: 8px;
}

.cbk-cal-slot {
  width: 100%;
  min-width: 56px;
  height: 34px;
  border: 1px solid #e2e5ec;
  background-color: #f8f9fb;
  color: var(--perk-soc-navy);
  border-radius: 8px;
  font-family: "glacial-indifference", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.cbk-cal-slot:hover:not([disabled]) {
  border-color: var(--perk-soc-dark-gold);
  background-color: #faf3ec;
}

.cbk-cal-slot:active:not([disabled]) {
  transform: scale(0.96);
}

.cbk-cal-slot.cbk-cal-slot-selected {
  border-color: var(--perk-soc-dark-gold);
  background-color: var(--perk-soc-dark-gold);
  color: var(--perk-soc-white);
}

.cbk-cal-slot-taken {
  background-color: transparent;
  border-color: #eef0f4;
  color: #c7ccd6;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* ── Consultation type — a responsive card grid (2 side by side today,
   wraps to 3+ automatically if more consultation types are added later) ── */
.cbk-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.cbk-product-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid #e2e5ec;
  background-color: #f8f9fb;
  border-radius: 12px;
  padding: 16px 40px 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.cbk-product-option input[type="radio"] {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  accent-color: var(--perk-soc-dark-gold);
}

.cbk-product-option:hover {
  border-color: var(--perk-soc-dark-gold);
}

.cbk-product-option:has(input:checked) {
  border-color: var(--perk-soc-dark-gold);
  background-color: #faf3ec;
  box-shadow: 0 4px 14px rgba(198, 159, 128, 0.22);
}

.cbk-product-name {
  color: var(--perk-soc-navy);
  font-weight: 700;
  font-size: 15px;
}

.cbk-product-price {
  color: var(--perk-soc-dark-gold);
  font-weight: 700;
  font-size: 13.5px;
}

.cbk-product-desc {
  color: #5b6578;
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 2px;
}

/* ── Status / messages ── */
.cbk-form-error,
.cbk-pay-error {
  color: #e2574d;
  min-height: 1.2em;
  font-size: 14px;
  margin: 12px 0 0;
}

.cbk-empty,
.cbk-loading {
  color: #8a92a6;
}

.cbk-error {
  color: #e2574d;
}

.cbk-payment-summary {
  color: var(--perk-soc-blue);
  font-weight: 600;
  margin-bottom: 20px;
}

.cbk-done-summary {
  color: #5b6578;
}

.cbk-element-mount {
  margin-bottom: 20px;
}

/* ── Buttons ──
   The sitewide .btn is sized for short labels ("JOIN US") at 26px — far too
   large for "Continue to Payment", which wraps onto 3 lines at that size. */
.cbk-app .btn {
  width: 100%;
  border: none;
  font-size: 14px !important;
  padding: 15px 16px !important;
  letter-spacing: 0.02em !important;
  white-space: normal;
  line-height: 1.3;
  box-shadow: 0 8px 20px rgba(198, 159, 128, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.cbk-app .btn:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(198, 159, 128, 0.45);
}

.cbk-app .btn:active:not([disabled]) {
  transform: translateY(0);
}

.cbk-app .btn[disabled] {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}
