.calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.calculator-modal.open {
    display: block;
}

.calculator-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease-out;
}

.calculator-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 100vh;
    width: 1200px;
    height: 90%;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.button.calculator-modal-trigger {
    background-color: black;
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button.calculator-modal-trigger:hover {
    background-color: #FF592F;
    color: white;
}

@media (max-width: 768px) {
    .calculator-modal-content {
        width: 95vw;
        max-height: 95vh;
    }
}

.calculator-modal-header {
    padding: 20px 20px 0;
    text-align: right;
}

.calculator-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: start;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.calculator-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.calculator-modal-close:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.calculator-modal-body {
    padding: 20px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.calculator-modal-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.calculator-modal-loading p {
    margin: 0;
    font-size: 16px;
}

.calculator-iframe {
    width: 100%;
    border: none;
    min-height: 90vh;
    margin-bottom: 100px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Content wrapper */
.calculator-wrapper {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.calculator-content {
    width: 100%;
}

/* Loading state */
.calculator-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .calculator-wrapper {
        padding: 15px;
    }

    .calculator-content {
        max-width: 100%;
    }
}

.embed-wrapper {
  margin-bottom: 80px;
}
