body.lcff-modal-open {
  overflow: hidden;
}

#lcff-calendar-wrapper,
#lcff-calendar-wrapper * {
  box-sizing: border-box;
}

#lcff-calendar-wrapper {
  margin: 20px 0 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #111827;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.lcff-inline-error,
.lcff-inline-success,
.lcff-resume-banner {
  max-width: 760px;
}

.lcff-inline-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7f7;
  border: 1px solid #f5c2c7;
  color: #b42318;
}

.lcff-inline-success {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
}

.lcff-inline-success strong,
.lcff-resume-copy strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.lcff-inline-success p {
  margin: 0;
}

.lcff-resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.08);
}

.lcff-resume-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lcff-resume-copy span {
  color: #4b5563;
  font-size: 14px;
}

.lcff-resume-button {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.18);
}

.lcff-resume-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.lcff-resume-button:focus,
.lcff-modal-close:focus,
.lcff-cal-nav button:focus,
.lcff-slot-card:focus,
#lcff-confirm:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.lcff-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lcff-booking-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(6px);
}

.lcff-booking-dialog {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: calc(100vh - 48px);
  margin: auto;
  overflow: auto;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
}

.lcff-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
}

.lcff-modal-status {
  margin: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.lcff-modal-status-error {
  background: #fff7f7;
  border-color: #f5c2c7;
  color: #b42318;
}

.lcff-calendly-surface {
  display: flex;
  min-height: 480px;
}

.lcff-cal-left {
  flex: 0 0 220px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8ff 100%);
  border-right: 1px solid #e5edf8;
  padding: 40px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lcff-cal-left h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lcff-cal-duration {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.lcff-cal-duration svg {
  stroke: #94a3b8;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.lcff-cal-meeting-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  margin-bottom: auto;
}

.lcff-cal-step-copy {
  margin: 0;
  color: #475569;
  font-size: 13px;
}

.lcff-cal-center {
  flex: 1;
  min-width: 0;
  padding: 40px 18px 30px;
}

.lcff-cal-center h2 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 18px;
  text-align: center;
}

.lcff-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.lcff-cal-nav button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #dbe2ea;
  background: #fff;
  color: #475569;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}

.lcff-cal-nav button:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.lcff-cal-nav span {
  min-width: 120px;
  text-align: center;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.lcff-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  max-width: 310px;
  margin: 0 auto;
}

.lcff-cal-header {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 6px 0;
}

.lcff-cal-day {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 auto;
  position: relative;
  transition: background .15s, color .15s, transform .15s;
  border: 1px solid transparent;
  background: none;
  font-family: inherit;
}

.lcff-cal-day.empty,
.lcff-cal-day.past,
.lcff-cal-day.unavailable {
  cursor: default;
  pointer-events: none;
}

.lcff-cal-day.past,
.lcff-cal-day.unavailable {
  color: #cbd5e1;
}

.lcff-cal-day.available {
  color: #2563eb;
  font-weight: 800;
}

.lcff-cal-day.available:hover {
  background: #eff6ff;
  transform: translateY(-1px);
}

.lcff-cal-day.selected {
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.lcff-cal-day.available::after,
.lcff-cal-day.selected::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.lcff-cal-day.selected::after {
  background: #fff;
}

.lcff-cal-right {
  flex: 0 0 240px;
  border-left: 1px solid #e5edf8;
  padding: 40px 24px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.lcff-cal-right h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
  line-height: 1.2;
}

.lcff-time-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.lcff-slot-card {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all .12s;
  text-align: center;
  font-family: inherit;
}

.lcff-slot-card:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}

.lcff-slot-card.selected {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.lcff-empty-state {
  color: #94a3b8;
  font-size: 13px;
  padding-top: 4px;
}

#lcff-confirm {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

#lcff-confirm:hover {
  background: #15803d;
  transform: translateY(-1px);
}

#lcff-confirm:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.lcff-modal-success {
  padding: 60px 40px 48px;
  text-align: center;
}

.lcff-modal-success h3 {
  margin: 0 0 8px;
  color: #166534;
  font-size: 24px;
}

.lcff-modal-success p {
  margin: 0;
  color: #14532d;
  font-size: 15px;
  line-height: 1.6;
}

.lcff-redirecting-message {
  margin-top: 10px !important;
  color: #475569 !important;
  font-size: 13px !important;
}

@media (max-width: 900px) {
  .lcff-booking-dialog {
    max-width: 720px;
    max-height: calc(100vh - 32px);
  }

  .lcff-booking-modal {
    padding: 16px;
  }

  .lcff-cal-left,
  .lcff-cal-right {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lcff-cal-center {
    padding-left: 14px;
    padding-right: 14px;
  }

  .lcff-cal-grid {
    max-width: 280px;
  }

  .lcff-cal-day {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .lcff-resume-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .lcff-booking-modal {
    padding: 0;
  }

  .lcff-booking-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .lcff-calendly-surface {
    flex-direction: column;
    min-height: auto;
  }

  .lcff-cal-left,
  .lcff-cal-right,
  .lcff-cal-center {
    width: 100%;
    border: none;
    padding: 20px 18px;
  }

  .lcff-cal-left {
    border-bottom: 1px solid #e5edf8;
  }

  .lcff-cal-right {
    border-top: 1px solid #e5edf8;
  }

  .lcff-cal-center h2 {
    font-size: 16px;
  }

  .lcff-cal-right h3 {
    font-size: 17px;
  }

  .lcff-slot-card {
    font-size: 15px;
  }

  .lcff-modal-success {
    padding: 48px 20px 36px;
  }
}
