@import url("https://use.typekit.net/xjd4avb.css");

/* Variables */
:root {
    --primary-color: #3eb9bc;
    --primary-color-rgb: 62, 185, 188; /* RGB values for #3eb9bc */
    --selection-color: #b2e3e4;
    --modal-color-rgb: 179, 234, 235; /* RGB values for modal background */
    --gray-color: #CCCCCC;
    --active-color: #4CAF50;
    --text-color: #0E0B43;
    --text-color2: #555371;
    --border-color: #aaaaaa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "oxygen", sans-serif;
    font-weight: 400;
    font-style: normal;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #f5f5f5;
}

.app-wrapper {
    width: 1366px;
    height: 1024px;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
}

.main-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    color: var(--text-color);
    flex-direction: column;
    box-sizing: border-box;
    background-image: url('../images/background.jpg');
    background-size: 100% auto;
    background-position: bottom;
    background-repeat: no-repeat;
}

.top-menu {
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 50px;
    padding-left: 35px;
    color: var(--text-color2);
    display: flex;
    align-items: center;
    z-index: 9999;
    pointer-events: none; /* Allow clicks to pass through the top-menu container */
}

.top-menu::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('../images/icon-home.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    cursor: pointer;
    pointer-events: auto;
}

.top-menu .pipe {
    color: var(--text-color2);
    margin: 0 20px;
}

/* Breadcrumb item container for animations */
.breadcrumb-item {
    display: inline-flex;
    position: relative;
    will-change: transform, opacity;
    align-items: center;
    pointer-events: auto;
}

.breadcrumb-link {
    color: var(--text-color2);
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

.breadcrumb-link:hover {
    color: var(--text-color2);
    text-decoration: none;
}

.bottom-menu {
    position: absolute;
    bottom: 0px;
    height: 45px;
    width: 100%;
    color: var(--text-color2);
    display: flex;
    align-items: center;
    background-image: url('../images/bottom-bar.png');  
    background-size: 100% auto;
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: 9999;
}

.bottom-menu ul {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.bottom-menu ul li {
    list-style: none;
    height: 100%;
    margin-left: 20px;
}

.bottom-menu ul li:last-child {
    margin-right: 30px;
}

.bottom-menu ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 30px;
    background: linear-gradient(to bottom, #004489, #006aa3);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 200ms ease, opacity 200ms ease;
    will-change: transform, opacity;
}

/* Disabled state for bottom menu buttons (e.g., when postcall view is active) */
.bottom-menu ul li a.is-disabled {
    opacity: 0.55;
    pointer-events: none; /* Prevent clicks */
    filter: grayscale(15%);
    cursor: default;
    box-shadow: none;
}

/* Hidden state for bottom menu buttons (completely remove from view) */
.bottom-menu ul li a.is-hidden {
    display: none !important;
}

/* Slide animations for bottom menu buttons */
.bottom-menu ul li a.is-exiting {
    transform: translateY(100%);
    opacity: 0;
}

.bottom-menu ul li a.prepare-enter {
    transform: translateY(100%);
    opacity: 0;
}

.bottom-menu ul li a.is-entering {
    transform: translateY(0%);
    opacity: 1;
}

.contact-selector-panel {
    display: block;
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 8px;
    width: 370px;
    height: 310px;
    left: 40px;
    top: 50%;
    padding: 20px;
}

.contact-selector-panel .instruction {
    margin-top: 10px;
    color: white;
    font-size: 13px;
    line-height: 150%;
}

.contact-selector-panel .instruction a {
    color: white;
}

.contact-selector-container {
    width: 100%;
}

.contact-selector-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
    background-image: url('../images/icon-contact.svg');
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: right center;
}

.container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    height: calc(100vh - 40px); /* Full height minus padding */
}

.section-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #666;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--gray-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-name {
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.1em;
    line-height: 120%;
}

.contact-details {
    color: var(--text-color2);
    font-size: 0.95em;
    line-height: 150%;
}

.change-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    text-decoration: underline;
}

.notes-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.notes-area textarea {
    flex-grow: 1;
    border: 1px solid var(--gray-color);
    border-radius: 8px;
    padding: 15px;
    font-size: 1em;
    resize: none;
    margin-bottom: 80px; /* Space for bottom buttons */
}

.left-panel {
    display: flex;
    flex-direction: column;
}

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.columns-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.column-header {
    font-size: 1.2em;
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
    text-align: left;
}

.buttons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.toggle-button {
    background: #fff;
    /* border: 1px solid var(--gray-color); */
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    font-size: 1em;
    position: relative;
    width: 100%;
    text-align: left;
    display: block;
    transition: all 0.3s ease;
}

.toggle-button.active {
    background: #e8f5e9;
    border-color: var(--primary-color);
    color: var(--active-color);
    font-weight: bold;
}

.toggle-button.active::after {
    content: "✓";
    position: absolute;
    right: 15px;
    color: var(--active-color);
}

.bottom-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    max-width: 1326px; /* 1366px - 40px padding */
    margin: 0 auto;
}

.bottom-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 40px;
    cursor: pointer;
    font-size: 1em;
}

/* Select2 customizations */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--default .select2-selection--single {
    height: 38px;
    padding: 5px;
}

/* Select2 Styles */
.select2-result-contact {
    padding: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.select2-result-contact .contact-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 2px;
}

.select2-result-contact .contact-specialty {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 2px;
}

.select2-result-contact .contact-organization {
    font-size: 0.9em;
    color: #666;
}

/* Style the selection container */
.select2-container--default .select2-selection--multiple {
    border-radius: 4px;
    border: 0 !important;
    min-height: 40px;
    padding: 4px;
}

/* Style the search input */
.select2-container--default .select2-search--inline .select2-search__field {
    margin-top: 6px;
    padding: 0;
}

/* Style selected tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: block;
    background-color: var(--gray-color);
    border: none;
    border-radius: 4px;
    color: var(--text-color);
    padding: 0 10px;
    margin: 0;
    font-weight: 400;
}

/* Style remove tag button */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin: 0;
    border-right: 1px solid #fff;
    padding: 0;
    background-image: url('../images/icon-close.svg');
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: center center;
    width: 32px;
    height: 32px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove span {
    display: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 30px;
    padding-right: 2px;
}

.select2-container.select2-container--default.select2-container--open {
    left: auto !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--selection-color);
    color: var(--text-color);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable:hover {
    background-color: var(--selection-color);
    color: var(--text-color);
}

/* Style the dropdown */
.select2-dropdown {
    border: 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 310px;
}

/* Style the search box */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--gray-color);
    border-radius: 4px;
    padding: 8px;
    font-size: 100%;
}

.select2-container .select2-dropdown {
    margin-top: 8px;
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Highlight matched text */
.select2-results__option mark {
    background-color: #ffeb3b;
    padding: 0;
}

.select2-results__option {
    padding: 10px;
}

/* Hide clear button from search box */
.select2-container--default .select2-selection--multiple .select2-selection__clear {
    display: none;
}

.select2-container .select2-search--inline .select2-search__field {
    box-sizing: border-box;
    border: none;
    font-size: 100%;
    margin: 0;
    padding: 0;
    max-width: 100%;
    resize: none;
    height: 32px;
    vertical-align: top;
    font-family: "oxygen", sans-serif;
    line-height: 32px;
    padding-left: 10px;
}


/* Offline mode */
.select2-container.offline-mode {
    opacity: 0.8;
}

.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    z-index: 9990;
    pointer-events: none;
    visibility: hidden;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--modal-color-rgb), 0.8);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    visibility: visible;
    pointer-events: auto;
}

.modal.active .modal-overlay {
    opacity: 1;
}

.modal.active .modal-content {
    opacity: 1;
    /* Removed transform to let GSAP handle animations */
}

.modal-content {
    background: white;
    color: var(--text-color);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    opacity: 0;
    /* Removed transform and transition to let GSAP handle animations */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5em;
}

.close-button {
    position: relative;
    top: -45px;
    right: -80px;
    z-index: 1000;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.close-button .close-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.close-button:hover .close-icon {
    transform: scale(1.1);
}

#progressBar {
    background: var(--primary-color);
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

#statusText {
    margin-bottom: 15px;
    line-height: 1.4;
    width: 90%;
    max-width: 600px;
}

/* Sync Popup */
.sync-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sync-popup-content {
    position: relative;
    background-color: #fff;
    max-width: 500px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sync-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sync-header h2 {
    margin: 0;
    font-size: 24px;
}

.progress-container {
    background-color: #ccc;
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
}

.progress-bar {
    position: relative;
    background-color: #eee;
    height: 10px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    border-radius: 6px;
    transition: width 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
}

.status-text {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* Add border to Sync popup while preserving its original size and padding */
#syncPopupModal .modal-content {
    padding: 30px;
    width: 600px;
    height: 250px;
    display: flex;
    flex-direction: column;
}

/* Make body fill remaining space and keep actions at the bottom */
#syncPopupModal .modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: auto !important;
}

#syncPopupModal .modal-actions {
    margin-top: auto;
}

/* Content Popup Styles */
.content-modal .modal-content {
    max-width: 90%;
    width: 90%;
    height: 90%;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid #cccbd3;
    position: relative;
}

.content-modal .close-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 0px;
    right: -35px;
    z-index: 10;
}

.content-modal .modal-body {
    flex: 1;
    padding: 0;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.content-modal #contentContainer {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    padding: 20px;
}

/* Video popup specific styles */
.content-modal.video #contentContainer {
    padding: 0;
}

.content-modal.video .modal-content {
    max-height: 690px;
}

.content-modal .content-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.content-modal .spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #0066cc;
    animation: spinner-rotate 1s linear infinite;
}

@keyframes spinner-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.content-modal .popup-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    font-size: 20px;
    line-height: 1.4;
    color: #555371;
    height: 100%;
    max-height: 100%;
    overflow-y: auto; 
}

/* When popup has main-column and side-column, switch to horizontal layout */
.content-modal .popup-content:has(.main-column, .side-column) {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 100px;
}

/* Add pointer cursor to all elements with data-popup-id */
[data-popup-id] {
    cursor: pointer;
}

/* Contact selector in postcall popup */
.popup-content .contact-selector-wrapper {
    margin-bottom: 20px;
    width: 100%;
}

.popup-content .contact-selector-container {
    max-width: 100%;
    width: 100%;
}

.popup-content .select2-container {
    width: 100% !important;
}

.popup-content .instruction {
    font-size: 14px;
    margin-top: 8px;
    color: var(--text-color2);
}

.popup-content.video-popup {
    padding: 0;
}

.video-container {
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player {
    width: 100%;
    object-fit: contain;
}

.popup-content .main-column {
    flex: 1;
    max-width: 60%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* height: 100%; */
    gap: 30px;
}

.popup-content:not(.no-scroll) .main-column > *:last-child {
    padding-bottom: 30px;
}

.popup-content .main-column h1 {
    font-size: 56px;
    margin-top: 0;
    color: var(--text-color);
    padding-left: 30px;
    line-height: 1.1;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 30px;
}

.popup-content .side-column {
    flex: 0 0 calc(40% - 50px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px;
    padding: 0;
}

.popup-content .feature-item {
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup-content .feature-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

/* Column division centered between columns */
.popup-content .main-column::after {
    content: '';
    position: absolute;
    top: 0;
    right: -50px; /* Half of the 100px gap */
    height: 100%;
    width: 1px;
    background-color: var(--primary-color);
}

/* Popup content typography */
.popup-content h1 {
    font-size: 28px;
    margin-top: 0;
    color: var(--primary-color);
}

.popup-content h2 {
    font-size: 24px;
    color: var(--text-color);
}

.popup-content h3 {
    font-size: 21px;
    color: var(--text-color);
}
    

/* Content sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* iPad Pro optimization */
@media (min-width: 1024px) {
    .container {
        grid-template-columns: 1fr 2fr;
    }
}

/* Tooltip styles */
.tooltip-trigger {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border: 1px solid #3eb9bc;
    border-radius: 50%;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.tooltip-trigger:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #3eb9bc;
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(62, 185, 188, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(62, 185, 188, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(62, 185, 188, 0);
    }
}

.tooltip-popover {
    position: absolute;
    background: white;
    border: 1px solid #bbbbbb;
    border-radius: 8px;
    padding: 25px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 18px;
    color: #555371;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    text-align: center;
    line-height: 150%;
    height: fit-content;
    min-height: 80px;
}

.tooltip-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    color: #3eb9bc;
}

.tooltip-content {
    margin: 0;
}

.tooltip-popover.show {
    opacity: 1;
    visibility: visible;
}

/* Position classes are now handled by JavaScript */

.tooltip-popover::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    transform: rotate(45deg);
    z-index: -1;
}

.tooltip-popover.position-top::after {
    bottom: -8px;
    left: 50%;
    margin-left: -7px;
    border: 1px solid #bbbbbb;
    border-top: none;
    border-left: none;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
}

.tooltip-popover.position-bottom::after {
    top: -8px;
    left: 50%;
    margin-left: -7px;
    border: 1px solid #bbbbbb;
    border-bottom: none;
    border-right: none;
    box-shadow: -4px -4px 15px rgba(0, 0, 0, 0.15);
}

.magnus-plus {
    position: absolute;
    width: 600px;
    height: 800px;
    top: 100px;
    left: 420px;
    background-image: url('../images/magnus-plus.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.milestone-logo {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 210px;
    height: 70px;
    background-image: url('../images/logo-milestone.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.text-container {
    position: absolute;
    top: 150px;
    left: 900px;
}

.text-container h1 {
    font-size: 5em;
    line-height: 100%;
    margin-bottom: 30px;
}

.text-container h2 {
    font-size: 1.8em;
    line-height: 130%;
    font-weight: 600;
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 30px;
}

.button-container {
    position: absolute;
    top: 670px;
    left: 900px;
    text-align: center;
}

.button-container p {
    color: var(--text-color2);
    margin-bottom: 5px;
}

.button-container .button {
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    padding: 8px 60px 8px 30px;
    cursor: pointer;
    font-size: 1.2em;
    background-image: url('../images/icon-arrow-right.svg');
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center;
    background-size: 25px;
    text-align: left;
}

.button-container .button:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

#view-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#view-container .content-view {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

/* Content Menu */
.content-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-menu li {
    border-bottom: 1px solid var(--primary-color);
    position: relative;
    display: flex;
    align-items: center;
    font-family: "oxygen", sans-serif;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px 10px 10px 0; /* Default padding for all li elements */
}

.content-menu li:first-child {
    border-top: 1px solid var(--primary-color);
}

.content-menu li a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
    width: 100%;
    padding: 10px 10px 10px 0; /* Same padding as li */
    margin: -10px -10px -10px 0; /* Negative margin to counteract li padding */
    box-sizing: border-box;
}

.content-menu li a:hover {
    background-color: rgba(62, 185, 188, 0.1);
}

.content-menu .icon {
    width: 62px;
    height: 62px;
    margin-right: 20px;
    margin-left: 10px;
    object-fit: contain;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.content-menu .label {
    font-size: 26px;
    line-height: 1.2; /* Better line spacing for multi-line text */
}

/* Helper classes */
.popup-content.no-scroll {
    overflow: hidden;
}

.no-scroll {
    overflow: hidden;
}

.side-column.align-top {
    justify-content: flex-start;
}

/* Tracker Panel - Horizontal version of partner-panel */
.tracker-panel {
    position: relative;
    width: 100%;
    height: 150px;
    border: 1px solid #cccbd3;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.tracker-panel:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tracker-panel .img-container {
    height: 120px;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.tracker-panel img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.tracker-panel .title-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.tracker-panel h3 {
    color: var(--text-color);
    margin: 0;
    font-family: 'Oxygen', sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 24px;
}

.tracker-panel .panel-button {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    background-image: url('../images/icon-arrow-right.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

.tracker-panel .panel-button:hover {
    background-color: rgba(var(--primary-color-rgb), 0.8);
    box-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.5);
}

.width-100 {
    width: 100%;
}

.width-90 {
    width: 90%;
}

.width-80 {
    width: 80%;
}

.width-70 {
    width: 70%;
}

.width-60 {
    width: 60%;
}

.width-50 {
    width: 50%;
}

.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.all-caps {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature list with divider lines */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    position: relative;
}

.feature-list li:not(:last-child) {
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 1);
}

/* Check list with checkmarks */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.check-list li {
    position: relative;
    padding: 8px 0 8px 40px; /* Increased left padding from 30px to 40px */
}

.check-list li:not(:last-child) {
    border-bottom: 1px solid var(--primary-color);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px; /* Align with top of text instead of center */
    width: 8px; /* Increased from 6px */
    height: 16px; /* Increased from 12px */
    border: solid var(--primary-color);
    border-width: 0 3px 3px 0; /* Thicker border for more visible checkmark */
    transform: rotate(45deg); /* Removed translateY since we're using fixed top position */
}

/* Numbered bullet list with headers */
.bullet-list {
    counter-reset: bullet-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bullet-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.bullet-item:last-child {
    margin-bottom: 0;
}

.bullet-item::before {
    content: counter(bullet-counter);
    counter-increment: bullet-counter;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 20px;
}

.bullet-header {
    font-weight: 700;
    color: var(--text-color2);
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--primary-color);
}

.bullet-item p {
    margin-top: 0;
}

.spacing-xs {
    margin-bottom: 10px;
}

.spacing-sm {
    margin-bottom: 20px;
}

.spacing-md {
    margin-bottom: 40px;
}

.spacing-lg {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.small-text {
    font-size: 70%;
}

.primary-color {
    color: var(--primary-color);
}

/* Button container and toggle buttons */
.btn-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-container.compressed {
    gap: 10px;
}

.btn-request-quote,
.btn-more-info {
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-request-quote::before,
.btn-more-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: opacity 0.3s ease;
    z-index: -1;
    opacity: 0;
}

.btn-request-quote:hover::before,
.btn-more-info:hover::before {
    opacity: 0.3;
}

.btn-request-quote.active,
.btn-more-info.active {
    background-color: var(--primary-color);
    color: white;
    padding-right: 40px;
}

.btn-video,
.btn-download,
.button-large,
.button-small {
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    outline: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-video:after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    background-image: url('../images/icon-play.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-download:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0;
    background-image: url('../images/icon-download.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-video:hover,
.btn-download:hover,
.button-large:hover,
.button-small:hover {
    background-color: rgba(var(--primary-color-rgb), 0.8);
}

/* Button with arrow that animates on hover */
.with-arrow::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    background-image: url('../images/icon-arrow-right.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.with-arrow:hover::after {
    transform: translateX(5px);
}

/* Button size variations */
.button-large {
    padding: 12px 20px;
    font-size: 20px;
}

.btn-request-quote.active::after,
.btn-more-info.active::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    animation: checkmark-appear 0.3s forwards ease-out;
}

/* Special class for buttons that need to show checkmark instantly without animation */
.btn-request-quote.instant-checkmark.active::after,
.btn-more-info.instant-checkmark.active::after {
    animation: none !important;
    transform: rotate(45deg) scale(1) !important;
    opacity: 1 !important;
    transition: none !important;
}

/* Disable animations for buttons with no-animation class */
.btn-request-quote.no-animation,
.btn-more-info.no-animation {
    transition: none !important;
}

.btn-request-quote.no-animation.active,
.btn-more-info.no-animation.active {
    padding-right: 40px;
}

.btn-request-quote.no-animation.active::after,
.btn-more-info.no-animation.active::after {
    animation: none !important;
    transform: rotate(45deg) scale(1);
    opacity: 1;
}

/* Disable all button animations when skip-button-animations class is present on body */
body.skip-button-animations .btn-request-quote,
body.skip-button-animations .btn-more-info {
    transition: none !important;
}

/* Ensure checkmark appears immediately without animation */
body.skip-button-animations .btn-request-quote.active,
body.skip-button-animations .btn-more-info.active {
    padding-right: 40px !important; /* Apply padding immediately */
}

body.skip-button-animations .btn-request-quote.active::after,
body.skip-button-animations .btn-more-info.active::after {
    animation: none !important;
    transform: rotate(45deg) scale(1) !important;
    opacity: 1 !important;
}

@keyframes checkmark-appear {
    0% {
        transform: rotate(45deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: rotate(45deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
}

/** DISABLED FOR THE TIME BEING */

.contact-selector-disabled .select2-container {
    pointer-events: none;
}

.contact-selector-disabled .select2-container .select2-selection--single {
    background-color: #f0f0f0;
    border-color: #cccccc;
    color: #888888;
    cursor: not-allowed;
    opacity: 0.8;
}

body.ui-interactions-disabled .btn-request-quote,
body.ui-interactions-disabled .btn-more-info {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

/* TEMPORARY: completely hide bottom sync/finish buttons */
body.ui-interactions-disabled #syncButton,
body.ui-interactions-disabled #postcallButton {
    display: none;
}
