/* schedule.css: additions for the schedule picker, skip link, audio message and phone icon.
   Load it after styles.css and preview.css. It does not change any existing rule. */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #071a45;
  color: #ffffff;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
  top: 0;
}

.audio-message {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-left: 4px solid #e0a43a;
  border-radius: 6px;
  background: rgba(224, 164, 58, 0.16);
  font-size: 0.95rem;
}
.audio-message:empty {
  display: none;
}

.whatsapp-contact .icon-phone {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.35em;
  vertical-align: -0.15em;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ---------- Schedule picker ---------- */
.schedule {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
  padding-block: 4rem;
}
.schedule-card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid #d3deef;
  border-radius: 20px;
  background: #ffffff;
  color: #071a45;
  box-shadow: 0 10px 30px rgba(7, 26, 69, 0.08);
}
.schedule-email {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}
.schedule-email input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid #c9d6ee;
  border-radius: 12px;
  font: inherit;
  color: #071a45;
  background: #f7faff;
}
.schedule-email input:focus-visible {
  outline: 3px solid #0b63f6;
  outline-offset: 2px;
}
.schedule-note {
  margin: 0.75rem 0 1rem;
  font-size: 0.92rem;
  color: #46587f;
}

.slot-grid {
  display: grid;
  grid-template-columns: 3.2rem repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}
.slot-group {
  grid-column: span 3;
  padding-bottom: 4px;
  border-bottom: 2px solid #d3deef;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b63f6;
}
.slot-time {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #46587f;
}
.slot-day {
  font-weight: 700;
}
.slot-btn {
  min-height: 44px;
  padding: 0;
  border: 2px solid #c9d6ee;
  border-radius: 10px;
  background: #f3f7fd;
  color: #193762;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.slot-btn:hover:not(:disabled) {
  border-color: #0b63f6;
}
.slot-btn[aria-pressed="true"] {
  background: #0b63f6;
  border-color: #0b63f6;
  color: #fff;
}
.slot-btn.slot-popular { border-color: #a97008; box-shadow: 0 0 0 1px #a97008; }
.slot-btn.slot-popular:not([aria-pressed="true"]) { background: #fff1cc; }
.slot-btn { display: flex; gap: 3px; justify-content: center; align-items: center; }
.slot-check:empty { display: none; }
.slot-count { font-variant-numeric: tabular-nums; }
.schedule-legend { color: #46587f; font-size: .85rem; line-height: 1.5; }
.saved-slots { margin-top: 1.5rem; }
.saved-slots h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.saved-slots ul { padding-left: 1.2rem; line-height: 1.7; }
.schedule-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.schedule-actions .button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.schedule-actions button:disabled { opacity: .55; cursor: default; }
.schedule-clear { background: #edf4ff; border: 1px solid #bdcce1; border-radius: 12px; color: #193762; padding: .85rem; font: inherit; cursor: pointer; }
.slot-btn:focus-visible {
  outline: 3px solid #071a45;
  outline-offset: 2px;
}
.slot-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.schedule-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  font-weight: 600;
}
.schedule-status.success {
  color: #0b7a52;
}
.schedule-status.error {
  color: #b8322a;
}

@media (max-width: 860px) {
  .schedule {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 2.5rem;
  }
}
@media (max-width: 480px) {
  .schedule-card {
    padding: 1rem;
  }
  .slot-grid {
    grid-template-columns: 2.6rem repeat(7, minmax(0, 1fr));
    gap: 4px;
  }
  .slot-time {
    font-size: 0.7rem;
  }
}

/* Compact floating action, leaving room beside it and below the page. */
@media (max-width: 760px) {
  .mobile-join { left: auto; right: 18px; width: calc(50% - 18px); box-sizing: border-box; padding: 8px 10px; gap: 6px; font-size: .8rem; box-shadow: 0 5px 15px rgba(3,30,85,.18); }
  .mobile-join span { font-size: 1rem; }
  body { padding-bottom: 65px; }
  .mobile-join.is-hidden { display: none; }
}

.schedule-note:empty { display: none; }

.slot-group-morning, .slot-group-night { grid-column: span 2; }
.slot-group-afternoon { grid-column: span 3; }
.slot-unavailable { text-align: center; color: #71829d; padding-block: 10px; }
.slot-time { overflow-wrap: normal; line-height: 1.35; }

.schedule-languages {
  grid-column: 4 / span 3;
  grid-row: 4 / span 3;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 6px;
  border-radius: 14px;
  background: linear-gradient(145deg, #062a63, #0b3c78);
  color: #fff;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.schedule-languages-title { display: grid; gap: 2px; margin: 0; font-family: Outfit, sans-serif; line-height: 1.2; font-size: clamp(.82rem, 1.6vw, 1rem); }
.schedule-languages-title strong { color: #42d4dc; font-weight: 700; font-size: 1.15em; }
.schedule-language-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 4px; }
.schedule-language { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.schedule-flag { display: block; width: 30px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.schedule-language-name { font-size: .65rem; font-weight: 600; color: #e2f4ff; }
