:root {
    --chart-blue: #004785;
    --chart-tonal-blue: #0B5DA5;
    --chart-light-blue: #33A3DC;
    --chart-light-blue-hover: #1B92CE;
    --chart-white: #ffffff;
    --chart-gray: #575757;
    --chart-gray-hover: #8C8C8C;
    --chart-border: #e1e1e1;
    --chart-bg: #f8f9fa;
    --chart-orange: #F9A63F;
    --chart-orange-hover: #F09320;
    --chart-green: #9DC335;
    --chart-green-hover: #8DB819;
    --chart-nav-bg: #004785;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--chart-bg);
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
}

/* Chart Industries Top Utility Bar */
.h-b_c {
    background: #004785;
    color: white;
    font-size: 15px;
    padding: 8px 0;
}

.h-b_c .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.h-b_c a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.h-b_c a:hover {
    color: var(--chart-orange);
}

/* Chart Industries Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 800;
    width: 100%;
    background: var(--chart-nav-bg);
    backdrop-filter: blur(10px);
    margin: 0;
    padding: 0;
}

/* Chart Industries Navigation */
#navbar {
    background: var(--chart-tonal-blue);
    padding: 10px 0;
    margin: 0;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#navbar .container {
    max-width: 1400px;
    padding-right: 0;
}

#navbar .navbar-brand {
    margin-right: 40px;
}

#navbar .navbar-brand img {
    width: 180px;
    height: 44px;
    object-fit: contain;
}

/* Navigation Menu Items */
.navbar-nav {
    margin-right: auto;
    position: relative;
}

.nav-item {
    padding-right: 0.25rem;
}

.nav-link {
    font-family: "Open Sans", sans-serif;
    color: white !important;
    font-weight: 700;
    font-size: 20px;
    padding: 20px 15px !important;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    border: none;
    background: none;
}

.nav-link:hover {
    color: var(--chart-orange-hover) !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link .fa-chevron-down {
    margin-left: 8px;
    font-size: 10px;
    color: var(--chart-orange);
    transition: transform 0.3s ease;
}

.nav-link:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* Contact Button */
.menu-btn-1 {
    background: var(--chart-green);
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    margin-left: 15px;
    transition: all 0.3s ease;
    color: #000000 !important;
}

.menu-btn-1:hover {
    background: var(--chart-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 166, 63, 0.3);
}

.menu-btn-1 a {
    color: black !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

/* Dropdown Navigation - Chart Industries Style */
.super-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.super-nav-overlay.active {
    display: block;
    opacity: 1;
}

.super-nav-menu {
    position: fixed;
    top:115px;
    left: 0;
    right: 0;
    width: 100%;
    background: #004785;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    max-height: calc(100vh - 80px);
}

.super-nav-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Header */
.super-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #004785;
}

.super-nav-header h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.super-nav-header h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.super-nav-header h3 a:hover {
    color: var(--chart-orange);
}

.btn-close-nav {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    transition: color 0.3s ease;
}

.btn-close-nav:hover {
    color: var(--chart-orange);
}

.btn-close-nav i {
    font-size: 24px;
}

/* Navigation Content - Side by Side Layout */
.super-nav-content {
    padding: 10px 40px;
}

.nav-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left side: Segment Navigation */
.segment-nav {
    width: 300px;
    min-width: 300px;
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.segment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.segment-item {
    margin-bottom: 15px;
}

.segment-item-simple {
    margin-bottom: 15px;
}

.segment-title {
    color: white;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    display: block;
    padding: 2px 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.segment-item.active .segment-title {
    color: var(--chart-orange);
    border-bottom-color: var(--chart-orange);
}

.segment-title:hover {
    color: white;
    text-decoration: underline;
}

/* Right side: Product Display */
.product-display {
    flex: 1;
    padding-left: 40px;
}

.product-panel {
    display: none;
}

.product-panel.active {
    display: block;
}

/* Product Grid - Two Columns */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 60px;
}

.product-column {
    display: flex;
    flex-direction: column;
}

.product-column a {
    color: white;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.product-column a:hover {
    color: white;
    text-decoration: underline;
}

/* Mobile Navigation Toggler */
.navbar-toggler {
    border: none;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(249, 166, 63, 0.5);
}

.navbar-toggler .fa-bars {
    color: white;
    font-size: 18px;
}

/* Mobile Navigation */
.custom-toggler {
    border: none;
    padding: 4px 8px;
    margin: 15px 0;
}

.custom-toggler:focus {
    box-shadow: none;
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
    .h-b_c {
        display: none;
    }
    
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    
    #navbar {
        padding: 15px 0;
        background: var(--chart-dark-blue);
    }
    
    #navbar .container {
        padding: 0 15px;
    }
    
    #navbar .navbar-brand img {
        width: 120px;
        height: 30px;
    }
    
    .navbar-collapse {
        margin-top: 20px;
        background: var(--chart-dark-blue);
        border-radius: 8px;
        padding: 20px;
    }
    
    .nav-item {
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }
    
    .nav-link {
        padding: 15px 0 !important;
        font-size: 16px;
        color: white !important;
    }
    
    .menu-btn-1 {
        width: 100%;
        margin: 20px 0 0 0;
        padding: 15px;
        text-align: center;
    }

    /* Hide dropdown menus on mobile */
    .dropdown-navbar {
        display: none;
    }
    
    /* Adjust main content for fixed header */
    main {
        margin-top: 80px;
    }
}

@media (max-width: 767.98px) {
    #navbar .navbar-brand img {
        width: 100px;
        height: 25px;
    }
    
    #navbar {
        padding: 10px 0;
    }
    
    .navbar-collapse {
        margin-top: 15px;
        padding: 15px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 12px 0 !important;
    }
    
    main {
        margin-top: 60px;
    }
}

/* Main content spacing for fixed header */
main {
    margin-top: 140px; /* Account for fixed header height */
    padding: 2rem 0;
}

@media (min-width: 992px) {
    main {
        margin-top: 140px; /* Fixed header height + utility bar */
    }
}

/* Legacy support for existing dropdown styles */
.dropdown-menu {
    background-color: var(--chart-white);
    border: 1px solid var(--chart-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 1px;
    min-width: 200px;
}

.dropdown-item {
    color: var(--chart-light-gray);
    padding: 8px 20px;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--chart-bg);
    color: var(--chart-light-blue);
}

.dropdown-item:focus {
    background-color: var(--chart-bg);
    color: var(--chart-light-blue);
}

.main-content {
    padding: 4rem 0;
    min-height: calc(100vh - 80px);
}

.page-title {
    color: var(--chart-blue);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--chart-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.relationship-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .relationship-card:hover {
        border-color: var(--chart-light-blue);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
        transform: translateY(-2px);
    }

    .relationship-card.selected {
        border-color: var(--chart-light-blue);
        background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 100%);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    }

    .relationship-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--chart-light-blue), var(--chart-green));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .relationship-card:hover::before,
    .relationship-card.selected::before {
        opacity: 1;
    }

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.relationship-card:hover .card-icon,
.relationship-card.selected .card-icon {
    background: linear-gradient(135deg, var(--chart-blue), var(--chart-tonal-blue));
    color: white;
    transform: scale(1.05);
}

.card-icon i {
    font-size: 2rem;
    color: var(--chart-gray);
    transition: color 0.3s ease;
}

.relationship-card:hover .card-icon i,
.relationship-card.selected .card-icon i {
    color: white;
}

.card-title {
    color: var(--chart-blue);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--chart-gray);
    font-size: 1rem;
    line-height: 1.5;
}

.selection-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.relationship-card.selected .selection-indicator {
    background: var(--chart-light-blue);
    border-color: var(--chart-light-blue);
    color: white;
}

.continue-btn {
    background: linear-gradient(135deg, var(--chart-blue), var(--chart-tonal-blue));
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 71, 133, 0.3);
}

    .continue-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 71, 133, 0.4);
        background: linear-gradient(135deg, var(--chart-tonal-blue), var(--chart-blue));
    }

    .continue-btn:disabled {
        opacity: 0.5;
        transform: none;
        box-shadow: none;
        cursor: not-allowed;
    }

/* Contact Chart Modal Styles */
.contact-modal .modal-header {
    background: var(--chart-blue);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
}

.contact-modal .modal-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.contact-modal .modal-body {
    padding: 2.5rem 2rem;
}

.contact-option {
    display: block;
    text-align: center;
    padding: 2rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.contact-option:hover {
    border-color: var(--chart-blue);
    box-shadow: 0 4px 15px rgba(0, 71, 133, 0.15);
    transform: translateY(-3px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--chart-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-option h5 {
    color: var(--chart-blue);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.contact-option p {
    color: var(--chart-gray);
    font-size: 0.95rem;
    margin: 0;
}

.contact-option:hover h5 {
    color: var(--chart-tonal-blue);
}

@media (max-width: 768px) {
    .navbar-brand {
        margin-right: 1rem;
        padding: 0.4rem 0;
    }

        .navbar-brand img {
            height: 25px !important;
        }

    .page-title {
        font-size: 2rem;
    }

    .relationship-card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

        .card-icon i {
            font-size: 1.5rem;
        }

    .contact-modal .modal-body {
        padding: 1.5rem 1rem;
    }

    .contact-option {
        padding: 1.5rem 1rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
    }

    .contact-icon i {
        font-size: 1.5rem;
    }

    .contact-option h5 {
        font-size: 1rem;
    }
}

/* ============================================
   WIZARD COMMON STYLES
   ============================================ */

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--chart-green);
    color: white;
}

.step.inactive .step-number {
    background-color: #d1d5db;
    color: #6b7280;
}

.step.completed .step-number {
    background-color: var(--chart-light-blue);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--chart-gray);
    text-align: center;
    margin-top: 0.5rem;
}

.step.active .step-label {
    color: var(--chart-blue);
}

.step-connector {
    width: 100px;
    height: 2px;
    background-color: #d1d5db;
    margin: 0 1rem;
    align-self: flex-start;
    margin-top: 25px;
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.form-row {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    background-color: #f8fafc;
    color: var(--chart-blue);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 6px 0 0 6px;
    border: 1px solid #e5e7eb;
    border-right: none;
    margin-bottom: 0;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.form-control,
.form-select {
    border-radius: 0 6px 6px 0;
    border: 1px solid #e5e7eb;
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--chart-light-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-select {
    color: #9ca3af;
}

.form-select:focus {
    color: var(--chart-gray);
}

.date-input {
    color: #9ca3af;
}

.date-input:focus {
    color: var(--chart-gray);
}

/* Validation Styles */
.required-asterisk {
    color: #dc2626;
    margin-left: 4px;
    font-weight: 700;
}

.invalid-feedback {
    display: none;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    padding-left: 1rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.btn-nav {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 120px;
    border: none;
}

.btn-previous {
    background-color: var(--chart-blue);
    color: white;
}

.btn-previous:hover {
    background-color: #1e40af;
    transform: translateY(-1px);
    color: white;
}

.btn-next {
    background-color: var(--chart-blue);
    color: white;
}

.btn-next:hover {
    background-color: #1e40af;
    transform: translateY(-1px);
    color: white;
}

.btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-next:disabled:hover {
    transform: none;
}

/* Section Titles */
.section-title {
    color: var(--chart-blue);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--chart-green);
}

/* Quote Type Cards */
.quote-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quote-card:hover {
    border-color: var(--chart-light-blue);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.quote-card.selected {
    border-color: var(--chart-light-blue);
    background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--chart-light-blue), var(--chart-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quote-card:hover::before,
.quote-card.selected::before {
    opacity: 1;
}

.quote-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quote-card.selected .quote-checkbox {
    background: var(--chart-light-blue);
    border-color: var(--chart-light-blue);
    color: white;
}

.quote-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.quote-card:hover .quote-icon,
.quote-card.selected .quote-icon {
    background: linear-gradient(135deg, var(--chart-light-blue), var(--chart-green));
    transform: scale(1.05);
}

.quote-icon i {
    font-size: 2rem;
    color: var(--chart-gray);
    transition: color 0.3s ease;
}

.quote-card:hover .quote-icon i,
.quote-card.selected .quote-icon i {
    color: white;
}

.quote-title {
    color: var(--chart-blue);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.quote-description {
    color: var(--chart-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design for Wizard */
@media (max-width: 768px) {
    .progress-steps {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-connector {
        width: 50px;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-label {
        min-width: 150px;
    }

    .quote-card,
    .relationship-card {
        padding: 1.5rem;
    }

    .navigation-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-nav {
        width: 100%;
    }
}
