/* HubSpot Module Wrapper */
.hs_cos_wrapper_type_module {
    display: block;
    width: 100%;
}
/* Fallback colors for HubSpot preview */
.calculator-modern {
    background-color: #faf4fe;
    --primary-color: #4f2480; 
    --primary-light: #f2e8ff;
    --primary-dark: #391b5f;
    --secondary-color: #1b75bc;
    /* other variables as fallbacks */
}

:root {
    --primary-color: #4f2480;
    --primary-light: #f2e8ff;
    --primary-dark: #391b5f;
    --secondary-color: #1b75bc;
    --text-color: #333;
    --text-light: #555;
    --background-color: #ffffff;
    --background-light: #faf4fe;
    --border-color: #e0e0e0;
    --shadow-color: rgba(79, 36, 128, 0.2);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-family: 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 8px;
    --border-radius-large: 12px;
    --border-radius-pill: 50px;
    --transition-speed: 0.3s;
}

/* Base Styles */
.calculator-modern {
    background-color: var(--background-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-large);
    padding: 60px 40px;
    font-family: var(--font-family);
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 500px; /* Change from 100vh which might not work well in modules */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.calculator-inner {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.calculator-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 48px;
    border-radius: var(--border-radius-large);
    background: linear-gradient(135deg, var(--background-color) 0%, var(--primary-light) 100%);
    box-shadow: 0px 8px 30px var(--shadow-color);
    position: relative;
    transition: all var(--transition-speed) ease;
    z-index: 1; /* Add z-index to ensure gradient appears */
}


/* Title and Text Styles */
.calculator-text {
    text-align: center;
    order: 1;
}

.calculator h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.calculator p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Progress Indicator */
.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    order: 1;
}

.progress-indicator {
    display: flex;
    align-items: center;
    width: 60%;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color var(--transition-speed) ease;
}

.progress-dot.active {
    background-color: var(--primary-color);
    color: white;
}

.progress-dot:after {
    content: attr(data-step);
    font-size: 12px;
    color: white;
}

.progress-line {
    flex-grow: 1;
    height: 3px;
    background-color: var(--border-color);
    margin: 0 5px;
}

.progress-labels {
    display: flex;
    width: 65%;
    justify-content: space-between;
}

.progress-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    opacity: 0.7;
    transition: opacity var(--transition-speed) ease;
}

.progress-label.active {
    opacity: 1;
    font-weight: bold;
    color: var(--primary-color);
}

/* Form Group Styling */
.calculator-form-container,
.calculator-loading,
.calculator-results {
    order: 2;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.label {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.text-input {
    width: 100%;
    height: 55px;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    color: var(--text-color);
    background-color: transparent;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.text-input::placeholder {
    color: #999;
}

.text-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 6px rgba(95, 55, 149, 0.4);
}

.input-symbol {
    position: absolute;
    right: 45px;
    color: var(--text-light);
    font-weight: bold;
}

.form-help {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    text-align: center;
    line-height: 20px;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: var(--border-radius);
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    font-size: 0.8rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Buttons */
.button-container {
    text-align: center;
    margin-top: 25px;
}

.primary-button,
.secondary-button,
.tertiary-button {
    display: inline-block !important;
    padding: 14px 28px !important;
    margin: 5px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: transform var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease, 
                background-color var(--transition-speed) ease !important;
    border: 2px solid !important;
    border-radius: var(--border-radius-pill) !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

.primary-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(65, 38, 107, 0.3) !important;
    color: white !important;
}


.primary-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(65, 38, 107, 0.3);
    color: white;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(54, 31, 93, 0.4);
    background-color: var(--primary-dark);
}

.secondary-button {
    background: var(--primary-color);
    border-color: white;
    color: white;
}

.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 36, 128, 0.4);
    background-color: var(--primary-dark);
}

.tertiary-button {
    background-color: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tertiary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 36, 128, 0.2);
    background-color: #f9f9f9;
}

.share-icon {
    display: inline-block;
    margin-right: 5px;
    font-size: 14px;
}

/* Loading Styles */
.calculator-loading {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: var(--primary-color);
    font-weight: 600;
}

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

/* Results Container Styles */
.calculator-results {
    text-align: center;
    display: none;
}

.calculator-results .output h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.calculator-results #result {
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 10px 0 20px;
}

/* Savings Breakdown */
.savings-breakdown {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.highlight {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
    background-color: rgba(79, 36, 128, 0.05);
    border-radius: var(--border-radius);
    padding: 10px;
    margin-top: 10px;
}

.breakdown-label {
    text-align: left;
}

.breakdown-value {
    text-align: right;
    font-weight: 600;
}

/* Industry Comparison Chart */
.industry-comparison {
    margin: 30px 0;
}

.comparison-chart {
    width: 100%;
}

.chart-bar {
    margin-bottom: 15px;
}

.bar-label {
    text-align: left;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.bar {
    height: 30px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    padding-left: 10px;
    position: relative;
    transition: width var(--transition-speed) ease;
}

.industry-bar {
    width: 100%;
    background-color: var(--warning-color);
}

.savings-bar {
    width: 0;
    background-color: var(--success-color);
}

.bar-percent {
    color: white;
    font-weight: bold;
    z-index: 1;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .calculator-modern {
        padding: 30px 20px;
        box-shadow: none;
    }
    
    .calculator-content {
        padding: 24px;
        gap: 20px;
    }
    
    .calculator h1 {
        font-size: 2rem;
    }
    
    .calculator p,
    .label,
    .text-input {
        font-size: 1rem;
    }
    
    .primary-button,
    .secondary-button,
    .tertiary-button {
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .progress-indicator {
        width: 80%;
    }
    
    .progress-labels {
        width: 90%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .savings-breakdown,
    .industry-comparison {
        padding: 15px 10px;
    }
    
    .breakdown-item {
        flex-direction: column;
        text-align: center;
    }
    
    .breakdown-label,
    .breakdown-value {
        text-align: center;
    }
}
/* Fee Comparison Chart Styles */
.comparison-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: left;
}

.comparison-chart {
    width: 100%;
}

.chart-bar {
    margin-bottom: 20px;
}

.bar-label {
    text-align: left;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.bar {
    height: 36px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: relative;
    transition: width var(--transition-speed) ease;
}

.industry-bar {
    width: 100%;
    background-color: var(--primary-color);
}

.our-fee-bar {
    background-color: var(--secondary-color);
    width: 0%; /* Will be set dynamically via JS */
}

.bar-percent {
    color: white;
    font-weight: bold;
    z-index: 1;
}

.bar-value {
    color: white;
    font-weight: bold;
    z-index: 1;
}

/* Make the old styles compatible */
.savings-bar {
    display: none; /* Hide old bar styles */
}

/* Transition animations */
.fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms, transform 300ms;
}

.fade-exit {
    opacity: 1;
    transform: translateY(0);
}

.fade-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 300ms, transform 300ms;
}

.talent-mapping-link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

.talent-mapping-link:hover {
    color: var(--primary-dark);
}
/* Toast notification styles */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(40, 40, 40, 0.9);
    color: white;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
}
/* Add this to your CSS */
.calculator-results[data-negative-savings="true"] #shareButton {
    display: none !important;
}


.toast-icon {
    margin-right: 12px;
    background-color: #28a745;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.toast-message {
    font-size: 1rem;
}

</style>