/* TalentMatched.com ROI Calculator Styles - Core Styles */
/* styles-core.css - Base styles, components, and layouts */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, sans-serif;
    line-height: 1.6;
    color: #212a47;
	background: #f9f9f9;
    background-color: #0b1947;
    min-height: 100vh;
    /* FIXED: Consistent base font sizing for mobile scaling */
    font-size: 16px;
}

/* ENFORCED: All text must be Verdana */
* {
    font-family: Verdana, sans-serif !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
	background-color: #f9f9f9;
    z-index: 10; /* CRITICAL: Ensure container is above hero */
}

/* ENHANCED: Form validation styles */
.field-error {
    color: #c53030;
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-left: 4px solid #c53030;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
    animation: slideInError 0.3s ease-out;
}

.field-error.show {
    display: block;
}

.input-help {
    color: #4a5568;
    font-size: 0.875rem;
    margin-top: 0.375rem;
    line-height: 1.5;
    font-style: italic;
}

/* Accessibility - Screen Reader Only Content */
.sr-only {
    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;
}

/* CR-PWA-007: FIXED Hero Banner - Mobile-Optimized with Proper Isolation */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    isolation: isolate; /* CRITICAL: Create new stacking context */
}

/* Full-width background image container with proper containment */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    isolation: isolate; /* CRITICAL: Contain stacking context */
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Content container with golden ratio positioning and proper stacking */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    isolation: isolate; /* CRITICAL: Contain content within hero */
}

/* Text positioned in top-left quadrant with golden ratio spacing */
.hero-text {
    max-width: 600px;
    padding-top: 40px;
    padding-left: calc(8%); /* SIMPLIFIED: Remove viewport calculation */
    color: white;
    position: relative;
    z-index: 3;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo-icon {
    background: white;
    color: #b49755;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px;
}

.logo-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-text h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.4;
    opacity: 0.95;
}

.promise {
    font-size: 1rem; /* CR-2025-010-REV1: REDUCED from 1.2rem to match dark mode proportions */
    position: relative;
    z-index: 4;
    color: #f8f9fa;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 500px;
}

/* Calculator Selector Tabs - TASK 1: Removed forced white background */
.calculator-selector {
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(12, 19, 44, 0.1);
    position: relative;
    z-index: 100; /* CRITICAL: Ensure above hero */
}

.selector-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.selector-tab {
    flex: 1;
    min-width: 250px;
    padding: 25px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 44px;
}

.selector-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 19, 44, 0.15);
    border-color: #b49755;
}

.selector-tab.active {
    background: linear-gradient(135deg, #b49755 0%, #d4b366 100%);
    color: white;
    border-color: #b49755;
    box-shadow: 0 8px 25px rgba(180, 151, 85, 0.3);
}

.tab-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.tab-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #212a47;
}

.selector-tab.active .tab-title {
    color: white;
}

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

.selector-tab.active .tab-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Calculator Header with Currency Dropdown - TASK 1: Removed forced white background */
.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.calculator-header h2 {
    margin: 0;
    color: #212a47;
    font-size: 1.4rem; /* CR-2025-010-REV1: REDUCED from 1.8rem to match dark mode proportions */
}

/* Calculator Sections - TASK 1: Removed forced white background */
.calculator-section {
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(12, 19, 44, 0.1);
    display: none; /* Default: hidden */
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 100; /* CRITICAL: Ensure above hero */
}

.calculator-section.active {
    display: block !important; /* Force display when active */
    opacity: 1;
}

/* Ensure forms don't interfere with display */
.calculator-form {
    width: 100%;
    margin: 0;
}

/* Agency Calculator */
#agency-calculator {
    display: none;
}

#agency-calculator.active {
    display: block !important;
}

/* Employer Calculator */
#employer-calculator {
    display: none;
}

#employer-calculator.active {
    display: block !important;
}

/* Industry Section - TASK 1: Removed forced white background */
.industry-section {
    margin-bottom: 30px;
}

.industry-section h3 {
    margin-bottom: 15px;
    color: #212a47;
    font-size: 1.2rem;
}

.industry-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #212a47;
    font-size: 1rem;
    font-family: Verdana, sans-serif;
    min-height: 44px;
    cursor: pointer;
}

.industry-select:focus {
    outline: none;
    border-color: #b49755;
    box-shadow: 0 0 0 3px rgba(180, 151, 85, 0.1);
}

/* Input Grid - TASK 1: Removed forced white background */
.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.input-group {
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #212a47;
    font-size: 0.95rem;
}

.input-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #212a47;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: Verdana, sans-serif;
    min-height: 44px;
}

.input-field:focus {
    outline: none;
    border-color: #b49755;
    box-shadow: 0 0 0 3px rgba(180, 151, 85, 0.1);
}

.input-field:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Calculate Button - CRITICAL: Enhanced visibility and touch targets */
.calculate-btn-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    position: relative;
}

.calculate-btn-container-centered {
    text-align: center;
    margin: 40px auto;
    position: relative;
    max-width: 400px;
}

.calculate-btn {
    background: linear-gradient(135deg, #b49755 0%, #d4b366 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(180, 151, 85, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 56px !important;
    touch-action: manipulation;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 151, 85, 0.4);
    background: linear-gradient(135deg, #d4b366 0%, #b49755 100%);
}

.calculate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(180, 151, 85, 0.3);
}

/* FIXED: Calculating state with better visual feedback */
.calculate-btn.calculating {
    opacity: 0.8;
    cursor: not-allowed;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
    animation: pulse 1.5s infinite;
}

.calculating {
    opacity: 0.7;
    pointer-events: none;
}

/* Tooltip Styles for Calculate Button */
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(12, 19, 44, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    white-space: normal;
    text-align: center;
}

/* Tooltip Arrow */
.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(12, 19, 44, 0.95);
}

/* Show tooltip on hover and focus */
.calculate-btn-container:hover .tooltip,
.calculate-btn:focus + .tooltip,
.tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Tooltip animations */
.tooltip.slide-up {
    animation: slideUpFade 0.3s ease-out;
}

.tooltip.slide-down {
    animation: slideDownFade 0.3s ease-out;
}

/* Mobile help text for touch devices */
.mobile-help-text {
    display: none;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

/* Results Section */
.results-section {
    background: linear-gradient(135deg, #212a47 0%, #1a2142 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(12, 19, 44, 0.2);
    position: relative;
    z-index: 100; /* CRITICAL: Ensure above hero */
}

.results-section.show {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.results-header {
    margin-bottom: 35px;
}

/* UPDATED: ROI headline - unbold, correct brand gold color */
.roi-headline {
    font-size: 3rem; /* CR-2025-010-REV1: REDUCED from 4rem to match dark mode proportions */
    font-weight: normal !important;
    color: #b49755 !important;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.roi-subtext {
    font-size: 1rem; /* CR-2025-010-REV1: REDUCED from 1.2rem to match dark mode proportions */
    opacity: 0.9;
}

.roi-subheadline {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* MODIFIED: Metrics grid with consistent label alignment and centered values */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    /* Ensure equal height cards for consistent alignment */
    align-items: stretch;
    margin-bottom: 40px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(180, 151, 85, 0.2);
    /* Flex layout for consistent label positioning */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    text-align: center;
}

/* FIXED: Metric label positioned at top with consistent height */
.metric-label {
    font-size: 0.8rem; /* CR-2025-010-REV1: REDUCED from 0.9rem to match dark mode proportions */
    opacity: 0.8;
    margin-bottom: auto;
    /* Fixed height to align all labels consistently */
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FIXED: Metric value centered and properly sized */
.metric-value {
    font-size: 1.6rem; /* CR-2025-010-REV1: REDUCED from 2rem to match dark mode proportions */
    font-weight: bold;
    color: #b49755;
    text-align: center;
    margin-top: auto;
    /* Ensure values are centered */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
}

/* Benefits Section - TASK 1: Removed forced white background */
.benefits-section {
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(12, 19, 44, 0.1);
    position: relative;
    z-index: 100; /* CRITICAL: Ensure above hero */
}

.benefits-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #212a47;
    font-size: 1.4rem; /* CR-2025-010-REV1: REDUCED from 1.8rem to match dark mode proportions */
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.benefit-card {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 19, 44, 0.15);
}

.benefit-card h3 {
    color: #212a47;
    margin-bottom: 15px;
    font-size: 1rem; /* CR-2025-010-REV1: REDUCED from 1.2rem to match dark mode proportions */
}

.benefit-value {
    font-size: 1.8rem; /* CR-2025-010-REV1: REDUCED from 2.2rem to match dark mode proportions */
    font-weight: bold;
    color: #b49755;
    margin-bottom: 10px;
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Soft Benefits Section - TASK 1: Removed forced white background */
.soft-benefits-section {
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(12, 19, 44, 0.1);
    position: relative;
    z-index: 100; /* CRITICAL: Ensure above hero */
}

.soft-benefits-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #212a47;
    font-size: 1.4rem; /* CR-2025-010-REV1: REDUCED from 1.8rem to match dark mode proportions */
}

.soft-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.soft-benefit-card {
    text-align: center;
    padding: 25px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.soft-benefit-card:hover {
    border-color: #b49755;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(180, 151, 85, 0.15);
}

.soft-benefit-icon {
    font-size: 2rem; /* CR-2025-010-REV1: REDUCED from 2.5rem to match dark mode proportions */
    margin-bottom: 15px;
}

.soft-benefit-card h3 {
    color: #212a47;
    margin-bottom: 15px;
    font-size: 0.95rem; /* CR-2025-010-REV1: REDUCED from 1.1rem to match dark mode proportions */
}

.soft-benefit-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* MODIFIED: Evidence-Based Methodology section - TASK 1: Removed forced white background */
.assumptions-section, .detailed-calculations-section {
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(12, 19, 44, 0.1);
    overflow: visible;
    position: relative;
    z-index: 100; /* CRITICAL: Ensure above hero */
}

/* MODIFIED: Header styling similar to "Additional Strategic Benefits" - TASK 1: Removed forced white background */
.assumptions-header, .calculations-header {
    padding: 1rem;
    border-bottom: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
    text-align: center;
    position: relative;
    min-height: 44px;
    border-radius: 4px;
}

.assumptions-header:hover, .calculations-header:hover,
.assumptions-header:focus, .calculations-header:focus {
    background-color: rgba(180, 151, 85, 0.1) !important;
}

.assumptions-header:focus-visible,
.calculations-header:focus-visible {
    outline: 2px solid #b49755;
    outline-offset: 2px;
}

/* MODIFIED: Header titles - no icons, centered */
.assumptions-header h3, .calculations-header h3 {
    color: #212a47;
    margin: 0;
    font-size: 1.4rem; /* CR-2025-010-REV1: REDUCED from 1.8rem to match dark mode proportions */
    text-align: center;
    flex: 1;
}

.toggle-indicator {
    color: #b49755;
    font-weight: bold;
    transition: transform 0.3s ease;
    font-size: 0.8em;
    color: #666;
}

.assumptions-header[aria-expanded="true"] .toggle-indicator,
.calculations-header[aria-expanded="true"] .toggle-indicator {
    transform: rotate(180deg);
}

/* Content containers with proper animation support - TASK 1: Removed forced white background */
.assumptions-content, .calculations-content {
    overflow: visible;
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
}

/* SURGICAL FIX: Change max-height: none to specific pixel value */
.assumptions-content.expanded, .calculations-content.expanded {
    max-height: 10000px;
    opacity: 1;
    padding: 1rem;
}

/* Transitioning state to prevent layout jumps */
.assumptions-content.transitioning, .calculations-content.transitioning {
    overflow: visible;
    pointer-events: none; /* Prevent clicks during transition */
}

/* CR-2025-005: Enhanced Evidence Panel Card-Based Responsive Grid Layout */
/* Replaced the old 3-column assumptions-grid with responsive evidence cards */
.assumptions-grid {
    display: grid;
    /* Responsive grid: 1 column on mobile, 2-3 on tablet/desktop */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
    margin-bottom: 20px;
}

.assumptions-content.expanded .assumptions-grid {
    opacity: 1;
    transform: translateY(0);
}

/* CR-2025-005: Evidence card styling with enhanced visual hierarchy - TASK 1: Removed forced white background */
.assumption-group {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: visible;
}

/* CR-2025-005: Enhanced card hover effects */
.assumption-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #b49755;
}

.assumption-group:first-child:hover {
    box-shadow: 0 8px 24px rgba(180, 151, 85, 0.2);
}

/* CR-2025-005: Card header styling with visual prominence */
.assumption-group h4 {
    color: #212a47;
    margin-bottom: 16px;
    font-size: 1rem; /* CR-2025-010-REV1: REDUCED from 1.1rem to match dark mode proportions */
    font-weight: 700;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.assumption-group h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #b49755;
    border-radius: 1px;
}

/* CR-2025-005: Enhanced list styling for better readability - TASK 1: Reduced forced backgrounds */
.assumption-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.assumption-group li {
    margin-bottom: 14px;
    padding-left: 24px;
    position: relative;
    font-size: 0.85rem; /* CR-2025-010-REV1: REDUCED from 0.9rem to match dark mode proportions */
    color: #2d3748;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInLeft 0.4s ease forwards;
    background: #f8fafc; /* TASK 1: Removed !important */
    padding: 12px 12px 12px 36px;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
    transition: all 0.2s ease;
}

.assumption-group li:hover {
    background: #edf2f7; /* TASK 1: Removed !important */
    border-left-color: #b49755;
    transform: translateX(2px);
}

.assumption-group li:nth-child(1) { animation-delay: 0.1s; }
.assumption-group li:nth-child(2) { animation-delay: 0.2s; }
.assumption-group li:nth-child(3) { animation-delay: 0.3s; }
.assumption-group li:nth-child(4) { animation-delay: 0.4s; }
.assumption-group li:nth-child(5) { animation-delay: 0.5s; }

.assumption-group li::before {
    content: "✔";
    position: absolute;
    left: 12px;
    top: 12px;
    color: #b49755;
    font-weight: bold;
    font-size: 1rem;
    width: 16px;
    height: 16px;
}

/* Calculation Table Styles */
.calculation-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calculation-table th,
.calculation-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.calculation-table th {
    background: #f8fafc;
    font-weight: bold;
    color: #212a47;
    font-size: 0.9rem;
}

.calculation-table td {
    color: #4a5568;
    font-size: 0.85rem;
}

.calculation-table tr:hover:not(.roi-row) {
    background: #f8fafc;
}

.calculation-table tr.section-header td {
    background: #f0f4f8;
    font-weight: bold;
    color: #212a47;
    padding-top: 16px;
}

.calculation-table tr.roi-row {
    background: linear-gradient(135deg, #b49755 0%, #d4b366 100%);
    color: white;
}

.calculation-table tr.roi-row td {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 16px 15px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #212a47 0%, #1a2142 100%);
    color: white;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(12, 19, 44, 0.4);
    position: relative;
    z-index: 100; /* CRITICAL: Ensure above hero */
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #b49755;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: linear-gradient(135deg, #b49755 0%, #d4b366 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    min-height: 56px;
	margin: 10px
}

.cta-btn:hover {
    transform: translateY(-2px);
}

/* HubSpot CTA hover effects */
.hs-cta-embed {
    position: relative !important;
    z-index: 100 !important;
    display: inline-block !important;
}

.hs-cta-embed.hs-cta-simple-placeholder.hs-cta-embed-273093387495 {
    position: relative !important;
    z-index: 100 !important;
    display: inline-block !important;
    vertical-align: top !important;
    margin: 10px !important;
}

/* Alternative: Add a subtle shadow on hover */
.hs-cta-embed.hs-cta-simple-placeholder.hs-cta-embed-273093387495:hover {
    border-radius: 10px !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
    font-weight: bold !important;
}

/* UPDATED: Notification System with improved styling */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    padding: 1rem;
    border-left: 4px solid #b49755;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* UPDATED: Notification System with improved styling */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    padding: 1rem;
    border-left: 4px solid #b49755;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.success {
    border-left-color: #c3dace;
    color: #212a47;
    background: #c3dace;
}

.notification.warning {
    border-left-color: #ffc107;
    background: #fff3cd;
    color: #856404;
}

.notification.error {
    border-left-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.notification-close {
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.8;
}

.notification-close:hover {
    opacity: 1;
}

/* Modal styles for demo requests */
.demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.modal-content {
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    color: #212a47;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #212a47;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #b49755;
    box-shadow: 0 0 0 3px rgba(180, 151, 85, 0.1);
}

.form-group small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.form-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-buttons button[type="submit"] {
    background: linear-gradient(135deg, #b49755 0%, #d4b366 100%);
    color: white;
}

.form-buttons button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(180, 151, 85, 0.3);
}

.form-buttons .cancel-btn {
    background: #e9ecef;
    color: #212a47;
}

.form-buttons .cancel-btn:hover {
    background: #dee2e6;
}

/* UPDATED: Error message styles with improved contrast - TASK 1: Removed forced white background */
.error-message {
    background: #fff5f5; /* TASK 1: Removed !important */
    border: 2px solid #fed7d7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #742a2a;
}

.error-message h4 {
    color: #c53030;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.error-message p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.error-message button {
    background: #c53030;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.error-message button:hover {
    background: #9b2c2c;
    transform: translateY(-1px);
}

/* UPDATED: Error boundary styling - TASK 1: Removed forced white background */
.error-boundary {
    padding: 2rem;
    text-align: center;
    border: 2px dashed #dc3545;
    border-radius: 8px;
    background: #f8f9fa; /* TASK 1: Removed !important */
    margin: 1rem 0;
}

.error-boundary h3 {
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-boundary p {
    color: #666;
    margin-bottom: 1.5rem;
}

.error-boundary button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    min-height: 44px;
}

/* Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

/* PWA Install Button Styles */
.install-btn {
    background: linear-gradient(135deg, #b49755 0%, #d4b366 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    box-shadow: 0 4px 12px rgba(180, 151, 85, 0.3);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(180, 151, 85, 0.4);
    background: linear-gradient(135deg, #d4b366 0%, #b49755 100%);
}

.install-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(180, 151, 85, 0.3);
}

.install-btn:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(180, 151, 85, 0.3), 0 0 0 3px rgba(180, 151, 85, 0.2);
}

.pwa-mode .install-btn {
    display: none !important;
}

/* UPDATED: Loading overlay with enhanced styling - TASK 1: Removed forced white background */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95); /* TASK 1: Removed !important */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: #212a47;
    max-width: 400px;
    padding: 2rem;
}

.loading-timeout {
    padding: 1rem;
    background: #fff3cd; /* TASK 1: Removed !important */
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
}

.retry-button {
    background: #b49755;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    min-height: 44px;
}

.retry-button:hover {
    background: #9d8449;
}

/* ENHANCED: Beautiful spinner animation */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #b49755;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
    position: relative;
}

.spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-left: 2px solid #d4b366;
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #b49755;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.loading-subtext {
    font-size: 1rem;
    opacity: 0.8;
    color: #666;
}

/* ENHANCED: Accessibility and focus management */
/* Enhanced focus indicators for keyboard navigation */
.keyboard-navigation *:focus {
    outline: 3px solid #b49755 !important;
    outline-offset: 2px !important;
}

/* UPDATED: Focus States with consistency */
.calculate-btn:focus,
.selector-tab:focus,
.input-field:focus,
.industry-select:focus,
.mode-btn:focus,
.alternative-input-toggle:focus,
.alternative-select:focus,
.alternative-input:focus,
.assumptions-header:focus,
.calculations-header:focus {
    outline: 2px solid #b49755 !important;
    outline-offset: 2px !important;
}

/* High contrast focus indicators */
*:focus-visible {
    outline: 2px solid #b49755;
    outline-offset: 2px;
}

/* Touch target optimization for all interactive elements */
button, 
.currency-option, 
.selector-tab, 
.calculate-btn,
.currency-select-custom,
.assumptions-header,
.calculations-header,
[role="button"] {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    cursor: pointer;
}

/* Mobile Device Optimizations */
.mobile-device .calculator-section {
    padding: 25px 20px;
}

.mobile-device .selector-tab {
    padding: 20px;
}

.mobile-device .input-field,
.mobile-device .alternative-select,
.mobile-device .alternative-input {
    font-size: 16px; /* Prevents zoom on iOS */
}

/* HubSpot Gating Modal - Brand Aligned & Fully Responsive */
.hubspot-gate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 42, 71, 0.85); /* Brand navy with transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    animation: fadeIn 0.3s ease;
    font-family: Verdana, sans-serif !important;
}

.hubspot-gate-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hubspot-gate-modal .modal-content {
    background: #ffffff;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(33, 42, 71, 0.4);
    animation: slideUp 0.4s ease;
    border-top: 4px solid #b49755; /* Gold accent border */
}

.hubspot-gate-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.3s ease;
    font-family: Verdana, sans-serif;
}

.hubspot-gate-modal .modal-close:hover {
    color: #212a47;
    transform: rotate(90deg);
}

.hubspot-gate-modal .modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.hubspot-gate-modal #gate-modal-title {
    color: #212a47;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: Verdana, sans-serif;
}

.hubspot-gate-modal .modal-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: Verdana, sans-serif;
}

.hubspot-gate-modal .modal-benefits {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-left: 3px solid #b49755;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.hubspot-gate-modal .benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hubspot-gate-modal .benefit-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #4a5568;
    font-size: 1rem;
    font-family: Verdana, sans-serif;
}

.hubspot-gate-modal .benefit-list li:last-child {
    margin-bottom: 0;
}

.hubspot-gate-modal .checkmark {
    color: #b49755;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* HubSpot Form Container Styles */
#hubspot-form-container {
    margin-bottom: 20px;
}

#hubspot-form-container .hs-form-field {
    margin-bottom: 20px;
}

#hubspot-form-container label {
    display: block;
    margin-bottom: 8px;
    color: #212a47;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: Verdana, sans-serif;
}

#hubspot-form-container input[type="email"],
#hubspot-form-container input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: Verdana, sans-serif;
    min-height: 44px;
    color: #212a47;
}

#hubspot-form-container input:focus {
    outline: none;
    border-color: #b49755;
    box-shadow: 0 0 0 3px rgba(180, 151, 85, 0.1);
}

#hubspot-form-container .hs-button,
.fallback-form .submit-button {
    background: linear-gradient(135deg, #b49755 0%, #d4b366 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-family: Verdana, sans-serif;
    min-height: 56px;
    text-transform: none;
    letter-spacing: normal;
}

#hubspot-form-container .hs-button:hover,
.fallback-form .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(180, 151, 85, 0.3);
}

.hubspot-gate-modal .modal-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.hubspot-gate-modal .privacy-notice {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
    font-family: Verdana, sans-serif;
}

.hubspot-gate-modal .privacy-notice a {
    color: #b49755;
    text-decoration: none;
    font-weight: 600;
}

.hubspot-gate-modal .privacy-notice a:hover {
    text-decoration: underline;
}

/* Fallback Form Styles */
.fallback-form {
    padding: 20px 0;
}

.fallback-form .form-group {
    margin-bottom: 20px;
}

.fallback-form label {
    display: block;
    margin-bottom: 8px;
    color: #212a47;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: Verdana, sans-serif;
}

.fallback-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: Verdana, sans-serif;
    color: #212a47;
    min-height: 44px;
}

.fallback-form .form-control:focus {
    outline: none;
    border-color: #b49755;
    box-shadow: 0 0 0 3px rgba(180, 151, 85, 0.1);
}

.fallback-form .error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    font-family: Verdana, sans-serif;
}

.fallback-form .error-message.show {
    display: block;
}

/* Animations for Modal */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.form-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-family: Verdana, sans-serif;
    font-size: 1rem;
}