/* Rockfirm booking widget */
.rfb, .rfb-overlay {
  --rfb-ink: #0b0b0b;
  --rfb-paper: #ecebe7;
  --rfb-card: #f6f5f2;
  --rfb-line: #cfccc5;
  --rfb-muted: #555555;
  --rfb-red: #ed1c2d;
  --rfb-red-text: #c4121f;
  color: var(--rfb-ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
}
.rfb *, .rfb *::before, .rfb *::after, .rfb-overlay, .rfb-overlay * { box-sizing: border-box; }
.rfb a { color: var(--rfb-ink); }
.rfb a:hover { color: var(--rfb-red-text); }
.rfb button, .rfb input, .rfb select, .rfb textarea { font: inherit; color: inherit; }
.rfb :focus-visible { outline: 2px solid var(--rfb-ink); outline-offset: 2px; }

.rfb-body > * + * { margin-top: 18px; }
.rfb-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rfb-title {
  margin: 0;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.02;
  text-transform: uppercase;
}
.rfb-title:focus { outline: none; }
.rfb-back {
  border: 0; background: none; padding: 6px 0; cursor: pointer;
  font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 15px; color: var(--rfb-muted);
}
.rfb-back:hover { color: var(--rfb-ink); }
.rfb-muted { color: var(--rfb-muted); margin: 0; }
.rfb-lead { margin: 0; font-size: 20px; }
.rfb p { margin: 0; }
.rfb-alert {
  border-left: 3px solid var(--rfb-red); background: #fff; padding: 12px 14px;
  font-family: 'Barlow', sans-serif; font-weight: 500; font-size: 16px;
}

/* meeting types */
.rfb-types { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rfb-type {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; background: var(--rfb-card); border: 1px solid var(--rfb-line);
}
.rfb-type:hover { border-color: var(--rfb-ink); }
.rfb-type-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.rfb-type-meta { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rfb-red-text); }
.rfb-type-desc { color: #333; }

/* time zone + days + times */
.rfb-tzrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: 'Barlow', sans-serif; font-size: 15px; }
.rfb-tzrow label { color: var(--rfb-muted); font-weight: 500; }
.rfb-tz { padding: 8px 10px; border: 1px solid var(--rfb-line); background: var(--rfb-card); max-width: 100%; min-height: 44px; }

.rfb-weeknav { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: 'Barlow', sans-serif; }
.rfb-weeklabel { font-weight: 600; font-size: 16px; }
.rfb-weekbtn { width: 44px; height: 44px; cursor: pointer; border: 1px solid var(--rfb-line); background: var(--rfb-card); font-size: 24px; line-height: 1; color: var(--rfb-ink); }
.rfb-weekbtn:hover:not([disabled]) { border-color: var(--rfb-ink); }
.rfb-weekbtn[disabled] { opacity: .35; cursor: default; }
.rfb-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rfb-day {
  min-width: 0; min-height: 64px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid var(--rfb-line); background: var(--rfb-card); padding: 8px 10px;
  font-family: 'Barlow', sans-serif;
}
.rfb-day:hover { border-color: var(--rfb-ink); }
.rfb-day[aria-pressed="true"] { background: var(--rfb-ink); border-color: var(--rfb-ink); color: #fff; }
.rfb-day-wd { font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.rfb-day-md { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; line-height: 1; }

.rfb-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.rfb-time {
  min-height: 46px; cursor: pointer; border: 1px solid var(--rfb-ink); background: transparent;
  font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 16px;
}
.rfb-time:hover { background: var(--rfb-ink); color: #fff; }

/* summary + details */
.rfb-summary { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--rfb-card); border-left: 3px solid var(--rfb-red); }
.rfb-summary-label { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rfb-red-text); }
.rfb-summary-when { font-size: 19px; }
.rfb-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.rfb-dl dt { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rfb-muted); padding-top: 3px; }
.rfb-dl dd { margin: 0; }

/* form */
.rfb-form > * + * { margin-top: 16px; }
.rfb-field label { display: block; margin-bottom: 6px; font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 15px; }
.rfb-field input, .rfb-field select, .rfb-field textarea {
  width: 100%; padding: 10px 12px; min-height: 46px; border: 1px solid var(--rfb-line); background: #fff; border-radius: 0;
}
.rfb-field textarea { resize: vertical; min-height: 110px; }
.rfb-field input:focus, .rfb-field select:focus, .rfb-field textarea:focus { border-color: var(--rfb-ink); }
.rfb-invalid input, .rfb-invalid select, .rfb-invalid textarea { border-color: var(--rfb-red-text); }
.rfb-err { margin-top: 6px !important; font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 14px; color: var(--rfb-red-text); }
.rfb-hint { margin-top: 6px !important; font-family: 'Barlow', sans-serif; font-size: 14px; color: var(--rfb-muted); }

.rfb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rfb-primary, .rfb-secondary {
  min-height: 50px; padding: 14px 26px; cursor: pointer; border: 0;
  font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 18px;
}
.rfb-primary { background: var(--rfb-red); color: #fff; }
.rfb-primary:hover { background: var(--rfb-red-text); }
.rfb-primary[disabled] { opacity: 0.6; cursor: progress; }
.rfb-secondary { background: transparent; border: 1px solid var(--rfb-ink); }
.rfb-secondary:hover { background: var(--rfb-ink); color: #fff; }

/* pop-up */
html.rfb-locked { overflow: hidden; }
.rfb-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(11, 11, 11, 0.72);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 5vh 16px;
}
.rfb-panel {
  position: relative; width: 100%; max-width: 640px; background: var(--rfb-paper);
  padding: 40px clamp(20px, 5vw, 44px) 40px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.rfb-close {
  position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border: 0; background: none;
  font-size: 32px; line-height: 1; cursor: pointer; color: #0b0b0b;
}
.rfb-close:focus-visible { outline: 2px solid #0b0b0b; }
@media (max-width: 600px) {
  .rfb-overlay { padding: 0; }
  .rfb-panel { min-height: 100%; max-width: none; padding-top: 56px; }
  .rfb { font-size: 16px; }
}
