/**
 * DivorceEdgePro.com - Divorce Calculator Styles
 */

/* Calculator Container */
.calculator-container {
    background-color: #373b3e;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
    color: var(--beige);
}

/* Progress Bar Styles */
.calculator-progress .progress {
    height: 10px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.calculator-progress .progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease-in-out;
}

/* Step Indicators */
.step-indicator {
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background-color: #003366;
    color: white;
    padding: 8px 18px;
    animation: pulse 2s infinite;
}

.step-indicator.completed {
    background-color: #28a745;
    color: white;
}

.step-indicator.completed::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border-radius: 50%;
}

/* Calculator Steps */
.calculator-step {
    display: none;
}

.calculator-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

/* Real-time Estimate Banner */
#realTimeEstimateBanner {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-in-out;
}

#realTimeEstimateBanner.show {
    opacity: 1;
    transform: translateY(0);
}

/* Results Card */
.results-card {
    background-color: #373b3e;
    border-left: 5px solid var(--accent-orange);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    color: var(--beige);
}

.results-card:hover {
    background-color: #2d3033;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.results-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

/* Calculator Results */
.calculator-result {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background-color: #2d3033;
    color: var(--beige);
}

.calculator-result:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.border-left-accent {
    border-left: 5px solid var(--accent-orange);
}

.result-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    color: var(--beige);
}

.bg-light-primary {
    background-color: rgba(255, 165, 0, 0.15);
}

.bg-light-info {
    background-color: rgba(245, 245, 220, 0.1);
}

.result-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-beige);
}

/* Field Update Animation */
.updating {
    animation: highlight 1s ease-in-out;
}

.result-updating {
    display: none;
    margin-left: 8px;
    color: #17a2b8;
    animation: fadeInOut 1.5s infinite;
}

.updating-indicator {
    display: none;
    margin-left: 8px;
    color: #17a2b8;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes highlight {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(0, 51, 102, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 51, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(0, 51, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 51, 102, 0);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
    }
}

/* Tooltip customization */
.calculator-tooltip {
    background-color: #373b3e;
    color: var(--beige);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 1000;
    border: 1px solid var(--accent-orange);
}

/* State specific info panel */
.state-info-panel {
    background-color: #373b3e;
    border-left: 4px solid var(--accent-orange);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    color: var(--beige);
}

/* Next Steps Section */
.next-steps-section {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    background-color: #373b3e;
    color: var(--beige);
}

.next-steps-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.next-steps-icon {
    animation: floatUpDown 3s ease-in-out infinite;
}

.next-step-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.next-step-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.next-step-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    z-index: -1;
}

.next-step-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .calculator-container {
        padding: 1.25rem;
    }
    
    .step-indicator {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .results-value {
        font-size: 1.5rem;
    }
}

/* Tablet Responsive Adjustments */
@media (min-width: 769px) and (max-width: 991px) {
    .calculator-container {
        padding: 1.5rem;
    }
}