/* =========================
   Global base styles
   ========================= */

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-size: 16px !important;
}

/* Consistent font sizing */
body, p, span, div, a, li, td {
    font-size: 16px !important;
}

/* Links */
a {
    color: blue !important;
    text-decoration: underline blue !important;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    margin: 0;
}

label { width: 100%; }
.padtop { padding-top: 25px; }

/* =========================
   Print styles
   ========================= */
@media print {
  @page { size: auto; margin: 0; }
  html { zoom: 0.80; }
  #Form1::after { display: none !important; content: none !important; }
}

/* =========================
   SESSION TIMER – FINAL FIX
   ========================= */

/* Remove timer from flex layout completely */
.timer-form-container{
  position: fixed !important;
  top: 12px !important;
  right: 12px !important;

  display: flex !important;
  align-items: center !important;
  gap: 10px !important;

  width: auto !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  z-index: 9999 !important;
}

/* Prevent Safari height stretching */
.timer-form,
.timer-form > div{
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background: transparent !important;
}

/* Timer pill */
.timer-form .lblTimer.timer-form-info{
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;

  padding: 6px 12px !important;

  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;

  box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
}

/* Icon */
.timer-form .timer-info-icon{
  width: 14px !important;
  height: 14px !important;
  opacity: .65 !important;
}

/* Replace long message */
#timerDescription.timer-form-info-text{
  font-size: 0 !important;
  margin: 0 !important;
}
#timerDescription.timer-form-info-text::before{
  content: "Session time remaining";
  font-size: 12px;
  line-height: 1.2;
  color: #374151;
  white-space: nowrap;
}

/* Hide Hide / Back buttons */
.timer-form-container button,
.timer-form-container input[type="button"]{
  display: none !important;
}

/* =========================
   Countdown alignment fix
   ========================= */

/* Catch the countdown text regardless of tag */
.timer-form-container > div:not(.timer-form),
.timer-form-container > span:not(.timer-form),
.timer-form-container > p:not(.timer-form){
  display: inline-flex !important;
  align-items: center !important;

  font-size: 16px !important;
  font-weight: 600 !important;
  color: #2563eb !important;

  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;

  position: relative !important;
  top: -1px !important; /* Safari baseline fix */
}

/* =========================
   Mobile / iPad tuning
   ========================= */
@media (max-width: 768px){
  .timer-form-container{
    top: 10px !important;
    right: 10px !important;
    gap: 6px !important;
  }

  .timer-form .lblTimer.timer-form-info{
    padding: 6px 10px !important;
  }
}
