/* Floating Calculator Button */
.floating-calculator {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-gold 2s infinite;
}

.floating-calculator:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
}

@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(255, 215, 0, 0.7);
    }
}

/* Calculator Modal */
.calculator-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.calculator-modal.active {
    right: 0;
}

.calculator-header {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.calculator-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculator-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.calculator-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.calculator-body {
    padding: 2rem;
}

.calc-input-group {
    margin-bottom: 1.5rem;
}

.calc-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95rem;
}

.calc-input-group input,
.calc-input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.calc-input-group small {
    display: block;
    margin-top: 0.3rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.calc-btn-calculate {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.calc-btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.calc-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #FFD700;
}

.calc-result h4 {
    margin: 0 0 1rem 0;
    color: #1a1a2e;
    font-size: 1.1rem;
}

.calc-result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.calc-result-item:last-of-type {
    border-bottom: 2px solid #FFD700;
}

.calc-result-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0 0 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
}

.calc-result-total span:last-child {
    color: #FFA500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-calculator {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 80px;
        right: 20px;
    }

    .calculator-modal {
        max-width: 100%;
    }

    .calculator-body {
        padding: 1.5rem;
    }
}

/* Modal Overlay */
.calculator-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.calculator-overlay.active {
    opacity: 1;
    visibility: visible;
}