/* ========================================
   Source Sans Pro (Self-hosted)
   Weights: 200, 300, 400, 600, 700, 900
   ======================================== */

/* 200 - Extra Light */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 200;
  src: url('../fonts/source-sans-pro/source-sans-pro-latin-200-normal.woff2') format('woff2'),
    url('../fonts/source-sans-pro/source-sans-pro-latin-200-normal.woff') format('woff');
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-display: swap;
  font-weight: 200;
  src: url('../fonts/source-sans-pro/source-sans-pro-latin-200-italic.woff2') format('woff2'),
    url('../fonts/source-sans-pro/source-sans-pro-latin-200-italic.woff') format('woff');
}

/* 300 - Light */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url('../fonts/source-sans-pro/source-sans-pro-latin-300-normal.woff2') format('woff2'),
    url('../fonts/source-sans-pro/source-sans-pro-latin-300-normal.woff') format('woff');
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-display: swap;
  font-weight: 300;
  src: url('../fonts/source-sans-pro/source-sans-pro-latin-300-italic.woff2') format('woff2'),
    url('../fonts/source-sans-pro/source-sans-pro-latin-300-italic.woff') format('woff');
}

/* 400 - Regular */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/source-sans-pro/source-sans-pro-latin-400-normal.woff2') format('woff2'),
    url('../fonts/source-sans-pro/source-sans-pro-latin-400-normal.woff') format('woff');
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/source-sans-pro/source-sans-pro-latin-400-italic.woff2') format('woff2'),
    url('../fonts/source-sans-pro/source-sans-pro-latin-400-italic.woff') format('woff');
}

/* 600 - SemiBold */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('../fonts/source-sans-pro/source-sans-pro-latin-600-normal.woff2') format('woff2'),
    url('../fonts/source-sans-pro/source-sans-pro-latin-600-normal.woff') format('woff');
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url('../fonts/source-sans-pro/source-sans-pro-latin-600-italic.woff2') format('woff2'),
    url('../fonts/source-sans-pro/source-sans-pro-latin-600-italic.woff') format('woff');
}

/* 700 - Bold */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('../fonts/source-sans-pro/source-sans-pro-latin-700-normal.woff2') format('woff2'),
    url('../fonts/source-sans-pro/source-sans-pro-latin-700-normal.woff') format('woff');
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url('../fonts/source-sans-pro/source-sans-pro-latin-700-italic.woff2') format('woff2'),
    url('../fonts/source-sans-pro/source-sans-pro-latin-700-italic.woff') format('woff');
}

/* 900 - Black */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url('../fonts/source-sans-pro/source-sans-pro-latin-900-normal.woff2') format('woff2'),
    url('../fonts/source-sans-pro/source-sans-pro-latin-900-normal.woff') format('woff');
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-display: swap;
  font-weight: 900;
  src: url('../fonts/source-sans-pro/source-sans-pro-latin-900-italic.woff2') format('woff2'),
    url('../fonts/source-sans-pro/source-sans-pro-latin-900-italic.woff') format('woff');
}

/* ========================================
   Source Code Pro (Self-hosted)
   Weights: 400, 600, 700 (variable font)
   ======================================== */

@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('../fonts/source-code-pro/source-code-pro-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================
   Shared Layout — Sidebar + Main
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0 !important;
  padding: 0 !important;
}

.sb-front-page {
  display: flex;
  height: 100vh;
}

.sb-sidebar {
  width: 280px;
  flex-shrink: 0;
  overflow-y: auto;
}

#myForm{
  margin-bottom: 64px;
}

.sb-main {
  flex: 1;
  min-width: 0;
  padding: 24px 24px 32px;
  background-color: #f5f5f7;
  overflow-y: auto;
}

/* Tablet & mobile: sidebar becomes an off-canvas drawer.
   The drawer itself + hamburger + backdrop styles live in sidebar.css. */
@media (max-width: 1024px) {
  .sb-main {
    padding: 72px 20px 32px;
    /* leave room for the fixed hamburger button */
  }
}


/* ========================================
   Global Typography
   ======================================== */
html,
body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  overflow: hidden !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* ========================================
   Shared Page Header
   ======================================== */
.sb-page-header {
  width: 100%;
  margin-bottom: 85px;
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.sb-page-header,
.sb-page-header * {
  box-sizing: border-box;
}

.sb-page-header__title,
.sb-page-header__text,
.sb-page-header__card-title,
.sb-page-header__actions,
.sb-btn {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.sb-page-header__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  width: 100%;
  padding-top: 32px;
  align-items: center;
  justify-items: flex-end;
}

.sb-page-header__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-right: 20px;
  width: 100%;
}

.sb-page-header__content {
  text-align: left;
}

.sb-page-header__title {
  margin: 0 0 16px;
  color: #666666;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.sb-page-header__text {
  margin: 0 0 16px;
  color: #666666;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}

.sb-page-header__text:last-child {
  margin-bottom: 0;
}

.sb-page-header__text--center {
  text-align: center;
}

.jobhelp-bottom-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 24px;
  color: #666666 !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

.jobhelp-bottom-action-btn svg {
  flex-shrink: 0;
  color: #666666;
  transition: color 0.3s;
}

.jobhelp-bottom-action-btn:hover,
.jobhelp-bottom-action-btn:focus {
  background: #fdfdfd;
  border-color: #d0d0d0;
  color: #666666 !important;
}

.jobhelp-bottom-action-btn:hover svg,
.jobhelp-bottom-action-btn:focus svg {
  color: #666666;
}

.sb-page-header__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 32px 32px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
}

.sb-page-header__icon {
  position: absolute;
  top: -32px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  transform: translateX(-50%);
}

.sb-page-header__icon svg {
  flex-shrink: 0;
}

.sb-page-header__card-content {
  width: 100%;
}

.sb-page-header__card-title {
  margin: 0 0 16px;
  color: #666666;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.sb-page-header__actions {
  margin-top: 18px;
  text-align: center;
}

.sb-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #5c9b9e;
  border: none;
  border-radius: 6px;
  color: #ffffff !important;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.sb-btn:hover,
.sb-btn:focus,
.sb-btn:active {
  background: rgb(74, 133, 136);
  color: #ffffff !important;
  text-decoration: none;
}

@media (max-width: 900px) {
  .sb-page-header__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sb-page-header__card{
    margin-top: 32px;
  }

  /* Center the video-guide button under the page header on mobile */
  .sb-page-header__grid>div:has(> .jobhelp-bottom-action-btn.open-video-popup) {
    justify-content: center !important;
    justify-self: stretch !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .sb-page-header__intro {
    padding-right: 0;
  }

  .sb-page-header__card {
    padding: 44px 20px 24px;
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-page-header * {
    transition: none !important;
  }
}

/* ========================================
   Dialog Close Button
   ======================================== */
.dialog-lightbox-close-button,
.dialog-close-button {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
}

.dialog-lightbox-close-button .eicon-close,
.dialog-lightbox-close-button i,
.dialog-close-button .eicon-close,
.dialog-close-button i {
  display: none !important;
  visibility: hidden !important;
  font-size: 0 !important;
}

.dialog-lightbox-close-button::before,
.dialog-lightbox-close-button::after,
.dialog-close-button::before,
.dialog-close-button::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #f5f5f5;
}

.dialog-lightbox-close-button::before,
.dialog-close-button::before {
  transform: rotate(45deg);
}

.dialog-lightbox-close-button::after,
.dialog-close-button::after {
  transform: rotate(-45deg);
}

.dialog-lightbox-close-button:hover::before,
.dialog-lightbox-close-button:hover::after,
.dialog-close-button:hover::before,
.dialog-close-button:hover::after {
  background-color: #ffffff;
}

/* ========================================
   JobHelp Page Header List (shared)
   ======================================== */
.sb-page-header__list {
  margin: 0;
  padding: 0 0 0 20px;
  color: #666666;
  font-size: 17px;
  line-height: 1.6;
}

.sb-page-header__list li:not(:last-child) {
  margin-bottom: 12px;
}

/* ========================================
   STT Mic Button – Connecting Spinner
   ======================================== */
.stt-connecting .stt-spinner {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border: 2px solid #e0e0e0;
  border-top-color: #555;
  border-radius: 50%;
  animation: stt-spin 0.7s linear infinite;
}

.stt-connecting svg,
.stt-connecting .mic-icon {
  display: none !important;
}

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

/* ========================================
   Shared Video Modal
   ======================================== */
.jobhelp-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Inner padding so the modal never touches the viewport edges on short screens */
  padding: 16px;
  box-sizing: border-box;
}

.jobhelp-video-container {
  /* Width is bounded by THREE things — whichever is smallest wins:
   *   1. 80vw  — design preference (overridden to 95vw on small screens below)
   *   2. 1000px — absolute cap
   *   3. what fits vertically: viewport height minus the overlay padding (32px)
   *      and the header (~48px), converted from 16:9 height to width.
   * This third bound is what prevents top/bottom clipping on short laptops. */
  width: min(80vw, 1000px, calc((100vh - 80px) * 16 / 9));
  max-height: calc(100vh - 32px);
  background: transparent;
  display: flex;
  flex-direction: column;
}

.jobhelp-video-header {
  background-color: transparent;
  display: flex;
  justify-content: flex-end;
  padding: 0 0 12px 0;
}

.jobhelp-video-close {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  text-transform: uppercase;
  padding: 4px;
  transition: color 0.3s;
}

.jobhelp-video-close:hover {
  color: #000;
}

.jobhelp-video-body {
  background: #000;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .jobhelp-video-container {
    width: min(95vw, calc((100vh - 80px) * 16 / 9));
  }
}