/* Progressive Booking Modal — Cal.com layout mirror */

.pbm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: pbm-in 0.15s ease;
}

@keyframes pbm-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal — same dimensions and style as Cal.com */
.pbm-modal {
  background: #fff;
  border-radius: 8px;
  width: 750px;
  max-width: 95vw;
  max-height: 90vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  animation: pbm-up 0.2s ease;
}

@keyframes pbm-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* LEFT SIDEBAR — mirrors Cal.com event info panel */
.pbm-sidebar {
  background: #F9FAFC;
  border-right: 1px solid #e5e7eb;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pbm-sidebar-content {
  display: flex;
  flex-direction: column;
}

.pbm-c-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
}

.pbm-brand-name {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 2px;
}

.pbm-event-title {
  font-size: 18px;
  font-weight: 600;
  color: #64748B;
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
}

.pbm-event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pbm-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.pbm-meta-item svg {
  flex-shrink: 0;
  color: #9ca3af;
}

/* Social proof in sidebar */
.pbm-sidebar-proof {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.pbm-proof-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  margin: 0 0 10px 0;
}

.pbm-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.pbm-logos img {
  height: 22px;
  width: auto;
  opacity: 0.7;
}

.pbm-proof-text {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
  margin: 0 0 4px 0;
}

/* RIGHT CONTENT — form area */
.pbm-content {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pbm-heading {
  font-size: 18px;
  font-weight: 600;
  color: #64748B;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.pbm-subheading {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px 0;
}

/* Form fields — match Cal.com's input styling */
.pbm-field {
  margin-bottom: 16px;
}

.pbm-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.pbm-field input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pbm-field input::placeholder { color: #9ca3af; }

.pbm-field input:focus {
  outline: none;
  border-color: #10292C;
  box-shadow: 0 0 0 1px #10292C;
}

/* CTA button — Cal.com's confirm button style */
.pbm-cta {
  width: 100%;
  padding: 9px 16px;
  background: #10292C;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}

.pbm-cta:hover { background: #1a3a3f; }
.pbm-cta:disabled { opacity: 0.5; cursor: wait; }

/* MOBILE — stack vertically */
@media (max-width: 640px) {
  .pbm-modal {
    grid-template-columns: 1fr;
    width: 95vw;
  }

  .pbm-sidebar {
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .pbm-sidebar-content {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .pbm-c-icon { margin-bottom: 0; }
  .pbm-brand-name { display: none; }
  .pbm-event-title { margin: 0; font-size: 16px; }
  .pbm-event-meta { flex-direction: row; }
  .pbm-sidebar-proof { display: none; }

  .pbm-content {
    padding: 24px 20px;
  }
}
