/* ==========================================================================
   Convogents — Contact / Get Started Page Styles
   Structural & visual reference: lightdash.com/start
   Extends the shared assets/css/styles.css stylesheet.
   ========================================================================== */

.contact-page {
  --green-forest: var(--green-dark);
  --green-emerald: var(--color-primary);
  --green-mint-bg: #eaf3f1;
  --surface-white: #fff;
  --surface-subtle: #f8faf9;
  --border-light: #dfe4ed;
  --ink-primary: var(--ink);
  --ink-secondary: #475569;
  --ink-muted: #64748b;
  --font-mono: "IBM Plex Mono", var(--mono);
  --font-sans: "Stack Sans Notch", Arial, sans-serif;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
}
.contact-page .btn:not(.btn-cta-mint):not(.btn-cta-ghost) { display: inline-flex; align-items: center; justify-content: center; gap: .625rem; min-height: 2.75rem; padding: .75rem 1.125rem; border: 1px solid var(--green-emerald); border-radius: var(--radius-sm); background: var(--green-emerald); color: #fff; font-size: .875rem; font-weight: 500; line-height: 1.4; }
.contact-page .btn:not(.btn-cta-mint):not(.btn-cta-ghost):hover { background: var(--green-forest); }
.contact-page .btn-icon { width: 1rem; height: 1rem; }
.contact-page .booking-shell > * { min-width: 0; }
.contact-page .booking-timezone-select { max-width: 100%; }
.contact-page .cal-day-cell.is-today { box-shadow: inset 0 0 0 1px var(--green-emerald); }

/* Only the contact booking form: details / calendar / time. */
.contact-page .sales-booking { grid-template-columns: minmax(0, 1fr); max-width: 76rem; align-items: stretch; }
.sales-booking .booking-meta-col,
.sales-booking .booking-calendar-col,
.sales-booking .booking-slots-col { padding: 1.5rem; border: 0; }
.sales-booking .booking-calendar-col,
.sales-booking .booking-slots-col { border-top: 1px solid var(--border-light); }
.sales-booking .booking-org-name { margin-bottom: .75rem; }
.sales-booking .booking-meeting-note { margin-bottom: 1.25rem; }
.sales-booking .sales-field { display: grid; gap: .4375rem; margin-bottom: 1rem; min-width: 0; }
.sales-booking .sales-field:last-child { margin-bottom: 0; }
.sales-booking .sales-field label { color: var(--ink-primary); font-size: .8125rem; font-weight: 600; }
.sales-booking .sales-field :is(input, textarea, select) { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 2.75rem; padding: .625rem .75rem; border: 1px solid #aebdb7; border-radius: 0; background: #fff; color: var(--ink-primary); font: inherit; font-size: 1rem; }
.sales-booking .sales-field select {
  appearance: none;
  padding-inline-end: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2303594c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.125rem;
  cursor: pointer;
}
@media (forced-colors: active) {
  .sales-booking .sales-field select { appearance: auto; background-image: none; padding-inline-end: .75rem; }
}
.sales-booking textarea { resize: vertical; }
.sales-booking :is(input, textarea, select, button):focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.sales-booking .calendar-header { flex-wrap: wrap; gap: .75rem; }
.sales-booking .calendar-nav-btn { font-size: 1.5rem; }
.sales-booking .calendar-days-grid,
.sales-booking .calendar-weekdays { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.sales-booking .calendar-weekdays span { font-size: .5625rem; letter-spacing: 0; }
.sales-booking .cal-day-cell { min-width: 0; padding: 0; }
.sales-booking .sales-date-field { margin-top: 1.5rem; }
.sales-booking .slots-selected-date { margin-bottom: 1.25rem; font-size: .8125rem; line-height: 1.5; }
.sales-booking-note { display: grid; gap: .5rem; padding: 1rem; border: 1px solid #c5dcd2; border-radius: 0; background: var(--green-mint-bg); font-size: .8125rem; line-height: 1.6; color: var(--ink-secondary); }
.sales-booking .sales-demo-note { margin-block: 1rem; color: var(--ink-secondary); font-size: .75rem; line-height: 1.6; }
.sales-booking .sales-book-btn { width: 100%; cursor: pointer; }
.sales-booking .sales-book-btn:disabled { opacity: .6; cursor: not-allowed; }
.sales-booking .sales-status { margin-top: .75rem; color: var(--green-forest); font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.sales-booking .sales-status:empty { display: none; }
@media (min-width: 64rem) {
  .contact-page .sales-booking { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); }
  .sales-booking .booking-calendar-col,
  .sales-booking .booking-slots-col { border-top: 0; border-left: 1px solid var(--border-light); }
  .sales-booking .booking-calendar-col { display: flex; flex-direction: column; }
  .sales-booking .calendar-header,
  .sales-booking .calendar-weekdays,
  .sales-booking .sales-date-field { flex-shrink: 0; }
  .sales-booking .calendar-days-grid { flex: 1; grid-auto-rows: minmax(3.125rem, 1fr); }
  .sales-booking .cal-day-cell { height: auto; min-height: 3.125rem; font-size: .9375rem; }
  .sales-booking .calendar-weekdays span { font-size: .625rem; }
  .sales-booking .booking-meta-col > .sales-field:last-child { flex: 1; grid-template-rows: auto minmax(5rem, 1fr); }
  .sales-booking .booking-meta-col textarea { height: 100%; }
  .sales-booking .sales-book-btn { margin-top: auto; }
}

.nav-link.is-current {
  color: var(--green-forest);
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.start-main {
  background-color: var(--surface-white);
  width: 100%;
}

/* Framed 3-band architectural container (mirrors Lightdash max-w-378 = 1512px border-x divide-y) */
.start-frame {
  width: 100%;
  max-width: 1512px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-inline: 1px solid var(--border-light);
}

.start-frame > * + * {
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   Band 1: Intro Header + Decorative Corner Block Mosaic
   ========================================================================== */
.start-intro {
  position: relative;
  padding: 80px 32px;
  overflow: hidden;
  min-height: 310px;
  background-color: var(--surface-white);
}

.start-corner-mosaic {
  position: absolute;
  top: 0;
  right: 0;
  width: 308px;
  height: 528px;
  pointer-events: none;
  z-index: 1;
}

.mosaic-tile {
  position: absolute;
  width: 44px;
  height: 44px;
  display: block;
}

.mosaic-tile--hatch {
  background-image: repeating-linear-gradient(
    -45deg,
    rgb(var(--color-primary-rgb) / 0.12) 0px,
    rgb(var(--color-primary-rgb) / 0.12) 1px,
    transparent 1px,
    transparent 6px
  );
  background-color: rgba(232, 248, 240, 0.45);
}

.mosaic-tile--grid {
  background-image:
    linear-gradient(to right, rgb(var(--color-primary-rgb) / 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--color-primary-rgb) / 0.1) 1px, transparent 1px);
  background-size: 11px 11px;
  background-color: rgba(250, 252, 251, 0.9);
}

.mosaic-tile--radial {
  background: radial-gradient(circle at 50% 50%, rgb(var(--color-primary-rgb) / 0.2) 0%, rgba(232, 248, 240, 0.6) 60%, transparent 100%);
}

.mosaic-tile--gradient {
  background: linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.18) 0%, rgb(var(--color-primary-rgb) / 0.08) 100%);
}

.mosaic-tile--stripes {
  background-image: repeating-linear-gradient(
    to bottom,
    rgb(var(--color-primary-rgb) / 0.12) 0px,
    rgb(var(--color-primary-rgb) / 0.12) 2px,
    transparent 2px,
    transparent 7px
  );
}

.mosaic-tile--dots {
  background-image: radial-gradient(rgb(var(--color-primary-rgb) / 0.2) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
}

.mosaic-tile--ascii {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: rgb(var(--color-primary-rgb) / 0.34);
  background-color: rgba(232, 248, 240, 0.32);
  user-select: none;
}

.start-intro-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

.start-title {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--ink-primary);
  text-wrap: balance;
}

.start-desc {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 560px;
  text-wrap: pretty;
}

.start-skip-link {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

.start-skip-link:hover {
  color: var(--green-emerald);
}

.start-skip-link:focus-visible {
  outline: 2px solid var(--green-emerald);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.start-skip-arrow {
  display: inline-block;
  line-height: 1;
  transform: rotate(-45deg);
  transition: transform 0.2s var(--ease-out-expo);
}

.start-skip-link:hover .start-skip-arrow {
  transform: rotate(-45deg) translateX(3px);
}

/* ==========================================================================
   Band 2: Booking Interface (Cal.com-style 3-column scheduler)
   ========================================================================== */
.start-booking-section {
  min-height: 404px;
  background-color: var(--surface-white);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-shell {
  width: 100%;
  max-width: 1060px;
  background-color: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 290px 1fr 310px;
  overflow: hidden;
}

/* Left Column: Meeting Meta */
.booking-meta-col {
  padding: 28px 24px;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.booking-org {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.booking-org-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--green-mint-bg);
  border: 1px solid rgb(var(--color-primary-rgb) / 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.booking-org-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.booking-meeting-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.booking-meeting-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.booking-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.booking-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.booking-detail-icon {
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.booking-timezone-select {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-primary);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  width: 100%;
  cursor: pointer;
}

.booking-timezone-select:focus-visible {
  outline: 2px solid var(--green-emerald);
  outline-offset: 2px;
}

/* Middle Column: Calendar */
.booking-calendar-col {
  padding: 28px 28px;
  border-right: 1px solid var(--border-light);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-month-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-primary);
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.calendar-nav-btn:hover:not(:disabled) {
  background-color: var(--green-mint-bg);
  border-color: rgb(var(--color-primary-rgb) / 0.25);
  color: var(--green-forest);
}

.calendar-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-nav-btn svg {
  width: 16px;
  height: 16px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 10px;
  text-align: center;
}

.calendar-weekdays span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-cell {
  height: 42px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-primary);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cal-day-cell.is-empty {
  cursor: default;
  pointer-events: none;
}

.cal-day-cell.is-available {
  background-color: var(--surface-subtle);
  border-color: var(--border-light);
}

.cal-day-cell.is-available:hover {
  background-color: var(--green-mint-bg);
  border-color: rgb(var(--color-primary-rgb) / 0.35);
  color: var(--green-forest);
}

.cal-day-cell.is-selected {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
}

.cal-day-cell.is-disabled {
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.55;
}

.cal-day-cell:focus-visible {
  outline: 2px solid var(--green-emerald);
  outline-offset: 2px;
}

/* Right Column: Slots / Pending Integration */
.booking-slots-col {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  background-color: var(--surface-white);
}

.slots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.slots-selected-date {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

.time-format-toggle {
  display: inline-flex;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.fmt-btn {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--surface-white);
  border: none;
  cursor: pointer;
}

.fmt-btn.is-active {
  background-color: var(--color-primary);
  color: #ffffff;
}

.booking-pending-box {
  border: 1px solid rgb(var(--color-primary-rgb) / 0.22);
  background-color: var(--green-mint-bg);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.pending-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-forest);
}

.pending-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pending-title {
  font-size: 14px;
  font-weight: 600;
}

.pending-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.pending-meta-rows {
  border-top: 1px solid rgb(var(--color-primary-rgb) / 0.14);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pending-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.pending-meta-label {
  color: var(--ink-muted);
}

.pending-meta-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-primary);
  font-weight: 500;
}

.pending-alt-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Band 3: Diagonal Hatch Architectural Strip
   ========================================================================== */
.start-hatch-strip {
  height: 80px;
  width: 100%;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0px,
    transparent 6px,
    rgb(var(--color-primary-rgb) / 0.08) 6px,
    rgb(var(--color-primary-rgb) / 0.08) 7px
  );
}

/* ==========================================================================
   Responsive Breakpoints (Matches Lightdash /start)
   ========================================================================== */
@media (max-width: 1024px) {
  .start-intro {
    padding: 72px 32px 64px;
    min-height: auto;
  }

  .start-corner-mosaic {
    display: none;
  }

  .start-skip-link {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 32px;
  }

  .booking-shell {
    grid-template-columns: 1fr;
  }

  .booking-meta-col,
  .booking-calendar-col {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
}

@media (max-width: 768px) {
  .start-frame {
    border-inline: none;
  }

  .start-intro {
    padding: 64px 16px 48px;
  }

  .start-booking-section {
    padding: 24px 16px;
    min-height: auto;
  }

  .booking-meta-col,
  .booking-calendar-col,
  .booking-slots-col {
    padding: 20px 18px;
  }

  .start-hatch-strip {
    height: 40px;
  }
}

