/* Calendly Replacement - Clean Business Theme */
/* Build 1.6.0 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
  padding: 20px;
  color: #161616;
  font-size: 14px;
  line-height: 1.5;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e0e0e0;
}

header {
  background: #ffffff;
  color: #161616;
  padding: 24px 32px;
  border-bottom: 1px solid #e0e0e0;
}

header h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

header .subtitle {
  font-size: 14px;
  color: #525252;
}

header .phone-option {
  font-size: 13px;
  color: #6f6f6f;
  margin-top: 12px;
}

/* Auth Warning */
.auth-warning {
  background: #fff8e1;
  border-left: 3px solid #f5a623;
  padding: 12px 16px;
  margin: 16px;
  font-size: 14px;
  color: #161616;
}

.auth-warning a {
  color: #0f62fe;
  text-decoration: underline;
}

/* Steps */
.step {
  padding: 24px 32px;
}

.step.hidden {
  display: none;
}

.step h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #161616;
}

/* Duration Selection */
.duration-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.duration-label-inline {
  font-weight: 500;
  color: #525252;
  font-size: 14px;
}

.duration-options-inline {
  display: flex;
  gap: 8px;
}

.duration-btn-inline {
  padding: 8px 16px;
  border: 1px solid #8d8d8d;
  background: #ffffff;
  color: #161616;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

.duration-btn-inline:hover {
  background: #f4f4f4;
}

.duration-btn-inline.selected {
  border-color: #0f62fe;
  background: #0f62fe;
  color: #ffffff;
}

/* Two-Column Scheduler Grid */
.scheduler-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.calendar-panel {
  min-height: 360px;
}

.time-panel {
  /* No fixed height - expands to show all time slots */
}

.calendar-panel h3 {
  font-size: 14px;
  font-weight: 600;
  color: #161616;
  margin-bottom: 12px;
}

.time-panel h3 {
  font-size: 14px;
  font-weight: 600;
  color: #161616;
  margin: 0;
}

.time-panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.timezone-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #525252;
}

.selected-date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.jay-timezone-note {
  font-size: 12px;
  color: #8d8d8d;
  font-style: italic;
}

.no-date-message {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  color: #8d8d8d;
  font-size: 14px;
  text-align: center;
  border: 1px dashed #c6c6c6;
}

/* Timezone Notice */
.timezone-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  margin-bottom: 16px;
  font-size: 13px;
  color: #525252;
}

.timezone-notice.emphasis {
  color: #da1e28;
}

.timezone-icon {
  font-size: 14px;
}

.timezone-btn {
  background: none;
  border: none;
  color: #0f62fe;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  font-family: inherit;
  padding: 0;
}

.timezone-selector {
  margin-bottom: 16px;
}

.timezone-selector select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #8d8d8d;
  font-size: 14px;
  background: #ffffff;
  color: #161616;
  font-family: inherit;
}

/* Calendar */
.calendar-container {
  border: 1px solid #e0e0e0;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f4f4f4;
  border-bottom: 1px solid #e0e0e0;
}

.calendar-header .nav-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  color: #0f62fe;
  font-family: inherit;
}

.calendar-header .nav-btn:disabled {
  color: #c6c6c6;
  cursor: not-allowed;
}

#current-month {
  font-weight: 600;
  font-size: 14px;
  color: #161616;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 8px 0;
  background: #f4f4f4;
  border-bottom: 1px solid #e0e0e0;
  font-size: 12px;
  font-weight: 600;
  color: #525252;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 8px;
  background: #ffffff;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: default;
  color: #c6c6c6;
}

.calendar-day.available {
  color: #161616;
  cursor: pointer;
  font-weight: 500;
}

.calendar-day.available:hover {
  background: #e0e0e0;
}

.calendar-day.selected {
  background: #0f62fe;
  color: #ffffff;
}

.calendar-day.today {
  border: 1px solid #0f62fe;
}

.calendar-day.other-month {
  color: #e0e0e0;
}

/* Time Slots */
.selected-date {
  font-size: 13px;
  color: #525252;
  margin: 0;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 500px) {
  .time-slots {
    grid-template-columns: repeat(2, 1fr);
  }
}

.time-slot {
  padding: 10px 8px;
  border: 1px solid #8d8d8d;
  background: #ffffff;
  color: #161616;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.time-slot .slot-time {
  font-weight: 500;
}

.time-slot .central-time-note {
  font-size: 11px;
  color: #6f6f6f;
}

.time-slot:hover {
  background: #f4f4f4;
}

.time-slot.selected {
  border-color: #0f62fe;
  background: #0f62fe;
  color: #ffffff;
}

.time-slot.selected .central-time-note {
  color: rgba(255, 255, 255, 0.8);
}

.time-slot.unavailable {
  background: #f4f4f4;
  color: #c6c6c6;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Form */
.booking-summary {
  background: #f4f4f4;
  border-left: 3px solid #0f62fe;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #161616;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #8d8d8d;
  font-size: 14px;
  background: #ffffff;
  color: #161616;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid #0f62fe;
  outline-offset: -2px;
  border-color: #0f62fe;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a8a8a8;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Meeting Type Selection */
.meeting-type-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meeting-type-option {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  background: #ffffff;
}

.meeting-type-option:hover {
  background: #f4f4f4;
}

.meeting-type-option input[type="radio"] {
  width: auto;
  margin-right: 12px;
  margin-top: 2px;
}

.meeting-type-option:has(input:checked) {
  border-color: #0f62fe;
  background: #edf5ff;
}

.meeting-type-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meeting-type-title {
  font-weight: 500;
  color: #161616;
  font-size: 14px;
}

.meeting-type-desc {
  font-size: 12px;
  color: #525252;
}

/* Location Search */
.location-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #8d8d8d;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
}

.location-suggestion {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #e0e0e0;
}

.location-suggestion:last-child {
  border-bottom: none;
}

.location-suggestion:hover {
  background: #f4f4f4;
}

.location-suggestion-name {
  font-weight: 500;
  color: #161616;
}

.location-suggestion-address {
  color: #525252;
  font-size: 12px;
  margin-top: 2px;
}

/* Selected Location Display */
.selected-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #defbe6;
  border: 1px solid #198038;
  margin-top: 8px;
}

#selected-location-text {
  font-size: 13px;
  color: #161616;
}

.clear-location-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #525252;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.clear-location-btn:hover {
  color: #da1e28;
}

/* Form group position for suggestions */
#location-input-group {
  position: relative;
}

/* Buttons */
.submit-btn {
  width: 100%;
  padding: 12px;
  background: #0f62fe;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.submit-btn:hover {
  background: #0353e9;
}

.submit-btn:disabled {
  background: #c6c6c6;
  cursor: not-allowed;
}

.back-btn {
  display: block;
  margin-top: 16px;
  background: none;
  border: none;
  color: #0f62fe;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  font-family: inherit;
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: #525252;
  font-size: 14px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-top-color: #0f62fe;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-small {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Confirmation */
.confirmation-card {
  text-align: center;
}

.confirmation-icon {
  width: 48px;
  height: 48px;
  background: #198038;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.confirmation-details {
  background: #defbe6;
  border-left: 3px solid #198038;
  padding: 16px;
  margin: 16px 0;
  text-align: left;
  line-height: 1.8;
  color: #161616;
  font-size: 14px;
}

.zoom-info {
  background: #edf5ff;
  border-left: 3px solid #0f62fe;
  padding: 16px;
  margin: 16px 0;
  text-align: left;
}

.zoom-info h3 {
  margin-bottom: 8px;
  color: #161616;
  font-size: 14px;
  font-weight: 600;
}

.zoom-info p {
  margin: 4px 0;
  font-size: 14px;
}

.zoom-info a {
  color: #0f62fe;
  word-break: break-all;
}

/* Meeting Info Sections (shared styles) */
.meeting-info {
  padding: 16px;
  margin: 16px 0;
  text-align: left;
}

.meeting-info h3 {
  margin-bottom: 8px;
  color: #161616;
  font-size: 14px;
  font-weight: 600;
}

.meeting-info p {
  margin: 4px 0;
  font-size: 14px;
}

/* Office Meeting Info */
.office-info {
  background: #f4f4f4;
  border-left: 3px solid #525252;
}

.office-note {
  color: #525252;
  font-size: 13px;
  font-style: italic;
}

/* Custom Location Meeting Info */
.custom-location-info {
  background: #fff8e1;
  border-left: 3px solid #f5a623;
}

.confirmation-note {
  color: #525252;
  font-size: 13px;
  margin: 16px 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 16px 32px;
  background: #f4f4f4;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  color: #525252;
}

.build-info {
  margin-top: 4px;
  font-size: 11px;
  color: #8d8d8d;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Error */
.error {
  color: #da1e28;
  padding: 16px;
  text-align: center;
  font-size: 14px;
}

/* Legacy duration styles */
.duration-options {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.duration-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border: 1px solid #8d8d8d;
  background: #ffffff;
  color: #161616;
  cursor: pointer;
  font-family: inherit;
}

.duration-btn:hover {
  background: #f4f4f4;
}

.duration-btn.selected {
  border-color: #0f62fe;
  background: #0f62fe;
  color: #ffffff;
}

.duration-time {
  font-size: 24px;
  font-weight: 600;
}

.duration-label {
  font-size: 13px;
  color: #525252;
}

/* Responsive */
@media (max-width: 768px) {
  .scheduler-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .calendar-panel,
  .time-panel {
    min-height: auto;
  }

  .no-date-message {
    height: 120px;
  }

  .duration-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 500px) {
  body {
    padding: 0;
  }

  .container {
    border: none;
  }

  .step {
    padding: 16px;
  }

  .duration-options {
    flex-direction: column;
  }

  .duration-btn {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .duration-time {
    font-size: 18px;
  }

  .duration-options-inline {
    flex-wrap: wrap;
  }

  .duration-btn-inline {
    padding: 6px 12px;
    font-size: 13px;
  }
}
