/* Calculator Button Styles */
.calculator-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #E3AC17 0%, #F4D03F 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(227, 172, 23, 0.4);
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.calculator-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(227, 172, 23, 0.6);
}

.calculator-btn i {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.calculator-text {
    font-size: 8px;
    color: #1a1a1a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(227, 172, 23, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(227, 172, 23, 0.8); }
    100% { box-shadow: 0 4px 20px rgba(227, 172, 23, 0.4); }
}

/* Calculator Modal Styles */
.calculator-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.calculator-modal-content {
    position: relative;
    margin: 2% auto;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Override calculator panel styles when in modal */
.calculator-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Styles that will apply to the calculator when loaded in iframe */
.calculator-modal .calc-panel {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
}

.calculator-modal .calc-content {
    max-height: calc(100vh - 200px) !important;
    height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
}

.calculator-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #E3AC17;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 21000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.calculator-close:hover {
    background: rgba(227, 172, 23, 0.2);
    transform: scale(1.1);
}

/* Mobile Responsive for Calculator */
@media (max-width: 768px) {
    .calculator-btn {
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
    }

    .calculator-btn i {
        font-size: 18px;
    }

    .calculator-text {
        font-size: 7px;
    }

    .calculator-modal-content {
        margin: 1% auto;
        width: 98%;
        height: 95vh;
        border-radius: 15px;
    }
} 