html {
  font-size: 14px;
  scroll-behavior: smooth;
}

/* Print header - hidden on screen (shown via print.css @media print) */
.print-header {
  display: none;
}

/* Global Typography Standards */
body {
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--brand-black-500);
  line-height: 1.6;
}

main {
  background-color: white;
}

section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  padding-left: 0;
  padding-right: 0;
}

section#hero {
  padding: 0;
}

a {
  text-decoration: none;
}

ul.not-bulleted {
  list-style: none;
}

a[href^="tel"],
a[href^="mailto"] {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
}

/* Make all text-primary links bold */
a.text-primary {
  font-weight: 700;
}

/* Form Submit Button Styles */
.form-submit-btn {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  color: white;
  transition: all 0.3s ease;
}

.form-submit-btn:hover:not(:disabled) {
  background-color: var(--theme-primary-dark);
  border-color: var(--theme-primary-dark);
  color: white;
}

.form-submit-btn:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  opacity: 0.65;
  cursor: not-allowed;
}

.form-submit-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.5);
}

.nav .brand,
.nav a {
  color: whitesmoke !important;
}

.rounded-button {
  border-radius: 1.6rem !important;
}

.min-vh-25 {
  min-height: 25vh;
}

.min-vh-33 {
  min-height: 33vh;
}

.min-vh-50 {
  min-height: 50vh;
}

.min-vh-75 {
  min-height: 75vh;
}

.card {
  border-radius: 1.6rem;
  border: #d8d8d8 solid 1px;
  box-shadow: unset;
}

/* START OF - ACCORDION CSS OVERRIDES */

.accordion button h2 {
  margin: 0;
  padding: 2rem;
}

.accordion-item:first-of-type {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.accordion-item {
  background: none;
  border: none;
}

.accordion-button:not(.collapsed) {
  color: black;
  background: none;
  box-shadow: none;
  border-bottom: 2px solid white;
  font-size: large;
  text-align: left;
  font-weight: bold;
}

.accordion button {
  background: none;
  border: none;
  border-bottom: 2px solid white;
  text-align: left;
  font-size: large;
  font-weight: bold;
}

.accordion-body {
  padding: 3rem;
}

.accordion-button:focus {
  border: none;
  box-shadow: none;
}

/* END OF - ACCORDION CSS OVERRIDES */

.border-primary {
  border-color: var(--theme-primary) !important;
}

.submit-form {
  background-color: #ededed;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  width: 100%;
  height: 100%;
}

/* START - HERO SECTION STYLES */

#hero-content {
  color: white;
  padding: 10rem 5rem;
  max-width: 1680px;
  margin: 0 auto;
  justify-content: center;
  align-items: flex-start;
}

.centered-overlay {
  min-width: 300px;
  text-align: center;
}

.grad-img {
  float: right;
  width: 100%;
}

.force-break {
  white-space: pre-wrap;
}

.force-break::after {
  content: "";
}

/* END - HERO SECTION STYLES */

/* Hero section with conference branding */
.hero-section {
  background: linear-gradient(135deg, var(--brand-blue-600) 0%, var(--brand-purple-500) 100%);
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  padding: 2rem 0 4rem 0;
  height: 275px;
}

.footer-overlay {
  padding-top: 2rem;
  max-width: 500px;
}

.summit-logo-footer {
  max-height: 72px;
}

.icon-spacing {
  margin-right: 2.5rem;
  line-height: 1.6;
}

.hr-thin {
  height: 0.1rem;
}

.footer-button {
  background-color: whitesmoke;
  color: var(--theme-primary) !important;
  height: 75px;
  max-width: 250px;
}

.message-button {
  background: white;
  width: 90%;
}

.footer-text {
  font-size: 1.3rem;
}

/* Custom 5-column footer layout */
.footer-five-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-col {
  flex: 1 1 100%;
  text-align: center;
}

/* Tablet - 2 columns */
@media (min-width: 768px) {
  .footer-col {
    flex: 0 0 48%;
    text-align: left;
  }
}

/* Desktop - 5 columns */
@media (min-width: 1200px) {
  .footer-col {
    flex: 0 0 19%;
    text-align: left;
  }
}

.footer-icon {
  font-size: 3rem;
}

.contact-button-text {
  font-size: 2.5rem;
  font-weight: 300;
}

/* Extended margin and padding utilities */
.m-6 { margin: 4rem; }
.m-7 { margin: 5rem; }
.m-8 { margin: 6rem; }
.m-9 { margin: 7rem; }
.m-10 { margin: 8rem; }

.mt-6 { margin-top: 4rem; }
.mt-7 { margin-top: 5rem; }
.mt-8 { margin-top: 6rem; }
.mt-9 { margin-top: 7rem; }
.mt-10 { margin-top: 8rem; }

.mb-6 { margin-bottom: 4rem; }
.mb-7 { margin-bottom: 5rem; }
.mb-8 { margin-bottom: 6rem; }
.mb-9 { margin-bottom: 7rem; }
.mb-10 { margin-bottom: 8rem; }

.my-6 { margin-top: 4rem; margin-bottom: 4rem; }
.my-7 { margin-top: 5rem; margin-bottom: 5rem; }
.my-8 { margin-top: 6rem; margin-bottom: 6rem; }
.my-9 { margin-top: 7rem; margin-bottom: 7rem; }
.my-10 { margin-top: 8rem; margin-bottom: 8rem; }

.py-6 { padding-top: 4rem; padding-bottom: 4rem; }
.py-7 { padding-top: 5rem; padding-bottom: 5rem; }
.py-8 { padding-top: 6rem; padding-bottom: 6rem; }
.py-9 { padding-top: 7rem; padding-bottom: 7rem; }
.py-10 { padding-top: 8rem; padding-bottom: 8rem; }

.px-6 { padding-left: 4rem; padding-right: 4rem; }
.px-7 { padding-left: 5rem; padding-right: 5rem; }
.px-8 { padding-left: 6rem; padding-right: 6rem; }
.px-9 { padding-left: 7rem; padding-right: 7rem; }
.px-10 { padding-left: 8rem; padding-right: 8rem; }

.p-6 { padding: 4rem; }
.p-7 { padding: 5rem; }
.p-8 { padding: 6rem; }
.p-9 { padding: 7rem; }
.p-10 { padding: 8rem; }

.ps-6 { padding-left: 4.5rem; }
.ps-7 { padding-left: 6rem; }
.ps-8 { padding-left: 7.5rem; }
.ps-9 { padding-left: 9rem; }
.ps-10 { padding-left: 12rem; }

.pe-6 { padding-right: 4.5rem; }
.pe-7 { padding-right: 6rem; }
.pe-8 { padding-right: 7.5rem; }
.pe-9 { padding-right: 9rem; }
.pe-10 { padding-right: 12rem; }

.rounded-default {
  border-radius: 1rem !important;
}

/* Container wide */
.container-wide {
  margin: 0 auto;
  max-width: 1600px;
  padding: 0 calc(var(--grid-gutter) / 2);
  width: 96%;
}

.custom-error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  color: #842029;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 16px;
}

.custom-error-message strong {
  font-weight: bold;
}

.cta-caption {
  font-weight: 200;
  max-width: 650px;
}

/* REUSABLE CARD STYLES */

.stat-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.stat-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  flex: 1 1 250px;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.stat-card-header {
  height: 130px;
  max-height: 150px;
  padding: 1.5rem;
  width: 100%;
}

.stat-card-body {
  padding: 2rem;
  width: 100%;
}

.stat-card-footer {
  padding: 2rem;
  width: 100%;
}

.stat-value {
  font-size: 6.5rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 2rem;
  color: #666;
  text-align: center;
}

/* Apply on hover */
.stat-card:hover {
  animation: wiggle-scale 0.4s ease-in-out;
  transform-origin: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/* REUSABLE IMAGE SCALING */
.img-size-100 { max-width: 100px; }
.img-size-200 { max-width: 200px; }
.img-size-300 { max-width: 300px; }
.img-size-400 { max-width: 400px; }

/* MEDIA QUERIES FOR SCALING */

@media (min-width: 768px) {
  .force-break span:nth-of-type(1)::after {
    content: "\A";
  }

  .force-break span:nth-of-type(2)::after {
    content: "\A";
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 16px;
  }

  .stat-card {
    flex: none;
    width: 100%;
  }

  .footer-container {
    height: auto;
  }

  .footer-container h2 {
    width: 100%;
  }

  .d-grid[style] {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 1rem !important;
  }
}

@media (min-width: 900px) {
  .justify-content-start-md {
    justify-content: start !important;
  }

  .slim-ul {
    max-width: 375px;
  }

  .text-left-md {
    text-align: left !important;
  }
}

@media (min-width: 1220px) {
  .footer-overlay {
    max-width: unset;
  }
}

/* Back to Top Button - positioned to the left of chat FAB */
.back-to-top {
    display: none;
    position: fixed !important;
    bottom: 30px;
    right: 90px; /* 30px + 50px chat FAB + 10px gap */
    width: 50px;
    height: 50px;
    background-color: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1039; /* Below chat FAB (1040) */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    transform: none !important;
    will-change: opacity;
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.back-to-top:not([style*="display: none"]) {
    display: flex !important;
}

/* Hide back-to-top when chat window is open */
body:has(.chat-window.is-open) .back-to-top {
    display: none !important;
}

.back-to-top:hover {
    background-color: var(--theme-primary-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top:active {
    opacity: 0.9;
}

.back-to-top:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

.back-to-top-arrow {
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
}

/* Mobile specific styling - keep horizontal alignment with chat FAB */
@media (max-width: 767px) {
    .back-to-top {
        position: fixed !important;
        bottom: 30px !important;
        right: 85px !important; /* 30px + 45px chat FAB + 10px gap */
        width: 45px;
        height: 45px;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .back-to-top-arrow {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        position: fixed !important;
        bottom: 20px !important;
        right: 70px !important; /* 20px + 40px chat FAB + 10px gap */
        width: 40px;
        height: 40px;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .back-to-top-arrow {
        font-size: 18px;
    }
}

/* Hide reCAPTCHA badge - compliant with Google's terms when privacy policy links are visible */
.grecaptcha-badge {
    visibility: hidden;
}

/* ============================================
   Accessibility - Skip Navigation Link
   ============================================ */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--theme-primary, #007FFF);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-family: var(--font-heading, 'Josefin Sans', sans-serif);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ============================================
   Accessibility - Button Focus States
   ============================================ */
.btn-devent:focus,
.btn-devent:focus-visible {
    outline: 2px solid var(--theme-primary, #007FFF);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 127, 255, 0.25);
}

.btn-devent-primary:focus,
.btn-devent-primary:focus-visible {
    outline-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.btn-devent-white:focus,
.btn-devent-white:focus-visible {
    outline-color: var(--theme-primary, #007FFF);
}

.btn-devent-outline:focus,
.btn-devent-outline:focus-visible {
    outline-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

/* ============================================
   Session Star Button (Personal Agenda)
   ============================================ */
.star-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.star-btn i {
    font-size: 1.25rem;
    color: var(--theme-primary, #0d6efd);
    transition: all 0.2s ease;
}

.star-btn:hover:not(:disabled) {
    transform: scale(1.1);
}

.star-btn:hover:not(:disabled) i {
    color: var(--theme-primary-dark, #0a58ca);
}

.star-btn.starred i {
    font-weight: 900;
    color: var(--theme-primary, #0d6efd);
}

.star-btn.starred:hover:not(:disabled) i {
    color: var(--theme-primary-dark, #0a58ca);
}

.star-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.star-btn:disabled i {
    color: #aaa;
}

.star-btn:focus {
    outline: 2px solid var(--theme-primary, #0d6efd);
    outline-offset: 2px;
}

/* Star button in list views (inline) */
.star-btn-inline,
.star-btn-list {
    position: relative;
    top: auto;
    right: auto;
    flex-shrink: 0;
}

/* Session card needs relative positioning for star button */
.session-card {
    position: relative;
}

/* ============================================
   Site Modal - Centralized Modal Styles
   ============================================ */

/* Modal content container */
.site-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Modal header with gradient background */
.site-modal .modal-header {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
}

.site-modal .modal-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
}

/* White close button */
.site-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.site-modal .modal-header .btn-close:hover {
    opacity: 1;
}

/* Modal body */
.site-modal .modal-body {
    padding: 1.5rem;
}

/* Modal footer */
.site-modal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

/* Loading state inside modals */
.site-modal .modal-loading {
    text-align: center;
    padding: 2rem 0;
}

/* Metadata row pattern for modals */
.site-modal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.site-modal-meta-item {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.site-modal-meta-item i {
    color: var(--theme-primary);
    margin-right: 0.5rem;
}

/* Site Modal in Admin context - override admin background */
.admin-container .site-modal .modal-content {
    background: #fff;
}

/* ============================================
   SignalR Reconnect Prompt
   ============================================ */
.signalr-reconnect-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.signalr-reconnect-prompt .reconnect-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.signalr-reconnect-prompt i {
    font-size: 1.1rem;
}

.signalr-reconnect-prompt button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.signalr-reconnect-prompt button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .site-modal .modal-header {
        padding: 1rem;
    }

    .site-modal .modal-body {
        padding: 1rem;
    }

    .site-modal .modal-footer {
        padding: 0.75rem 1rem;
    }

    .site-modal-meta-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================================
   Site Search Controls (matches admin search styling)
   ============================================================ */
.site-search-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-search-group {
    display: flex;
    flex: 1;
    min-width: 250px;
}

.site-search-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    padding: 0.375rem 0.75rem 0.375rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    height: auto;
}

.site-search-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: nowrap;
}

.site-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.site-filter-group .filter-label {
    font-weight: 600;
    color: var(--theme-dark);
    font-size: 0.875rem;
}

.site-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    background: #e9ecef;
    border: none;
    font-size: 0.8125rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.site-filter-toggle:hover {
    background: #dee2e6;
}

.site-filter-toggle.active {
    background: var(--theme-primary);
    color: #fff;
}

.site-filter-toggle input[type="checkbox"] {
    display: none;
}

/* Responsive */
@media (max-width: 767.98px) {
    .site-search-controls {
        flex-direction: column;
    }

    .site-search-group {
        width: 100%;
    }

    .site-filter-group {
        width: 100%;
        justify-content: flex-start;
    }
}
