/* ========================================
   Discovery Engine - Umanago Branding
   Enhanced CSS with enterprise features
   ======================================== */

/* Root Variables - Umanago Brand Colors */
:root {
    --umanago-primary: #FF6816;
    --umanago-secondary: #434BE7;
    --umanago-accent: #25318D;
    --umanago-light: #F2F2F2;
    --umanago-white: #FFFFFF;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --gradient-primary: linear-gradient(135deg, var(--umanago-primary), #ff7a32);
    --gradient-secondary: linear-gradient(135deg, var(--umanago-secondary), #5a5fff);
    --gradient-accent: linear-gradient(135deg, var(--umanago-accent), #3a42b0);
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
}

.lead-sub {
    font-size: 1.45rem;
    font-weight: 300;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 800;
}

/* Navigation Enhancements */
.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: 0 8px 32px rgba(255, 104, 22, 0.3);
    transition: all var(--transition-speed) ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: transform var(--transition-speed) ease;
    color: white !important;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    transition: all var(--transition-speed) ease;
    position: relative;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: white !important;
}

/* Card Enhancements */
.card {
    border: 2px solid var(--umanago-light);
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 104, 22, 0.2);
    border-color: var(--umanago-primary);
}

.card-body {
    padding: 2rem;
}

.cultural-card {
    cursor: pointer;
    border: 3px solid #e8e8e8;
}

.cultural-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(67, 75, 231, 0.2);
    border-color: var(--umanago-secondary);
}

.cultural-card.selected {
    border-color: var(--umanago-primary);
    background: linear-gradient(135deg, #fff8f5 0%, #f0f8ff 100%);
    transform: scale(1.05);
}

/* Cultural Context Cards */
.cultural-context-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.cultural-context-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cultural-context-card:hover::after {
    opacity: 1;
}

.cultural-context-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cultural-context-card.border-3 {
    animation: pulseGlow 1s ease-in-out;
}

.cultural-context-card.shadow-lg {
    box-shadow: 0 25px 50px rgba(255, 104, 22, 0.3) !important;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 104, 22, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 104, 22, 0);
    }
}

.btn-select-context {
    min-width: 150px;
    transition: all 0.3s ease;
}

.btn-select-context:hover {
    transform: scale(1.05);
}

.btn-select-context:active {
    transform: scale(0.98);
}

/* Loading Animation for Cultural Context Grid */
#culturalContextGrid .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Staggered Animation for Cards */
.cultural-context-card {
    animation: slideInUp 0.6s ease-out backwards;
}

.cultural-context-card:nth-child(1) { animation-delay: 0.1s; }
.cultural-context-card:nth-child(2) { animation-delay: 0.2s; }
.cultural-context-card:nth-child(3) { animation-delay: 0.3s; }
.cultural-context-card:nth-child(4) { animation-delay: 0.4s; }
.cultural-context-card:nth-child(5) { animation-delay: 0.5s; }
.cultural-context-card:nth-child(6) { animation-delay: 0.6s; }
.cultural-context-card:nth-child(7) { animation-delay: 0.7s; }

/* Button Enhancements */
.btn {
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition-speed) ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(255, 104, 22, 0.3);
    border: none !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 104, 22, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #66bb6a 100%) !important;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    border: none !important;
}

.btn-info {
    background: var(--gradient-secondary) !important;
    box-shadow: 0 4px 16px rgba(67, 75, 231, 0.3);
    border: none !important;
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
}

.btn.secondary {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    box-shadow: 0 4px 16px rgba(102, 102, 102, 0.3);
}

.btn.success,
.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #66bb6a 100%);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    border: none;
    color: white;
}

.btn.success:hover,
.btn-success:hover {
    background: linear-gradient(135deg, #45a049 0%, #5cb860 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: white;
}

/* Navigation Buttons - Basecode styling */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

/* Form Enhancements */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e8e8e8;
    padding: 1rem;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--umanago-primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 104, 22, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--umanago-accent);
}

/* Loading Spinner */
#loadingSpinner {
    backdrop-filter: blur(4px);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0.5rem;
    padding: 2rem;
}

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

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f0f0f0;
    border-top: 6px solid var(--umanago-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Toast Notifications */
.toast {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--umanago-light);
}

.toast-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
}

/* Footer Styles */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--umanago-accent) 0%, #1a2260 100%);
}

footer a {
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

footer a:hover {
    color: var(--umanago-primary) !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Page Transitions */
#mainContent {
    min-height: 400px;
    transition: opacity var(--transition-speed) ease;
}

#mainContent.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Progress System */
.progress {
    border-radius: 8px;
    height: 16px;
    background-color: #e8e8e8;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Alert Enhancements */
.alert {
    border-radius: 12px;
    border: 2px solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border-color: var(--umanago-secondary);
    color: var(--umanago-accent);
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border-color: var(--warning-color);
    color: #e65100;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border-color: var(--success-color);
    color: #2e7d32;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #fff5f5 100%);
    border-color: var(--danger-color);
    color: #c62828;
}

.alert i {
    margin-right: 0.5rem;
}

/* Table Enhancements */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: var(--gradient-accent);
    color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 104, 22, 0.05);
}

/* Badge Enhancements */
.badge {
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #66bb6a 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffb74d 100%) !important;
}

.bg-info {
    background: var(--gradient-secondary) !important;
}

/* Text Colors */
.text-primary {
    color: var(--umanago-primary) !important;
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.shadow-sm-hover {
    transition: box-shadow var(--transition-speed) ease;
}

.shadow-sm-hover:hover {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* List Group */
.list-group-item {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all var(--transition-speed) ease;
}

.list-group-item:hover {
    border-color: var(--umanago-secondary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Section Styling */
.section {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--umanago-light);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}

.section.active {
    display: block;
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1.125rem;
    }

    .card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    footer {
        text-align: center;
    }

    footer .col-md-4 {
        margin-bottom: 1.5rem;
    }

    .section {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .section {
        padding: 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    #loadingSpinner,
    .toast-container {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        background: white;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Accessibility Enhancements */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus Indicators */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--umanago-primary);
    outline-offset: 2px;
}

/* Discovery Type Cards */
.discovery-type-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e0e0e0;
    user-select: none;
}

.discovery-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--bs-primary);
}

.discovery-type-card.selected {
    border-color: var(--bs-primary);
    box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), 0.3);
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Service Level Cards */
.service-level-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e0e0e0;
}

.service-level-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-level-card.border-3 {
    border-width: 3px !important;
}

.service-level-card .card-header {
    padding: 1rem;
    font-weight: 600;
}

.service-level-card .price-display {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-level-card .price-display small {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
}

.service-level-card .total-price {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.service-level-card .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-level-card .list-unstyled li:last-child {
    border-bottom: none;
}

.service-level-card .list-unstyled i {
    margin-right: 0.5rem;
}

/* Team Size Slider */
.form-range::-webkit-slider-thumb {
    background: var(--bs-primary);
}

.form-range::-moz-range-thumb {
    background: var(--bs-primary);
}

.form-range::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--bs-primary) 0%, #e0e0e0 0%);
}

/* Dark Mode Support (Progressive Enhancement) */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        color: #e0e0e0;
    }

    .card {
        background: linear-gradient(135deg, #1e1e1e 0%, #2a2a3e 100%);
        color: #e0e0e0;
        border-color: #444;
    }

    .form-control,
    .form-select {
        background-color: #2d2d2d;
        color: #e0e0e0;
        border-color: #444;
    }

    .section {
        background: #1e1e1e;
        color: #e0e0e0;
    }

    .discovery-type-card,
    .service-level-card {
        border-color: #444;
    }

    .discovery-type-card:hover,
    .service-level-card:hover {
        border-color: var(--bs-primary);
    }
}

/* ========================================
   Team Lead Checkbox Styling
   ======================================== */

/* Make the checkbox itself larger and more visible */
#loginForm .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    border: 3px solid var(--umanago-primary);
    border-radius: 6px;
    margin-top: 0.1rem;
    transition: all 0.3s ease;
}

#loginForm .form-check-input:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(255, 104, 22, 0.2);
}

#loginForm .form-check-input:checked {
    background-color: var(--umanago-primary);
    border-color: var(--umanago-primary);
    box-shadow: 0 0 0 4px rgba(255, 104, 22, 0.3);
}

#loginForm .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 104, 22, 0.25);
    border-color: var(--umanago-primary);
}

/* Make the label more visible */
#loginForm .form-check-label {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--umanago-accent);
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Question Response Options */
.response-option {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e0e0e0;
    background: white;
    user-select: none;
}

.response-option:hover {
    transform: translateX(8px);
    border-color: var(--umanago-secondary);
    box-shadow: 0 4px 12px rgba(67, 75, 231, 0.2);
}

.response-option.active {
    border-color: var(--umanago-primary) !important;
    background: linear-gradient(135deg, #fff8f5 0%, #ffede4 100%);
    box-shadow: 0 6px 16px rgba(255, 104, 22, 0.3);
    transform: translateX(12px) scale(1.02);
}

.response-option h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.response-option:active {
    transform: translateX(8px) scale(0.98);
}

/* Question Card Specific Styling */
#questionCard {
    border: 2px solid var(--umanago-light);
}

#questionCategory {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

#questionText {
    color: var(--umanago-accent);
    font-weight: 600;
    line-height: 1.5;
}

/* Progress Bar in Question Page */
#questionProgress {
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

#progressText {
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#questionCounter {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Team Size Card Styling */
.team-size-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #dee2e6;
    background: white;
}

.team-size-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-size-card.border-primary {
    border-color: var(--umanago-primary) !important;
    background: linear-gradient(135deg, #fff8f5 0%, #ffede4 100%);
    box-shadow: 0 8px 20px rgba(255, 104, 22, 0.2);
}

.team-size-input {
    max-width: 150px;
    margin: 0 auto;
}

.team-size-card .display-4 {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.team-size-card:hover .display-4,
.team-size-card.border-primary .display-4 {
    opacity: 1;
}

/* Team Package Toggle Styling */
#teamPackageToggle {
    width: 3rem;
    height: 1.5rem;
}

#teamPackageToggle:checked {
    background-color: #28a745;
    border-color: #28a745;
}

/* ========================================
   Enhanced Progress System
   ======================================== */

.progress-system {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--umanago-light);
    animation: slideInUp 0.6s ease-out;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.progress-info {
    flex: 1;
    min-width: 250px;
}

.progress-info h3 {
    color: var(--umanago-accent);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.progress-meta {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.progress-stats {
    text-align: right;
}

.progress-percentage {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--umanago-primary);
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.progress-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.progress-bar-container {
    background: #e8e8e8;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Responsive Progress System */
@media (max-width: 768px) {
    .progress-header {
        flex-direction: column;
        text-align: center;
    }

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

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

    .progress-percentage {
        font-size: 2rem;
    }
}

/* ========================================
   Team Size Insight Box
   ======================================== */

#teamSizeInsightBox {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border: 2px solid var(--umanago-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(67, 75, 231, 0.1);
    animation: slideInUp 0.5s ease-out;
}

#teamSizeInsightBox .alert-heading {
    color: var(--umanago-accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#teamSizeInsightContent {
    font-size: 0.95rem;
    line-height: 1.6;
}

#teamSizeInsightContent strong {
    display: block;
    margin-bottom: 0.25rem;
}

#teamSizeInsightContent ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

#teamSizeInsightContent ul li {
    margin-bottom: 0.25rem;
}

/* Team Size Card Enhancement */
/* Team Size Grid - Basecode styling */
.team-size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.team-size-card {
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.team-size-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--umanago-secondary);
}

.team-size-card.selected,
.team-size-card.border-primary {
    border-color: var(--umanago-primary);
    background: linear-gradient(135deg, #fff8f5 0%, #f0f8ff 100%);
}

.team-size-card.border-3 {
    border-width: 3px !important;
}

.team-size-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--umanago-accent);
    margin-bottom: 0.8rem;
}

.team-size-impact {
    color: var(--umanago-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.team-size-insight {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.team-insight-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border: 2px solid var(--umanago-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.insight-title {
    color: var(--umanago-accent);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ========================================
   Section Styling from Basecode
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.subsection {
    margin: 2rem 0;
}

.subsection h3 {
    color: var(--umanago-accent);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subsection-description {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Input Grid - Enterprise Configuration Forms */
.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    color: var(--umanago-accent);
    margin-bottom: 0.5rem;
}

.input-group input,
.input-group select {
    padding: 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--umanago-primary);
}

/* Cultural Language Grid */
.cultural-language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.language-card {
    border: 3px solid #e8e8e8;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    position: relative;
    overflow: hidden;
}

.language-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.language-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 104, 22, 0.2);
}

.language-card:hover::before {
    opacity: 1;
}

.language-card.selected {
    border-color: var(--umanago-primary);
    background: linear-gradient(135deg, #fff8f5 0%, #f0f8ff 100%);
    transform: scale(1.05);
}

.language-card.selected::before {
    opacity: 1;
}

.language-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.language-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--umanago-accent);
    margin-bottom: 0.5rem;
}

.language-region {
    color: var(--umanago-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.language-culture {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Discovery Types Grid */
.discovery-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.discovery-card {
    border: 3px solid #e8e8e8;
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    position: relative;
    overflow: hidden;
}

.discovery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 75, 231, 0.1), transparent);
    transition: left 0.6s ease;
}

.discovery-card:hover::before {
    left: 0;
}

.discovery-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(67, 75, 231, 0.2);
    border-color: var(--umanago-secondary);
}

.discovery-card.selected {
    border-color: var(--umanago-primary);
    background: linear-gradient(135deg, #fff8f5 0%, #f0f8ff 100%);
    transform: scale(1.03);
}

.discovery-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.discovery-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--umanago-accent);
    margin-bottom: 1rem;
}

.discovery-focus {
    color: var(--umanago-primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.discovery-best-for {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.discovery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    font-size: 0.9rem;
    color: #888;
}

/* Service Options Grid */
.service-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 1400px) {
    .service-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-options-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    border: 3px solid #e8e8e8;
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.service-card.recommended {
    border-color: var(--umanago-primary);
    background: linear-gradient(135deg, #fff8f5 0%, #f0f8ff 100%);
    transform: scale(1.05);
}

.service-card.recommended::before {
    content: '⭐ RECOMMENDED';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-bottom-left-radius: 12px;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.service-card.selected {
    border-color: var(--umanago-primary);
    background: linear-gradient(135deg, #fff8f5 0%, #f0f8ff 100%);
}

.service-card.inactive {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.service-card.inactive:hover {
    transform: none;
    box-shadow: none;
}

.to-come-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--warning-color);
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-bottom-right-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--umanago-accent);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.service-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--umanago-primary);
    text-align: center;
    margin: 1.5rem 0;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 800;
    font-size: 1.1rem;
}

/* Team Package Section - Compact styling */
.team-package-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px dashed #e8e8e8;
}

.team-package-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--umanago-accent);
    text-align: center;
    margin-bottom: 0.5rem;
}

.team-package-subtitle {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Team package cards - thinner cards with same spacing as regular cards */
.team-package-card {
    /* Use default service-card padding for consistency */
    /* Make team package cards non-clickable */
    cursor: default;
    pointer-events: none;
    opacity: 0.9;
}

/* Disable hover effects for team package cards */
.team-package-card:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-package-card .service-title {
    text-align: center;
}

/* Team package cards inherit all service-features styling for consistent spacing */

/* Team pricing options - side by side pricing */
.team-pricing-options {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.pricing-option {
    flex: 1;
    text-align: center;
}

.pricing-tier {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--umanago-secondary);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.pricing-divider {
    font-size: 1.5rem;
    color: #e8e8e8;
    font-weight: 300;
}

.original-price {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.2rem;
}

.savings {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 0.5rem 0;
    padding: 0.3rem;
    background: linear-gradient(135deg, #e8f8e8 0%, #f0f8f0 100%);
    border-radius: 8px;
}

/* Team package cards inherit hover effect from .service-card */

@media (max-width: 768px) {
    .team-pricing-options {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pricing-divider {
        display: none;
    }
}
.question-container {
    background: linear-gradient(135deg, #fafafa 0%, #f8f9ff 100%);
    border: 2px solid #e8e8e8;
    border-left: 6px solid var(--umanago-primary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.question-category-badge {
    display: inline-block;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--umanago-accent);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.question-options {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.option {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    align-items: flex-start;
}

.option:hover {
    border-color: var(--umanago-secondary);
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    transform: translateX(4px);
}

.option.selected {
    border-color: var(--umanago-primary);
    background: linear-gradient(135deg, #fff8f5 0%, #f0f8ff 100%);
    transform: translateX(8px);
}

.option-number {
    width: 32px;
    height: 32px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-weight: 700;
    color: #666;
    transition: all 0.3s ease;
}

.option.selected .option-number {
    background: var(--umanago-primary);
    border-color: var(--umanago-primary);
    color: white;
}

.option-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
}

.multiple-choice-alert {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border: 2px solid var(--umanago-secondary);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    color: var(--umanago-accent);
    font-weight: 600;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(255, 104, 22, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 104, 22, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn.secondary {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    box-shadow: 0 4px 16px rgba(102, 102, 102, 0.3);
}

.btn.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #66bb6a 100%);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.question-counter {
    background: var(--gradient-accent);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
}

.results-celebration {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border: 3px solid var(--success-color);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.celebration-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.celebration-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.celebration-message {
    font-size: 1.2rem;
    color: #2e7d32;
}

.score-showcase {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, white 0%, #f8f9ff 100%);
    border: 3px solid var(--umanago-secondary);
    border-radius: 24px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.score-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;

/* Coaching Session Management Styles */
#coachingSessionsList .card {
    transition: all 0.3s ease;
    border-left: 4px solid #0d6efd;
}

#coachingSessionsList .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.modify-session-btn,
.confirm-session-btn,
.complete-session-btn,
.cancel-session-btn {
    transition: all 0.2s ease;
}

.modify-session-btn:hover {
    transform: scale(1.1);
}

.confirm-session-btn:hover {
    transform: scale(1.1);
}

.complete-session-btn:hover {
    transform: scale(1.1);
}

.cancel-session-btn:hover {
    transform: scale(1.1);
}

#modifyCoachingModal .modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

#modifyCoachingModal .modal-header .btn-close {
    filter: invert(1);
}

#modifyCoachingModal .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.badge {
    font-size: 0.85rem;
    padding: 0.5em 0.75em;
}
