/* ===== 問い合わせフォーム モーダル ===== */
.jfood-inquiry-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.jfood-inquiry-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.jfood-inquiry-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    padding: 30px;
    position: relative;
    margin: 40px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: jfood-modal-in 0.3s ease;
}

@keyframes jfood-modal-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jfood-inquiry-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.jfood-inquiry-close:hover {
    color: #333;
}

.jfood-inquiry-title {
    font-size: 22px;
    color: #1a1a2e;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
}

/* フォームセクション */
.jfood-form-section {
    margin-bottom: 25px;
}

.jfood-form-section h3 {
    font-size: 16px;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    padding: 8px 12px;
    background: #f5f5f5;
    border-left: 4px solid #e74c3c;
    border-radius: 0 4px 4px 0;
}

.jfood-form-row {
    margin-bottom: 15px;
}

.jfood-form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.jfood-form-row label .required {
    color: #e74c3c;
}

.jfood-form-row input,
.jfood-form-row select,
.jfood-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.jfood-form-row input:focus,
.jfood-form-row select:focus,
.jfood-form-row textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.jfood-readonly {
    background: #f5f5f5 !important;
    color: #666 !important;
    cursor: default;
}

.jfood-form-row textarea {
    resize: vertical;
    min-height: 100px;
}

/* 送信ボタン */
.jfood-form-actions {
    text-align: center;
    margin-top: 20px;
}

.jfood-btn-submit {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 14px 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.jfood-btn-submit:hover {
    background: #c0392b;
}

.jfood-btn-submit:active {
    transform: scale(0.98);
}

.jfood-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 結果表示 */
.jfood-inquiry-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.jfood-inquiry-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.jfood-inquiry-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .jfood-inquiry-modal {
        padding: 20px;
        margin: 20px auto;
    }

    .jfood-inquiry-title {
        font-size: 18px;
    }

    .jfood-btn-submit {
        width: 100%;
        padding: 14px;
    }
}
