/**
 * Styling for the interactive steps that booking.js adds (time list, details
 * form, confirmation). Nothing here overrides Calendly's own CSS — it only
 * fills in screens that were never part of the capture, using the exact
 * colours and font read off the rendered original so they sit flush against
 * the untouched calendar step:
 *
 *   text            #0a2540   (rgb(10, 37, 64))
 *   accent / links  #004eba   (rgb(0, 78, 186))
 *   subtle text     #476788   (rgb(71, 103, 136))
 *   accent surface  #f4f8ff   (rgb(244, 248, 255))
 *   divider / border #d4e0ed  (rgb(212, 224, 237))
 *   font            "Proxima Nova", sans-serif
 */

.clone-panel {
  font-family: 'Proxima Nova', sans-serif;
  color: #0a2540;
  padding-top: 4px;
}

/* ---- Connect gate: blurred calendar + centered unlock button ---- */
.clone-gate-box {
  position: relative;
}

.clone-gate-locked {
  /* The calendar stays visually pristine — the frosting is done by the overlay
     above. This only blocks keyboard/mouse from reaching controls that are
     gated visually, not functionally. */
  pointer-events: none;
  user-select: none;
}

.clone-gate-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  /* A translucent white wash fades the sharp calendar, plus a gentle blur so
     it reads as "veiled" rather than just pale. The blur is kept low on
     purpose — enough to soften, not so much it smears the glyphs into the
     "deformed text" look. The button (a child) paints above this layer and
     stays fully solid. */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  padding: 0 24px;
}

/* Personalised (invitee known): a darker veil, matching the reference where
   the calendar is dimmed rather than washed white. */
.clone-gate-overlay.is-identity {
  background: rgba(18, 22, 28, 0.5);
}

.clone-gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  /* Subtle top-lit gradient rather than a flat fill — reads more polished and
     gives the pill a faint sense of volume. */
  background: linear-gradient(180deg, #1c1c1e 0%, #0a0a0a 100%);
  color: #fff;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  /* Layered shadow: a tight contact shadow for grounding, a soft wide one for
     lift, and an inner top highlight so the edge catches light. */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.16s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.16s ease,
    background 0.16s ease;
}
.clone-gate-btn:hover {
  background: linear-gradient(180deg, #242426 0%, #131313 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 16px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.clone-gate-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 6px 16px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.clone-gate-btn:focus-visible {
  outline: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 3px rgba(0, 0, 0, 0.15);
}
.clone-gate-btn svg {
  /* Optically nudge the X mark onto the text baseline. */
  margin-top: -1px;
}

/* "You've been invited by <org>" line under the meeting title. */
.clone-invited-by {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0a2540;
  /* Reference has generous room under the title, then sits tight against the
     duration row right below it — the opposite of what a symmetric margin
     gives, so top/bottom are deliberately asymmetric here. */
  margin: 16px 0 2px;
  line-height: 1.4;
}

/* ---- Personalised "Continue as <name>" button ---- */
.clone-gate-btn-identity {
  gap: 12px;
  padding: 9px 22px 9px 9px; /* tighter left so the avatar hugs the edge */
  max-width: 92%;
  font-weight: 600;
  /* Matches the reference: a crisp light ring, then a soft luminous halo so
     the black pill glows against the dimmed calendar behind it, plus depth. */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 26px 3px rgba(255, 255, 255, 0.14),
    0 14px 34px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.clone-gate-btn-identity:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 0 32px 4px rgba(255, 255, 255, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.clone-gate-btn-identity .clone-gate-name {
  font-weight: 700;
}

.clone-gate-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #2a2a2e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  /* Initials fallback styling (only shown when there is no image). */
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.clone-gate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clone-gate-btn-label {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.clone-gate-name {
  font-weight: 700;
}

.clone-connected-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #b6e6c6;
  color: #146c34;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transition: opacity 0.4s, transform 0.4s;
}
.clone-connected-toast.is-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
}
.clone-connected-toast::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1a9c4c;
  color: #fff;
  font-size: 11px;
  flex-shrink: 0;
}

.clone-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.clone-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #004eba;
  cursor: pointer;
  flex-shrink: 0;
}
.clone-back-btn:hover {
  background: #f4f8ff;
}

.clone-step-title {
  font-size: 18px;
  font-weight: 700;
}

/* ---- Step 2: time slots ---- */
.clone-slot-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 320px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.clone-slot-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 4px;
  border: 1px solid #004eba;
  background: #f4f8ff;
  color: #004eba;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.clone-slot-btn:hover,
.clone-slot-btn:focus-visible {
  background: #004eba;
  color: #fff;
  outline: none;
}

.clone-slot-tz {
  margin-top: 20px;
  font-size: 13px;
  color: #476788;
}

/* ---- Shared: meeting summary block (steps 3 and 4) ---- */
.clone-summary {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d4e0ed;
}

.clone-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #0a2540;
  padding: 3px 0;
}
.clone-summary-row svg {
  flex-shrink: 0;
  color: #476788;
}

.clone-summary-tz {
  color: #476788;
  margin-left: 4px;
}
.clone-summary-tz-line {
  color: #476788;
  font-size: 13.5px;
}

/* ---- Step 3: details form ---- */
.clone-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 400px;
}

.clone-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0a2540;
}
.clone-field em {
  color: #b3261e;
  font-style: normal;
}

.clone-field input,
.clone-field textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #0a2540;
  padding: 10px 12px;
  border: 1px solid #d4e0ed;
  border-radius: 4px;
  background: #fff;
  resize: vertical;
}
.clone-field input:focus,
.clone-field textarea:focus {
  outline: none;
  border-color: #004eba;
  box-shadow: 0 0 0 1px #004eba;
}

.clone-submit-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: #004eba;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}
.clone-submit-btn:hover {
  background: #003a8c;
}

/* ---- Step 4: confirmation ---- */
.clone-success {
  max-width: 400px;
}

.clone-success-icon {
  color: #1a9c4c;
  margin-bottom: 12px;
}

.clone-success h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.clone-success-sub {
  font-size: 14px;
  color: #476788;
  margin-bottom: 24px;
}

.clone-back-link {
  border: none;
  background: transparent;
  color: #004eba;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.clone-demo-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed #d4e0ed;
  font-size: 12px;
  color: #8a99a8;
  line-height: 1.5;
}
