/**
 * Jewelry Price Calculator - Modal Styles
 */

/* フローティングCTAボタン */
.jpc-floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jpc-floating-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.jpc-floating-cta:active {
    transform: translateY(-1px);
}

.jpc-floating-cta::before {
    content: "💍";
    font-size: 20px;
}

/* モーダルオーバーレイ */
.jpc-modal-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.jpc-modal-overlay.jpc-modal-active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

/* モーダルコンテナ */
.jpc-modal-container {
    background: white;
    border-radius: 20px;
    max-width: 1400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.jpc-modal-overlay.jpc-modal-active .jpc-modal-container {
    transform: scale(1);
}

/* 閉じるボタン */
.jpc-modal-close {
    position: sticky;
    top: 10px;
    right: 10px;
    float: right;
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

.jpc-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

/* モーダル内のコンテンツ */
.jpc-modal-content {
    padding: 20px 40px 40px;
    clear: both;
}

/* スクロールバーのスタイル */
.jpc-modal-container::-webkit-scrollbar {
    width: 8px;
}

.jpc-modal-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.jpc-modal-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.jpc-modal-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .jpc-floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 15px 25px;
        font-size: 14px;
    }

    .jpc-modal-overlay {
        padding: 10px;
    }

    .jpc-modal-container {
        max-height: 95vh;
        border-radius: 15px;
    }

    .jpc-modal-content {
        padding: 10px 20px 30px;
    }

    .jpc-modal-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* body scroll lock when modal is open */
body.jpc-modal-open {
    overflow: hidden;
}
