/* General Styling with Hind Font */
* {
    font-family: "Hind", "Inter", sans-serif;
}

/* Hide scrollbars */
::-webkit-scrollbar {
    display: none;
}

html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f9fafb;
}

/* Font Awesome icons preservation */
.fa, .fas, .far, .fal, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Main container to fill full screen */
#main {
    min-height: calc(100vh - 80px); /* Subtract header height */
    padding: 2rem 1.5rem;
}

/* Consistent form container sizing */
.wizard-step > div {
    width: 100% !important;
    max-width: 600px !important; /* Consistent width for all forms */
    margin: 0 auto;
}

/* Special handling for results page */
#step-4 > div {
    max-width: 1000px !important; /* Wider for results */
}

/* Special handling for thank you page - full width */
#step-6 > div {
    max-width: none !important; /* Full width for thank you page */
}

/* Wizard Step Management */
.wizard-step {
    transition: opacity 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

/* Force hide wizard steps when they have the hidden class */
.wizard-step.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    z-index: -9999 !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* Ensure active wizard steps are properly visible */
.wizard-step.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    left: auto !important;
    top: auto !important;
}

/* Form Styling Enhancements with YES brand colors */
input:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1) !important;
    border-color: #1e40af !important;
}

/* Button States with YES brand colors */
button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #9ca3af !important;
}

button:enabled {
    background-color: #1e40af !important;
    cursor: pointer;
}

button:enabled:hover {
    background-color: #1d4ed8 !important;
}

/* YES brand button styling */
.btn-primary {
    background-color: #1e40af;
    border-color: #1e40af;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-secondary {
    background-color: #f87171;
    border-color: #f87171;
    color: white;
}

.btn-secondary:hover {
    background-color: #ef4444;
    border-color: #ef4444;
}

/* Accent button with coral color for variety */
.btn-accent {
    background-color: #f87171;
    border-color: #f87171;
    color: white;
    transition: all 0.2s ease;
}

.btn-accent:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
}

/* Radio Button Styling with YES brand colors */
input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="radio"]:checked {
    border-color: #1e40af;
    background-color: #1e40af;
}

input[type="radio"]:hover:not(:checked) {
    border-color: #f87171;
}

input[type="radio"]:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Checkbox Styling with YES brand colors */
input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    border-color: #1e40af;
    background-color: #1e40af;
}

input[type="checkbox"]:hover:not(:checked) {
    border-color: #f87171;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

/* Progress Indicator Animation with YES brand colors */
.progress-dot {
    transition: all 0.3s ease;
}

.progress-dot.active {
    transform: scale(1.2);
    background-color: #1e40af !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

/* Enhanced hover effects with coral accents */
button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Special styling for back button to ensure no background issues */
#back-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#back-btn:hover {
    background: rgba(248, 113, 113, 0.1) !important;
    color: #f87171 !important;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Spinner Animation with YES brand colors */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
    border-color: #e5e7eb #e5e7eb #e5e7eb #1e40af !important;
}

/* Smooth spinner */
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Staggered pulse animation for dots */
@keyframes dotPulse {
    0%, 20% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    80%, 100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-dots {
    animation: dotPulse 1.5s ease-in-out infinite;
    background-color: #f87171 !important;
}

/* Form validation styling */
input[type="text"][name="revenue"], 
input[type="text"][name="ebitda"], 
input[type="text"][name="fte"],
input[type="text"][name="phone"],
input[type="email"][name="email"],
input[type="text"][name="name"] {
    transition: all 0.2s ease;
}

.form-group:focus-within label {
    color: #1e40af;
}

.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Chart styling with YES brand colors */
.chart-container {
    background-color: white;
    border-radius: 0.5rem;
}

.chart-bar {
    transition: all 1s ease-in-out;
    border-radius: 0.25rem 0.25rem 0 0;
}

/* Chart bar colors with YES brand palette */
#chart-lower-bar {
    background-color: #93c5fd !important; /* Light blue */
}

#chart-base-bar {
    background-color: #1e40af !important; /* YES primary blue */
}

#chart-upper-bar {
    background-color: #1e3a8a !important; /* Dark blue */
}

/* Results page value cards with YES brand colors */
.bg-blue-100 {
    background-color: #dbeafe !important;
}

.border-blue-300 {
    border-color: #93c5fd !important;
}

.text-blue-700 {
    color: #1d4ed8 !important;
}

.text-blue-800 {
    color: #1e40af !important;
}

#chart-lower-bar,
#chart-base-bar,
#chart-upper-bar {
    display: block;
    min-height: 10px;
    width: 80px;
    margin: 0 auto;
}

.chart-debug {
    display: none; /* Hide debug info in production */
}

/* Header styling */
header {
    height: 80px;
    display: flex;
    align-items: center;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}

/* Logo styling */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-container img {
    height: 40px;
    width: auto;
}

/* Footer improvements */
footer {
    background-color: white;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 640px) {
    #main {
        padding: 1rem;
        min-height: calc(100vh - 70px);
    }
    
    .wizard-step > div {
        max-width: 100% !important;
        margin: 0 1rem;
        padding: 1.5rem !important;
    }
    
    #step-4 > div {
        max-width: 100% !important;
        margin: 0 1rem;
    }
    
    .text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    /* Header responsive */
    header {
        height: 70px;
        padding: 0 1rem;
    }
    
    .logo-container img {
        height: 32px;
    }
    
    /* Footer responsive */
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    footer .flex.space-x-4 {
        justify-content: center;
    }
    
    /* Results page responsive */
    .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Full width container for tool */
.max-w-6xl {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero section and tool container management */
#hero-section.hidden-section {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    z-index: -9999 !important;
}

#tool-container.hidden-section {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    z-index: -9999 !important;
}

#main.hidden-section {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    z-index: -9999 !important;
} 