@import 'variables.css';

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--gradient-background);
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Links */
a {
  color: var(--primary-dark-blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--primary-light-blue);
}

/* Buttons */
.btn,
.submit-button {
  height: 49px;
  background: var(--gradient-button);
  color: var(--text-secondary);
  border: none;
  border-radius: var(--border-radius-full);
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 700;
  font-family: var(--font-primary);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn:hover,
.submit-button:hover {
  background: var(--gradient-button-hover);
}
.btn:disabled,
.submit-button:disabled {
  background: var(--primary-grey);
  cursor: not-allowed;
}

/* Button Loading State */
.button-loading {
  display: none;
  align-items: center;
  gap: 8px;
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

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

.btn-small {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.form-input {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--primary-grey);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 16px;
  transition: border-color 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary-purple);
}

/* Messages */
.error-message {
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
}
.success-message {
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
}

/* Layout */
.app-container {
  display: grid;
  min-height: 100vh;
  grid-template-areas: "sidebar main guide";
  grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
  max-width: 100vw;
  overflow-x: hidden;
}

/* Hide mobile-specific controls by default */
.mobile-menu-button,
.mobile-help-button,
.help-modal,
.mobile-controls {
  display: none;
}

/* Sidebar */
.sidebar {
  grid-area: sidebar;
  background-color: transparent;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  position: fixed;
  width: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  color: var(--text-secondary);
}
.sidebar-header {
  display: flex;
  align-items: center;
}
.sidebar-logo img {
  max-width: 150px;
}
.application-info {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 100%);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.applicant-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}
.applicant-avatar {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}
.applicant-avatar .initials {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-secondary);
}
.applicant-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}
.applicant-email {
  font-size: 0.9rem;
  opacity: 0.8;
}
.course-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}
.course-item .icon {
  width: 16px;
  height: 16px;
  filter: var(--filter-invert-white);
}
.sidebar-menu {
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  display: flex;
}
.sidebar-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.sidebar-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-block;
  padding: var(--spacing-sm) 0;
  transition: all 0.2s;
}
.sidebar-menu a:hover {
  opacity: 0.8;
}
.sidebar-menu a.active {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-arrow-icon {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: middle;
  filter: var(--filter-invert-white);
}

/* Logout Button */
.logout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--spacing-md);
  transition: color 0.2s;
  width: fit-content;
  margin: 0 auto;
  line-height: 1;
}
.logout-button:hover {
  color: var(--primary-light-blue);
}
.logout-button .icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: background-image 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18.36 6.64a9 9 0 1 1-12.73 0'%3E%3C/path%3E%3Cline x1='12' y1='2' x2='12' y2='12'%3E%3C/line%3E%3C/svg%3E");
  position: relative;
  top: 3px;
}
.logout-button:hover .icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232DC5FA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18.36 6.64a9 9 0 1 1-12.73 0'%3E%3C/path%3E%3Cline x1='12' y1='2' x2='12' y2='12'%3E%3C/line%3E%3C/svg%3E");
}

/* Main Content */
.main-content {
  grid-area: main;
  padding: var(--spacing-lg);
  height: 100vh;
  overflow-y: auto;
}
.content-box {
  background-color: var(--box-bg);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  min-height: calc(100vh - 2 * var(--spacing-lg));
}

/* Stepper Component */
.stepper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  gap: 4px;
  min-width: 600px;
}
.progress-path-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: var(--spacing-lg);
}
.progress-path-container::-webkit-scrollbar {
  display: none;
}
.stepper-steps {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  position: relative;
}
.step-item {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 3px;
  background-color: var(--primary-grey);
  z-index: 1;
  transform: translateY(-50%);
}
.step-item.completed:not(:last-child)::after {
  background-color: var(--primary-light-blue);
}
.step-item.current:not(:last-child)::after {
  background: linear-gradient(
    to right,
    var(--primary-light-blue) 50%,
    var(--primary-grey) 50%
  );
}
.step-circle {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--step-border);
  border-radius: var(--border-radius-full);
  background: var(--text-secondary);
}
.step-circle.completed {
  border-color: var(--primary-light-blue);
  background: var(--primary-light-blue);
}
.step-circle.current {
  border-color: var(--primary-light-blue);
  background: var(--text-secondary);
}
.step-circle .check-icon {
  width: 24px;
  height: 24px;
  filter: var(--filter-invert-white);
}
.step-number {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 17px;
  line-height: 140%;
  text-align: center;
  color: var(--step-border);
}
.step-circle.completed .step-number,
.step-circle.current .step-number {
  font-weight: 600;
}
.step-circle.current .step-number {
  color: var(--primary-light-blue);
}
.step-labels {
  display: flex;
  width: 100%;
}
.step-label {
  flex: 1;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 13px;
  line-height: 140%;
  text-align: center;
  color: var(--step-border);
}
.step-label.completed,
.step-circle.completed ~ .step-label {
  color: var(--primary-light-blue);
}
.step-label.current {
  font-weight: 600;
  color: var(--primary-light-blue);
}

/* Login Page */
.login-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}
.login-description {
  color: #666;
  margin-bottom: 1.5rem;
  text-align: center;
}

.centered-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.card-container {
  background: var(--text-secondary);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 400px;
}
.centered-logo {
  display: block;
  width: 126px;
  height: auto;
  margin: 0 auto var(--spacing-xl);
}

/* Utilities */
.w-full { width: 100%; }
.opacity-50 { opacity: 0.5; }

/* Box size utilities */
.box-1-3 {
  flex: 0 1 33.3333%;
  width: 33.3333%;
}
.box-1-2 {
  flex: 0 1 50%;
  width: 50%;
}
.box-1-1 {
  flex: 1 1 100%;
  width: 100%;
}
@media (max-width: 768px) {
  .box-1-3,
  .box-1-2,
  .box-1-1 {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 2048px) {
  .app-container {
    grid-template-areas:
      "sidebar main";
    grid-template-columns: var(--sidebar-width) 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }
  .app-container {
    grid-template-areas:
      "header"
      "main";
    grid-template-columns: 1fr;
  }
  .sidebar {
    grid-area: header;
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 0;
    overflow: visible;
    z-index: 90;
    background: var(--gradient-background);
    padding-bottom: var(--spacing-lg);
  }
  .sidebar-header {
    height: var(--header-height-mobile);
    padding: var(--spacing-md);
    position: relative;
    z-index: 100;
  }
  .sidebar-logo {
    margin: 0;
    flex: 1;
  }
  .sidebar-logo img {
    max-height: 24px;
  }
  .application-info {
    margin: 0px var(--spacing-md)
  }
  .applicant-header {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
  .applicant-avatar {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }
  .applicant-avatar .initials {
    font-size: 16px;
  }
  .applicant-name {
    font-size: 14px;
    text-align: left;
  }
  .course-details {
    gap: 8px;
  }
  .course-item {
    font-size: 13px;
  }
  .sidebar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--gradient-background);
    padding: calc(var(--header-height-mobile) + var(--spacing-xl)) var(--spacing-lg) var(--spacing-lg);
    transition: right 0.3s ease;
    z-index: 80;
    margin-top: 0;
    text-align: left;
  }
  .sidebar.show-menu .sidebar-menu {
    right: 0;
  }
  .mobile-controls {
    display: flex;
    align-items: center;
  }
  .mobile-avatar {
    display: none;
  }
  .mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 100;
  }
  .mobile-menu-button img {
    width: 24px;
    height: 24px;
    filter: var(--filter-invert-white);
  }
  .logout-button {
    margin: var(--spacing-md) auto;
    width: fit-content;
  }
  .sidebar-menu ul {
    text-align: center;
  }
  .sidebar-menu li {
    line-height: 2;
    text-align: center;
  }
  .sidebar-menu a {
    width: fit-content;
    margin: 0 auto;
  }
  .main-content {
    padding: 0;
  }
  .content-box {
    border-radius: 0;
    padding: var(--spacing-md);
    min-height: 100vh;
  }
}

.dp-boxes {
  display: flex;
  gap: 16px;
}

@media (max-width: 768px) {
  .dp-boxes {
    flex-direction: column;
  }
}

/* Resources Section */
.res-section-wrapper {
  margin-top: var(--spacing-lg);
}

.resources-section-wrapper {
  display: flex;
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.resources-section-heading {
  font-size: 18px;
  margin-bottom: var(--spacing-lg);
}

.resources-swiper {
  width: 100%;
  padding: 0 40px;
}

.resources-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.resources-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  width: 100%;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.resources-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resources-icon {
  width: 40px;
  height: 40px;
  filter: var(--filter-ironhack-blue);
}
.resources-title {
  font-size: 16px;
  font-weight: 600;
}

.resources-content {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.resources-link {
  margin-top: auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  font-weight: 600;
}
.resources-link img {
  width: 18px;
  height: 18px;
  filter: var(--filter-ironhack-blue);
}

/* Swiper Navigation Buttons */
.resources-carousel-wrapper {
  position: relative;
  margin-left: 8px;
  margin-right: 8px;
}

.resources-swiper {
  padding: 0;
}

.swiper-button-prev-resources,
.swiper-button-next-resources {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: var(--border-radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: var(--primary-dark-blue);
  transition: all 0.2s ease;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-prev-resources {
  left: -20px;
}

.swiper-button-next-resources {
  right: -20px;
}

.swiper-button-prev-resources:hover,
.swiper-button-next-resources:hover {
  background: var(--primary-light-blue);
  color: var(--text-secondary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.swiper-button-prev-resources:hover img,
.swiper-button-next-resources:hover img {
  filter: var(--filter-invert-white);
}

.swiper-button-prev-resources img,
.swiper-button-next-resources img {
  width: 16px;
  height: 16px;
  filter: var(--filter-ironhack-blue);
  user-select: none;
  pointer-events: none;
}

/* Swiper Pagination */
.resources-swiper .swiper-pagination {
  position: relative;
  margin-top: var(--spacing-lg);
}

.resources-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--primary-grey);
  opacity: 0.5;
  transition: all 0.2s ease;
}

.resources-swiper .swiper-pagination-bullet-active {
  background: var(--primary-light-blue);
  opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .resources-swiper {
    padding: 0 28px;
  }
  
  .swiper-button-prev-resources,
  .swiper-button-next-resources {
    width: 32px;
    height: 32px;
  }
  
  .swiper-button-prev-resources img,
  .swiper-button-next-resources img {
    width: 14px;
    height: 14px;
  }
  
  .swiper-button-prev-resources {
    left: -16px;
  }
  
  .swiper-button-next-resources {
    right: -16px;
  }
}

/* Personal Interview Step Boxes */
.pi-section-wrapper, .ti-section-wrapper, .sa-section-wrapper, .dp-section-wrapper, .bst-section-wrapper, .wait-section-wrapper, .resources-section-wrapper {
  display: flex;
  gap: 24px;
  width: 100%;
}
.pi-details-box, .pi-help-box, .pi-form-box, .ti-box, .sa-box, .dp-box, .bst-box, .wait-box, .gocardless-box, .flywire-box, .resources-box {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.gocardless-box, .flywire-box {
  border: 1px solid var(--primary-grey);
}

@media (max-width: 768px) {
  .pi-section-wrapper, .ti-section-wrapper, .sa-section-wrapper, .dp-section-wrapper, .bst-section-wrapper, .wait-section-wrapper, .resources-section-wrapper {
    flex-direction: column;
    gap: 16px;
  }
}

/* Content Section Font Size */
.content-section {
  font-size: 13px;
}

/* Personal Interview Box Styling */
.pi-help-title, .pi-details-title, .ti-title, .sa-title, .dp-title, .bst-title, .wait-title, .gocardless-title, .flywire-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: var(--text-darker);
}
.pi-help-desc, .pi-details-desc, .ti-desc, .sa-desc, .dp-desc, .bst-desc, .wait-desc, .gocardless-desc, .flywire-desc {
  font-size: inherit;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.pi-help-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.pi-help-list li {
  display: flex;
  align-items: center;
  gap: 0.9em;
  color: var(--text-muted);
  font-size: inherit;
}
.pi-help-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: var(--filter-ironhack-light-blue);
}

.pi-call-window-highlight {
  color: var(--primary-dark-blue);
  font-weight: bold;
}

.pi-scheduled-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1.5em 0 1em 0;
}
.pi-scheduled-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dark);
}
.pi-scheduled-icon {
  width: 22px;
  height: 22px;
  color: var(--primary-dark-blue);
  filter: var(--filter-ironhack-blue);
  flex-shrink: 0;
}
.pi-scheduled-row span {
  font-size: 13px;
  color: var(--text-darker);
  font-weight: 400;
}
.pi-scheduled-disclaimer {
  margin-top: 10px;
}

/* Book an Interview Section */
.pi-book-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 1.5em;
}
.pi-book-cta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0.75em;
  text-align: left;
}

.btn.btn-book-pi, .btn.btn-small.btn-book-pi, .btn.btn-dp, .btn.btn-small.btn-dp, .btn.btn-bst, .btn.btn-small.btn-bst {
  width: 100%;
}
.btn-book-pi .btn-icon-white, .btn-dp .btn-icon-white, .btn-bst .btn-icon-white {
  filter: var(--filter-invert-white);
  width: 22px;
  height: 22px;
  margin-right: 6px;
}

.btn-dp, .btn-bst {
  margin-top: 24px;
}

.ti-congrats-wrapper, .bst-congrats-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 4rem;
  margin-bottom: 4rem;
}
.ti-congrats-title, .bst-congrats-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-darker);
  margin-bottom: 1rem;
}
.ti-congrats-subtitle, .bst-congrats-subtitle {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: var(--primary-light-blue);
  margin-bottom: 1rem;
}
.ti-congrats-info, .bst-congrats-info {
  text-align: center;
  color: var(--text-darker);
  margin: 0 auto;
  font-size: 14px;
}

.sa-iframe {
  width: 100%;
  min-height: 100vh;
  border: none;
}

.fw-logo {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin: 0 auto;
}

.gc-logo {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin: 0 auto;
}

.logo-center {
  width: 100%;
  display: flex;
  justify-content: center;
}
.gc-logo, .fw-logo {
  margin: 0;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Language Selector Styles */
.language-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* Login page: fixed bottom right */
body.centered-container .language-selector-wrapper {
  position: fixed;
  right: 2vw;
  bottom: 2vw;
  z-index: 1000;
  background: var(--white);
  border-radius: var(--border-radius-full);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  padding: 0.5em 1.2em;
  min-width: 120px;
  justify-content: center;
  border: 1px solid var(--input-border);
}

body.centered-container .language-selector-wrapper label {
  font-size: 0.95em;
  color: var(--text-label);
  margin-right: 0.5em;
  font-weight: 500;
}

body.centered-container .language-selector-wrapper select {
  border: none;
  background: transparent;
  font-size: 1em;
  font-weight: 600;
  color: var(--primary-light-blue);
  padding: 0.2em 0.5em;
  border-radius: var(--border-radius-mini);
  outline: none;
  cursor: pointer;
  appearance: none;
}

body.centered-container .language-selector-wrapper select:focus {
  background: var(--input-focus-bg);
}

/* Application sidebar: fit in sidebar above logout */
.sidebar-menu .language-selector-wrapper {
  margin: 1.5em 0 0.5em 0;
  justify-content: center;
  background: var(--white);
  border-radius: var(--border-radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 0.4em 1em;
  border: 1px solid var(--input-border);
}

.sidebar-menu .language-selector-wrapper label {
  font-size: 0.95em;
  color: var(--text-label);
  margin-right: 0.5em;
  font-weight: 500;
}

.sidebar-menu .language-selector-wrapper select {
  border: none;
  background: transparent;
  font-size: 1em;
  font-weight: 600;
  color: var(--primary-light-blue);
  padding: 0.2em 0.5em;
  border-radius: var(--border-radius-mini);
  outline: none;
  cursor: pointer;
  appearance: none;
}

.sidebar-menu .language-selector-wrapper select:focus {
  background: var(--input-focus-bg);
}

@media (max-width: 768px) {
  body.centered-container .language-selector-wrapper {
    right: 4vw;
    bottom: 4vw;
    min-width: 100px;
    padding: 0.4em 0.8em;
  }
  .sidebar-menu .language-selector-wrapper {
    margin: 1em 0 0.5em 0;
    padding: 0.3em 0.7em;
  }
}

.sidebar-bottom-group {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.form-group.turnstile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 2rem;
}

/* Help Widget Styles */
#help-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
}
#help-floating-btn {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-full);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.2s;
}
#help-floating-btn:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}
.help-photo-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
}
.help-photo-small {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
  border: 2px solid var(--input-border-light);
}
.help-status-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: var(--status-online);
  border: 2px solid var(--white);
  border-radius: var(--border-radius-full);
  box-shadow: 0 0 4px var(--status-online);
}
/* Modal Styles */
#help-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  transition: opacity 0.2s;
}
#help-modal.help-modal-hidden {
  display: none !important;
}
.help-modal-content {
  background: var(--box-bg);
  border-radius: var(--border-radius);
  max-width: 95vw;
  width: 370px;
  padding: 32px 20px 20px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.help-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}
.help-photo-wrapper-large {
  position: relative;
  width: 90px;
  height: 90px;
}
.help-photo-large {
  width: 90px;
  height: 90px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.help-status-dot-large {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: var(--status-online);
  border: 3px solid var(--white);
  border-radius: var(--border-radius-full);
  box-shadow: 0 0 6px var(--status-online);
}
.help-modal-message-box {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 18px 14px;
  margin-bottom: 12px;
  width: 100%;
  color: var(--text-dark);
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  text-align: center;
}
.help-modal-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: var(--text-darker);
  text-align: center;
}
#help-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2em;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1;
}
@media (max-width: 600px) {
  #help-widget {
    bottom: 16px;
    right: 16px;
  }
  .help-modal-content {
    width: 98vw;
    max-width: 98vw;
    padding: 18px 4vw 12px 4vw;
  }
  .help-photo-wrapper-large {
    width: 64px;
    height: 64px;
  }
  .help-photo-large {
    width: 64px;
    height: 64px;
  }
  .help-status-dot-large {
    width: 14px;
    height: 14px;
    top: 2px;
    right: 2px;
  }
}
body.help-modal-open {
  overflow: hidden;
}

/* --- Personal Interview Rep/Manager Circles (Icon Alignment & Color Fix) --- */
.pi-reps-container {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.pi-reps-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 10px 0 10px 0;
}

.pi-reps-row > * {
  flex-shrink: 0;
  vertical-align: middle;
}

.pi-rep-avatar,
.pi-rep-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
  display: inline-block;
  position: relative;
  margin-left: -16px;
  z-index: 1;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: var(--avatar-bg);
  border: none;
}

.pi-rep-icon {
  background: var(--white);
  border: 1.5px solid var(--primary-purple);
  object-fit: cover;
  padding: 0;
}

.pi-reps-row > :first-child { margin-left: 0; z-index: 1; }
.pi-reps-row > :nth-child(2) { z-index: 2; }
.pi-reps-row > :nth-child(3) { z-index: 3; }
.pi-reps-row > :nth-child(4) { z-index: 4; }
.pi-reps-row > :nth-child(5) { z-index: 5; }

.pi-rep-manager-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 10px 0;
}

.pi-rep-manager-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10px;
  line-height: 0.7;
  height: 48px;
  align-items: flex-start;
}

.pi-rep-manager-name {
  font-weight: 700;
  font-size: 1.08em;
  color: var(--text-darker);
}

.pi-rep-manager-role {
  font-weight: 600;
  color: var(--primary-dark-blue);
  font-size: 0.98em;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}